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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x48041c
sub esp, 0x60
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x68]
xor eax, eax
jmp 0x480166
inc eax
cmp eax, edx
jge 0x4803d1
jae 0x480414
movzx ebp, byte [ebx + eax]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x480165
xor eax, eax
lea ecx, [0x51e234]
lea ebp, [0x51cdd4]
xor esi, esi
test ecx, ecx
je 0x4803c2
xor eax, eax
test ecx, ecx
jne 0x4803ae
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx + 8]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.004578b0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
test eax, eax
je 0x480330
mov dword [esp + 0x18], eax
mov dword [esp], eax
call fcn.00481690
mov eax, dword [esp + 4]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x24], ecx
lea edx, [0x4e2fc0]
mov dword [esp], edx
call fcn.0040b530
mov eax, dword [esp + 4]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x18]
mov dword [esp], ecx
call fcn.00408c90
mov eax, dword [esp + 4]
lea ecx, [0x51e234]
mov edx, dword [esp + 0x28]
mov dword [edx], ecx
mov ecx, dword [0x5c3830]
test ecx, ecx
jne 0x480323
mov dword [edx + 4], eax
mov ecx, dword [esp + 0x6c]
mov dword [edx + 0xc], ecx
mov ebx, dword [0x5c3830]
test ebx, ebx
jne 0x480310
mov ebx, dword [esp + 0x68]
mov dword [edx + 8], ebx
lea edi, [esp + 0x30]
xor eax, eax
call fcn.00459a54
lea ecx, [0x4f1fe7]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x38], ebx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x3c], ecx
lea ecx, [0x4f1b0d]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], 0xe
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], ecx
lea ecx, [0x4efc67]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], 2
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x5c], ecx
mov dword [esp], 0
lea ecx, [esp + 0x30]
mov dword [esp + 4], ecx
mov dword [esp + 8], 6
mov dword [esp + 0xc], 6
call fcn.004452d0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
mov dword [edx + 0x14], ecx
mov ecx, dword [0x5c3830]
test ecx, ecx
jne 0x480306
mov dword [edx + 0x10], eax
mov dword [esp + 0x70], 0
lea eax, [0x51e1bc]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edx
add esp, 0x60
ret
lea edi, [edx + 0x10]
call fcn.00459860
jmp 0x4802ec
lea edi, [edx + 8]
mov eax, dword [esp + 0x68]
call fcn.00459860
mov ebx, eax
jmp 0x48023e
lea edi, [edx + 4]
call fcn.00459860
jmp 0x480222
mov dword [esp + 0x20], ecx
lea eax, [0x4e30c0]
mov dword [esp], eax
call fcn.0040b530
mov edi, dword [esp + 4]
mov eax, dword [0x5c3830]
test eax, eax
jne 0x4803a3
mov ecx, dword [esp + 0x64]
mov dword [edi], ecx
mov ecx, dword [esp + 0x6c]
mov dword [edi + 8], ecx
mov ecx, dword [0x5c3830]
test ecx, ecx
jne 0x48038d
mov eax, dword [esp + 0x68]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 0xc], eax
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x60
ret
lea ecx, [edi + 4]
mov eax, edi
mov edi, ecx
mov edx, eax
mov eax, dword [esp + 0x68]
call fcn.00459860
mov edi, edx
jmp 0x48036e
mov eax, dword [esp + 0x64]
call fcn.00459860
jmp 0x480356
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], ebp
add esp, 0x60
ret
test eax, eax
jbe 0x48040b
xor ecx, ecx
xor ebp, ebp
mov eax, esi
jmp 0x480198
lea eax, [0x4da700]
mov dword [esp], eax
lea eax, [edx + 1]
mov dword [esp + 0x1c], eax
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
call fcn.00442020
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x68]
mov eax, dword [esp + 0x1c]
xor ecx, ecx
xor ebp, ebp
jmp 0x48018e
mov ecx, eax
xor eax, eax
call fcn.004598e0
mov ecx, edx
call fcn.004598e0
nop
call fcn.00458300
jmp fcn.00480140