Function at 0x416139
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x49], 1
jne 0x4161a2
test byte [esi + 0x48], 2
je 0x4161a2
mov eax, dword [esi + 0x78]
cmp byte [eax + 2], 0
je 0x4161a2
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
cmp edx, dword [ebp + 0x14]
jne 0x416178
cmp eax, dword [ebp + 0x10]
jne 0x416178
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ecx], eax
xor eax, eax
jmp 0x416526
test byte [esi + 0x48], 8
je 0x4161a2
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
cmp edx, dword [ebp + 0x14]
jne 0x416190
cmp eax, dword [ebp + 0x10]
jae 0x4161a2
jmp 0x416192
jge 0x4161a2
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], 0xffffffff
xor eax, eax
jmp 0x416526
cmp dword [ebp + 0xc], 0
je 0x4161bd
push dword [ebp + 0xc]
call fcn.0041f880
pop ecx
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0xc]
mov byte [edx + 7], 0
jmp 0x4161c2
xor ecx, ecx
mov dword [ebp - 8], ecx
push esi
call fcn.00415ece
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4161da
mov eax, dword [ebp - 4]
jmp 0x416526
cmp byte [esi + 0x49], 0
jne 0x4161f0
mov edx, dword [ebp + 0x1c]
mov dword [edx], 0xffffffff
xor eax, eax
jmp 0x416526
movsx edx, word [esi + 0x4c]
mov ebx, dword [esi + edx*4 + 0x78]
xor eax, eax
mov dword [ebp - 0xc], eax
movzx edx, word [ebx + 0x12]
dec edx
mov dword [ebp - 0x10], edx
mov ecx, 1
sub ecx, dword [ebp + 0x18]
mov edi, dword [ebp - 0x10]
sar edi, cl
movsx eax, word [esi + 0x4c]
mov word [esi + eax*2 + 0x4e], di
cmp dword [ebp - 8], 0
jne 0x41631e
mov edx, dword [ebx + 0x40]
xor eax, eax
mov al, byte [edx + edi*2]
shl eax, 8
mov edx, dword [ebx + 0x40]
xor ecx, ecx
mov cl, byte [edx + edi*2 + 1]
or eax, ecx
movzx edx, word [ebx + 0x14]
and eax, edx
add eax, dword [ebx + 0x38]
xor ecx, ecx
mov cl, byte [ebx + 7]
add eax, ecx
cmp byte [ebx + 3], 0
je 0x416270
jmp 0x416268
cmp eax, dword [ebx + 0x3c]
jb 0x416268
push 0xe09e
call fcn.00457d77
pop ecx
jmp 0x416526
mov dl, byte [eax]
inc eax
cmp dl, 0x80
jae 0x416253
lea ecx, [ebp - 0x1c]
push ecx
push eax
call fcn.0040745f
add esp, 8
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp + 0x14]
jne 0x41628f
cmp eax, dword [ebp + 0x10]
jae 0x4162ab
jmp 0x416291
jge 0x4162ab
lea eax, [edi + 1]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x10]
jle 0x416311
mov dword [ebp - 0x14], 0xffffffff
jmp 0x41648e
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp + 0x14]
jne 0x4162bd
cmp eax, dword [ebp + 0x10]
jbe 0x4162d9
jmp 0x4162bf
jle 0x4162d9
lea ecx, [edi - 1]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jle 0x416311
mov dword [ebp - 0x14], 1
jmp 0x41648e
or byte [esi + 0x48], 2
mov edx, dword [ebp - 0x1c]
mov dword [esi + 0x18], edx
mov edx, dword [ebp - 0x18]
mov dword [esi + 0x1c], edx
movsx ecx, word [esi + 0x4c]
mov word [esi + ecx*2 + 0x4e], di
cmp byte [ebx + 5], 0
jne 0x416300
mov dword [ebp - 0xc], edi
jmp 0x4164ac
mov eax, dword [ebp + 0x1c]
xor edx, edx
mov dword [eax], edx
xor ecx, ecx
mov dword [ebp - 4], ecx
jmp 0x416519
mov edi, dword [ebp - 0xc]
add edi, dword [ebp - 0x10]
sar edi, 1
jmp 0x416225
mov eax, dword [ebx + 0x40]
movzx eax, byte [eax + edi*2]
shl eax, 8
mov edx, dword [ebx + 0x40]
xor ecx, ecx
mov cl, byte [edx + edi*2 + 1]
or eax, ecx
movzx edx, word [ebx + 0x14]
and eax, edx
add eax, dword [ebx + 0x38]
xor ecx, ecx
mov cl, byte [ebx + 7]
add eax, ecx
xor edx, edx
mov dl, byte [eax]
mov dword [ebp - 0x20], edx
xor ecx, ecx
mov cl, byte [ebx + 8]
cmp ecx, dword [ebp - 0x20]
jl 0x41636a
push dword [ebp + 0xc]
inc eax
push eax
push dword [ebp - 0x20]
call dword [ebp - 8]
add esp, 0xc
mov dword [ebp - 0x14], eax
jmp 0x41642f
test byte [eax + 1], 0x80
jne 0x4163a3
mov edx, dword [ebp - 0x20]
and edx, 0x7f
shl edx, 7
xor ecx, ecx
mov cl, byte [eax + 1]
add edx, ecx
mov dword [ebp - 0x20], edx
movzx ecx, word [ebx + 0xa]
cmp edx, ecx
jg 0x4163a3
push dword [ebp + 0xc]
add eax, 2
push eax
push dword [ebp - 0x20]
call dword [ebp - 8]
add esp, 0xc
mov dword [ebp - 0x14], eax
jmp 0x41642f
xor edx, edx
mov dl, byte [ebx + 7]
sub eax, edx
lea ecx, [esi + 0x18]
push ecx
push eax
push ebx
call fcn.004131b1
add esp, 0xc
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cdq
push edx
push eax
call fcn.0040429b
add esp, 8
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4163e1
mov dword [ebp - 4], 7
jmp 0x416519
movsx ecx, word [esi + 0x4c]
mov word [esi + ecx*2 + 0x4e], di
push 2
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push 0
push esi
call fcn.00415aae
add esp, 0x14
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x416414
push dword [ebp - 0x24]
call fcn.004044c7
pop ecx
jmp 0x416519
push dword [ebp + 0xc]
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call dword [ebp - 8]
add esp, 0xc
mov dword [ebp - 0x14], eax
push dword [ebp - 0x24]
call fcn.004044c7
pop ecx
cmp dword [ebp - 0x14], 0
jge 0x41643d
lea eax, [edi + 1]
mov dword [ebp - 0xc], eax
jmp 0x416479
cmp dword [ebp - 0x14], 0
jle 0x41644b
lea edx, [edi - 1]
mov dword [ebp - 0x10], edx
jmp 0x416479
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ecx], eax
xor edx, edx
mov dword [ebp - 4], edx
movsx ecx, word [esi + 0x4c]
mov word [esi + ecx*2 + 0x4e], di
mov eax, dword [ebp + 0xc]
cmp byte [eax + 7], 0
je 0x416519
mov dword [ebp - 4], 0xb
jmp 0x416519
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x10]
jg 0x41648e
mov edi, dword [ebp - 0xc]
add edi, dword [ebp - 0x10]
sar edi, 1
jmp 0x41631e
cmp byte [ebx + 5], 0
je 0x4164ac
movsx eax, word [esi + 0x4c]
mov word [esi + eax*2 + 0x4e], di
mov edx, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x14]
mov dword [edx], ecx
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x416519
movzx edx, word [ebx + 0x12]
cmp edx, dword [ebp - 0xc]
jg 0x4164c9
xor ecx, ecx
mov cl, byte [ebx + 6]
add ecx, dword [ebx + 0x38]
add ecx, 8
push ecx
call fcn.0040772f
pop ecx
jmp 0x4164f4
mov eax, dword [ebx + 0x40]
mov edx, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax + edx*2]
shl ecx, 8
mov eax, dword [ebx + 0x40]
mov edx, dword [ebp - 0xc]
movzx eax, byte [eax + edx*2 + 1]
or ecx, eax
movzx edx, word [ebx + 0x14]
and ecx, edx
add ecx, dword [ebx + 0x38]
push ecx
call fcn.0040772f
pop ecx
movsx ecx, word [esi + 0x4c]
mov dx, word [ebp - 0xc]
mov word [esi + ecx*2 + 0x4e], dx
push eax
push esi
call fcn.00415e18
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x416519
jmp 0x4161f0
mov word [esi + 0x2c], 0
and byte [esi + 0x48], 0xf9
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret