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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4948a2
sub esp, 0x68
mov eax, dword [esp + 0x70]
test eax, eax
je 0x494819
cmp eax, 1
je 0x4947fe
lea ecx, [eax - 1]
mov edx, dword [esp + 0x7c]
mov ebx, edx
imul edx, ecx
mov ebp, dword [esp + 0x6c]
xor esi, esi
jmp 0x494488
lea edi, [esi + 1]
mov dword [esp + 0x28], edi
lea edi, [ebp + esi*8]
mov edi, dword [edi + 4]
add edx, edi
mov edi, dword [esp + 0x28]
mov esi, edi
cmp esi, eax
jge 0x494493
jb 0x494472
jmp 0x49489b
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
nop
nop
nop
lea eax, [esp + 0x58]
mov dword [esp + 0x58], eax
test edx, edx
jl 0x494881
mov dword [esp + 0x40], ecx
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
mov dword [esp + 0x3c], edi
sub edi, esi
cmp edi, edx
jl 0x49477b
nop
mov edx, dword [ebp + 4]
mov esi, dword [ebp]
nop
mov edi, dword [esp + 0x58]
test edi, edi
je 0x494771
cmp eax, edi
jne 0x494867
mov edi, dword [esp + 0x60]
lea ebx, [edx + edi]
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x5c]
cmp ebx, eax
ja 0x49472e
mov dword [esp + 0x54], ecx
mov dword [esp + 0x38], eax
lea ebx, [ecx + edi]
mov dword [esp], ebx
mov dword [esp + 4], esi
mov dword [esp + 8], edx
call fcn.0044b1c0
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x74]
dec eax
neg eax
sar eax, 0x1f
and eax, 8
mov ecx, dword [esp + 0x6c]
add eax, ecx
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x78]
mov ebx, dword [esp + 0x7c]
xor ebp, ebp
jmp 0x4945cc
mov dword [esp + 0x54], esi
mov dword [esp + 0x34], ebp
add eax, esi
mov dword [esp], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.0044b1c0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x3c]
lea ebp, [eax + 1]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x50]
mov eax, ebx
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x78]
mov ebx, dword [esp + 0x7c]
cmp ebp, ecx
jge 0x494713
lea esi, [eax + ebp*8]
mov edi, dword [esi + 4]
mov esi, dword [esi]
nop
nop
mov eax, dword [esp + 0x58]
test eax, eax
je 0x494701
lea ecx, [esp + 0x58]
cmp ecx, eax
jne 0x49484d
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x24], edi
mov dword [esp + 0x44], esi
mov eax, dword [esp + 0x60]
lea ebp, [ebx + eax]
mov dword [esp + 0x38], ebp
mov esi, dword [esp + 0x64]
mov edi, dword [esp + 0x5c]
cmp ebp, esi
ja 0x4946c6
mov dword [esp + 0x34], esi
mov dword [esp + 0x54], edi
add eax, edi
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
call fcn.0044b1c0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x5c], eax
nop
nop
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4946bb
lea ecx, [esp + 0x58]
cmp ecx, eax
jne 0x494833
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x24]
lea ebx, [edx + eax]
mov dword [esp + 0x38], ebx
mov ebp, dword [esp + 0x64]
mov esi, dword [esp + 0x5c]
cmp ebx, ebp
jbe 0x494571
mov dword [esp + 0x34], eax
lea ecx, [0x4d4700]
mov dword [esp], ecx
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
call fcn.00436de0
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x24]
jmp 0x494571
nop
lea ecx, [esp + 0x58]
mov dword [esp + 0x58], ecx
jmp 0x494665
mov dword [esp + 0x34], eax
lea ecx, [0x4d4700]
mov dword [esp], ecx
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebp
call fcn.00436de0
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x78]
mov ebx, dword [esp + 0x7c]
jmp 0x49461d
nop
lea eax, [esp + 0x58]
mov dword [esp + 0x58], eax
lea ecx, [esp + 0x58]
jmp 0x4945f6
nop
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
add esp, 0x68
ret
mov dword [esp + 0x38], edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x48], esi
lea edx, [0x4d4700]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
call fcn.00436de0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x38]
jmp 0x494517
nop
mov dword [esp + 0x58], eax
jmp 0x4944fc
mov dword [esp + 0x2c], esi
nop
lea eax, [0x4d4700]
mov dword [esp], eax
mov dword [esp + 4], esi
mov ecx, dword [esp + 0x3c]
lea ecx, [edx + ecx*2]
mov dword [esp + 0x30], ecx
mov dword [esp + 8], ecx
call fcn.00436d20
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x2c]
cmp ebx, ecx
jle 0x4947fa
mov dword [esp + 0x4c], eax
cmp eax, edx
je 0x4947cd
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.0044b1c0
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x5c], edx
lea eax, [esp + 0x58]
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x7c]
mov ebp, dword [esp + 0x6c]
jmp 0x4944e0
mov ecx, ebx
jmp 0x4947b5
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
add esp, 0x68
ret
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
add esp, 0x68
ret
lea eax, [0x4d4540]
mov dword [esp], eax
lea eax, [0x50dbd8]
mov dword [esp + 4], eax
call fcn.00426160
ud2
lea eax, [0x4d4540]
mov dword [esp], eax
lea eax, [0x50dbd0]
mov dword [esp + 4], eax
call fcn.00426160
ud2
lea eax, [0x4d4540]
mov dword [esp], eax
lea eax, [0x50dbc8]
mov dword [esp + 4], eax
call fcn.00426160
ud2
lea eax, [0x4d4540]
mov dword [esp], eax
lea eax, [0x50dbc0]
mov dword [esp + 4], eax
call fcn.00426160
ud2
call fcn.004253a0
ud2
call fcn.00449270
jmp fcn.00494430