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

Disassembly:
push 0xffffffffffffffff
push 0x4a6068
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ed3dc]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x68]
mov edi, ecx
lea ecx, [esp + 0x20]
call fcn.0049c860
xor ebx, ebx
push 0x64
push ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x64], ebx
call fcn.00496000
push 0x4f25b0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x64], 1
call fcn.004962d0
test al, al
je 0x416f37
mov esi, dword [esp + 0x70]
cmp esi, ebx
je 0x416f37
cmp ebp, ebx
jge 0x416ed3
mov eax, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x416ec0
sub eax, edx
sar eax, 1
mov ebp, eax
cmp ebp, ebx
je 0x417057
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x3c], ebx
xor al, al
cmp dword [esp + 0x7c], ebx
mov byte [esp + 0x5c], 2
je 0x416f04
mov al, 1
cmp al, bl
mov ecx, dword [esi + 0x10]
jne 0x416f11
mov dword [esp + 0x7c], ebx
jmp 0x416f14
lea ecx, [ecx + ecx*2]
mov edx, dword [esp + 0x64]
mov eax, dword [edx + 4]
mov edx, dword [esi + 0x14]
push 0x20
push edx
push ecx
lea esi, [esp + 0x3c]
call fcn.00410700
add esp, 0xc
test al, al
jne 0x416f54
call fcn.00410810
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c], bl
call fcn.00496190
lea ecx, [esp + 0x20]
call fcn.0049c800
xor eax, eax
jmp 0x417072
mov al, byte [esp + 0x78]
mov ecx, dword [esp + 0x6c]
mov edx, dword [ecx]
mov byte [esp + 0x3e], al
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x74]
push ecx
push edx
mov eax, ebp
mov ecx, edi
mov dword [esp + 0x74], ebx
call fcn.00416ab0
add esp, 0xc
mov ecx, ebp
mov eax, edi
lea edx, [esp + 0x78]
mov esi, ebp
mov dword [esp + 0x78], ebx
call fcn.00416410
cmp eax, ebx
je 0x417049
mov ebp, dword [esp + 0x78]
jmp 0x416faa
mov esi, dword [esp + 0x78]
sub esi, ebp
cmp esi, ebx
lea edi, [edi + ebp*2]
mov dword [esp + 0x78], esi
jg 0x416fbb
xor esi, esi
jmp 0x417006
cmp esi, 2
jl 0x416ffe
movzx edx, word [edi]
movzx ecx, dx
add ecx, 0x2800
cmp cx, 0x3ff
ja 0x416ffe
movzx ecx, word [edi + 2]
movzx esi, cx
add esi, 0x2400
cmp si, 0x3ff
ja 0x416ffe
movzx edx, dx
movzx ecx, cx
shl edx, 0xa
mov ebp, 2
lea esi, [edx + ecx - 0x35fdc00]
jmp 0x417006
movzx esi, word [edi]
mov ebp, 1
mov edx, dword [esp + 0x64]
mov ecx, dword [edx + 4]
mov edx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x7c]
push edx
push esi
push eax
mov eax, dword [esp + 0x80]
push eax
mov eax, dword [esp + 0x88]
lea edx, [esp + 0x2c]
push edx
push ecx
lea ecx, [esp + 0x50]
call fcn.00416ce0
add esp, 0x20
cmp esi, ebx
mov eax, esi
jne 0x416fa6
lea esi, [esp + 0x30]
call fcn.00410810
call fcn.00410810
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c], bl
call fcn.00496190
lea ecx, [esp + 0x20]
call fcn.0049c800
mov eax, 1
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 0x1c