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

Disassembly:
sub esp, 0x68
lea eax, [esp + 0x74]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
call fcn.0049dd60
test al, al
jne 0x4946e0
xor ecx, ecx
mov ebp, ecx
mov dword [esp + 0x5c], ecx
push dword [esp + 0x78]
push dword [esp + 0x78]
call fcn.0049dd6c
xor ebx, ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
cmp dword [esp + 0x3c], ebx
je 0x4946dc
mov edx, dword [esp + 0x40]
mov ecx, dword [edx + ebx*8 + 4]
mov esi, dword [edx + ebx*8]
add dword [esp + 0x5c], esi
inc ebp
inc ebx
cmp ebx, dword [esp + 0x3c]
jb 0x4946c5
test ebp, ebp
jne 0x4946fa
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
add esp, 0x68
xor eax, eax
xor edx, edx
ret 0x10
lea ecx, [ebp - 1]
imul ecx, dword [esp + 0x6c]
lea eax, [esp + 0x68]
add dword [esp + 0x5c], ecx
call fcn.004948dc
xor edi, edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
push dword [esp + 0x78]
push dword [esp + 0x78]
call fcn.0049dd78
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x34], eax
xor ebx, ebx
mov dword [esp + 0x38], edx
cmp dword [esp + 0x34], ebx
je 0x494791
mov ecx, dword [esp + 0x38]
movzx edx, word [ecx + ebx*2]
mov esi, edi
mov word [esp + 0x60], dx
inc edi
cmp esi, dword [esp + 0x24]
jb 0x494779
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x7c1
mov dword [esp], 0x4d9730
call fcn.00462c8c
mov edx, dword [esp + 0x28]
lea ecx, [edx + esi*2]
push ecx
lea eax, [esp + 0x64]
call fcn.0049ddb4
inc ebx
cmp ebx, dword [esp + 0x34]
jb 0x49473b
lea eax, [esp + 0x74]
call fcn.0049ddc8
mov ebx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x2c], ebx
xor ebp, ebp
mov dword [esp + 0x30], edx
cmp dword [esp + 0x2c], 0
je 0x4948bd
mov ecx, dword [esp + 0x6c]
mov esi, dword [esp + 0x70]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], esi
cmp dword [esp + 0x44], 0
setne al
mov byte [esp + 0x66], al
mov edx, dword [esp + 0x30]
mov eax, dword [edx + ebp*8]
mov edx, dword [edx + ebp*8 + 4]
mov dword [esp + 0x54], eax
xor ebx, ebx
mov dword [esp + 0x58], edx
cmp byte [esp + 0x66], bl
je 0x494844
mov ecx, dword [esp + 0x70]
movzx edx, word [ecx + ebx*2]
mov esi, edi
mov word [esp + 0x64], dx
inc edi
cmp esi, dword [esp + 0x24]
jb 0x49482c
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x7c6
mov dword [esp], 0x4d9730
call fcn.00462c8c
mov edx, dword [esp + 0x28]
lea ecx, [edx + esi*2]
push ecx
lea eax, [esp + 0x68]
call fcn.0049ddb4
inc ebx
cmp ebx, dword [esp + 0x44]
jb 0x4947ee
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
xor ebx, ebx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], ecx
cmp dword [esp + 0x4c], ebx
je 0x4948b2
mov edx, dword [esp + 0x58]
movzx ecx, word [edx + ebx*2]
mov esi, edi
mov word [esp + 0x62], cx
inc edi
cmp esi, dword [esp + 0x24]
jb 0x49489a
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x7c8
mov dword [esp], 0x4d9730
call fcn.00462c8c
mov ecx, dword [esp + 0x28]
lea edx, [ecx + esi*2]
push edx
lea eax, [esp + 0x66]
call fcn.0049ddb4
inc ebx
cmp ebx, dword [esp + 0x4c]
jb 0x49485c
inc ebp
cmp ebp, dword [esp + 0x2c]
jb 0x4947d3
lea eax, [esp + 0x68]
call fcn.004948ec
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
add esp, 0x68
ret 0x10