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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x4c
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], ecx
mov eax, dword [0x4636bc]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x70]
mov edx, dword [eax]
test dl, 1
jne 0x41638a
lea eax, [esp + 0x60]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x28], ecx
mov edi, dword [eax + 8]
mov ecx, dword [eax]
mov dword [esp + 0x30], ecx
mov ebx, dword [eax + 4]
cmp word [edx + 0x24], 0
je 0x41638a
movzx eax, word [edx + 0x3e]
test eax, eax
je 0x4160cd
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx + 8]
movzx esi, word [ecx + 0x24]
imul esi, eax
add esi, esi
add esi, dword [ecx + 0x54]
mov dword [esp + 0x20], esi
jmp 0x4160d5
mov dword [esp + 0x20], 0
movzx eax, word [edx + 0x24]
test eax, eax
je 0x41638a
mov dword [esp + 0x38], 0
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
xor ebx, ebx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov dword [esp], edx
jmp 0x416131
add eax, dword [esp + 0x2c]
mov ecx, eax
mov edx, dword [esp]
add edi, dword [esp + 0x34]
add ebx, 1
movzx eax, word [edx + 0x24]
add dword [esp + 0x38], 8
cmp ebx, eax
je 0x41638a
mov dword [esp + 0x2c], ecx
mov dword [esp + 0xc], edi
shl eax, 3
mov esi, edx
sub esi, eax
test dl, 1
mov eax, 0
cmovne esi, eax
mov ecx, dword [esi + ebx*8]
test cl, 1
jne 0x416160
movzx eax, byte [ecx + 0x2a]
shr al, 2
jmp 0x416165
mov eax, ecx
shr al, 3
mov edx, dword [esp + 0x20]
test al, 1
jne 0x416180
test edx, edx
je 0x41618e
mov eax, dword [esp + 0x10]
movzx edx, word [edx + eax*2]
mov dword [esp + 8], edx
jmp 0x41619a
mov dword [esp + 8], 0
mov eax, dword [esp + 0x10]
jmp 0x41619d
mov dword [esp + 8], 0
mov eax, dword [esp + 0x10]
add eax, 1
mov edx, dword [esp + 0x38]
lea edi, [esi + edx]
test ebx, ebx
mov dword [esp + 4], ebx
mov dword [esp + 0x10], eax
je 0x4161c0
test cl, 1
jne 0x4161d0
mov ebx, dword [ecx + 4]
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
jmp 0x4161e4
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
jmp 0x416200
mov eax, ebx
movzx ebx, byte [esi + ebx*8 + 6]
movzx edx, byte [esi + eax*8 + 5]
movzx ecx, byte [esi + eax*8 + 4]
and edx, 0xf
add ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
add ebp, edx
test edx, edx
mov eax, 0
mov edx, dword [esp + 0xc]
cmovne edx, eax
add edx, ecx
mov ecx, edx
movzx edx, word [esp + 8]
mov eax, dword [esp + 0x24]
mov dword [eax], ebx
mov dword [eax + 4], ebp
mov dword [esp + 0xc], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edi
mov ecx, dword [esp + 0x28]
mov dword [eax + 0x14], ecx
mov eax, dword [esp + 4]
mov ecx, dword [esi + eax*8]
test cl, 1
mov dword [esp + 0x30], ebx
jne 0x416260
mov eax, dword [ecx + 0x14]
mov edi, dword [ecx + 0x18]
mov dword [esp + 0x34], edi
mov edi, dword [ecx + 0x10]
add edi, ebx
mov dword [esp + 0x14], edi
lea edi, [eax + ebp]
mov dword [esp + 0x18], edi
xor edi, edi
test eax, eax
jne 0x416277
jmp 0x416273
movzx eax, byte [esi + eax*8 + 7]
mov dword [esp + 0x34], eax
add eax, ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebp
mov edi, dword [esp + 0xc]
cmp byte [esp + 0x78], 0
mov dword [esp + 0x3c], ebp
je 0x416290
test cl, 1
jne 0x4162d0
movzx ecx, byte [ecx + 0x2a]
jmp 0x4162d2
cmp word [esp + 8], 0
je 0x4162ec
push edx
mov eax, dword [esp + 0x2c]
push dword [eax + 8]
lea eax, [esp + 0x48]
push eax
call fcn.00416a40
add esp, 0xc
cmp byte [esp + 0x41], 0
mov edx, dword [esp]
mov ebx, dword [esp + 4]
jne 0x416360
jmp 0x416320
shr cl, 1
mov edx, dword [esp]
mov ebx, dword [esp + 4]
test cl, 1
jne 0x416360
cmp word [esp + 8], 0
jne 0x416360
jmp 0x416320
test cl, 1
jne 0x41630a
movzx ecx, byte [ecx + 0x2a]
test cl, 1
mov edx, dword [esp]
mov ebx, dword [esp + 4]
je 0x416320
shr cl, 1
test cl, 1
je 0x416320
jmp 0x416360
test cl, 2
mov edx, dword [esp]
mov ebx, dword [esp + 4]
je 0x416320
shr cl, 2
test cl, 1
jne 0x416360
nop
nop
mov edx, dword [esi + ebx*8]
xor eax, eax
test dl, 1
jne 0x416110
cmp word [edx + 0x24], 0
je 0x416110
mov ecx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x2c]
movzx eax, byte [esp + 0x78]
xor al, 1
movzx eax, al
mov eax, dword [edx + eax*4 + 0x2c]
cmp ecx, eax
jae 0x416110
jmp 0x416372
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x1c], ecx
je 0x4163b7
add ecx, 1
jmp 0x416119
mov edx, dword [esi + ebx*8]
mov dword [esp + 0x1c], ecx
test dl, 1
mov edi, dword [esp + 0xc]
mov ebx, dword [esp + 0x3c]
je 0x4160a1
mov eax, dword [esp + 0x24]
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0042fb70
mov eax, dword [esp + 0x24]
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret