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

Disassembly:
sub esp, 0xf8
mov eax, dword [0x5801d4]
xor eax, esp
mov dword [esp + 0xf4], eax
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x70]
push edi
push eax
push ecx
mov ecx, dword [esi + 0xa4]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.0046aaf0
mov ecx, dword [esp + 0x10]
test ecx, ecx
jle 0x4888a8
mov eax, dword [esi + 0x134]
cdq
idiv dword [0x589ccc]
add eax, dword [esi + 0x78]
cmp ecx, eax
jle 0x4888a8
dec ecx
mov dword [esp + 0x10], ecx
push ecx
mov ecx, dword [esi + 0xa4]
call fcn.00483200
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0xa4]
mov edx, dword [ecx + 0x2e0]
mov ecx, dword [ecx + 0x10c]
mov edi, dword [esi + 0x74]
lea ebx, [eax + 1]
shl eax, 5
mov eax, dword [edx + eax + 8]
mov edx, dword [esi + 0x6c]
push ecx
push edx
push eax
mov dword [esp + 0x24], ebx
call fcn.00473a50
mov ecx, dword [esi + 0x170]
add esp, 0xc
lea eax, [eax + edi + 1]
or ebp, 0xffffffff
mov dword [esp + 0x14], eax
cmp ecx, dword [esp + 0x10]
jne 0x4888f9
mov dword [esp + 0x18], ebp
mov ebx, ebp
cmp dword [esi + 0x16c], eax
jne 0x48890f
cmp dword [esi + 0x174], edi
jne 0x48890f
mov dword [esp + 0x14], ebp
mov eax, ebp
cmp ebx, ebp
jne 0x488917
cmp eax, ebp
je 0x488934
mov edx, dword [esi + 0x70]
mov ecx, dword [esi + 0xa4]
mov ecx, dword [ecx + 0x2e0]
mov edi, dword [esi + 0x6c]
shl edx, 5
mov edx, dword [edx + ecx + 8]
movzx ebp, word [edx + edi*2]
cmp dword [esi + 0xf4], 0
je 0x488a31
mov edi, dword [0x53d764]
test ebx, ebx
mov ebx, dword [0x53d8c8]
jl 0x4889a0
call fcn.004e1c5d
mov eax, dword [eax + 0xc]
push 0x64
lea ecx, [esp + 0xa4]
push ecx
push 0x53c8
push eax
call ebx
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x44]
push ecx
call edi
mov ecx, dword [0x5b2f68]
add esp, 0xc
push 1
lea edx, [esp + 0x40]
push edx
push 1
add ecx, 0xec
call fcn.004eb82e
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x4889ef
call fcn.004e1c5d
mov eax, dword [eax + 0xc]
push 0x64
lea ecx, [esp + 0xa4]
push ecx
push 0x5ba1
push eax
call ebx
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x44]
push ecx
call edi
mov ecx, dword [0x5b2f68]
add esp, 0xc
push 1
lea edx, [esp + 0x40]
push edx
push 2
add ecx, 0xec
call fcn.004eb82e
test ebp, ebp
jl 0x488a31
mov dword [0x5b3090], ebp
mov eax, 0x54dd78
test ebp, 0xff00
jne 0x488a0b
mov eax, 0x5481e4
push ebp
push eax
lea eax, [esp + 0x44]
push eax
call edi
add esp, 0xc
push 1
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [0x5b2f68]
push 4
add ecx, 0xec
call fcn.004eb82e
mov eax, dword [esi + 0x170]
xor edi, edi
cmp eax, dword [esp + 0x10]
je 0x488a44
mov edi, 1
mov ecx, dword [esi + 0xa4]
cmp dword [ecx + 0x9c], 0
je 0x488a5b
mov edx, dword [ecx + 0x2ac]
jmp 0x488a78
cmp dword [ecx + 0x78], 0
jne 0x488a72
cmp dword [ecx + 0x84], 0
jne 0x488a72
mov edx, dword [ecx + 0x294]
jmp 0x488a78
mov edx, dword [ecx + 0x15c]
dec edx
cmp eax, edx
jl 0x488aae
cmp dword [ecx + 0x9c], 0
je 0x488a8e
mov ecx, dword [ecx + 0x2ac]
jmp 0x488aab
cmp dword [ecx + 0x78], 0
jne 0x488aa5
cmp dword [ecx + 0x84], 0
jne 0x488aa5
mov ecx, dword [ecx + 0x294]
jmp 0x488aab
mov ecx, dword [ecx + 0x15c]
lea eax, [ecx - 1]
mov dword [esi + 0x170], eax
test edi, edi
je 0x488c80
mov ecx, dword [esi + 0x78]
mov edx, dword [0x589ccc]
mov edi, dword [esp + 0x10]
mov ebp, dword [esi + 0x138]
sub eax, ecx
imul eax, edx
sub edi, ecx
imul edi, edx
cmp dword [0x5b35c8], 0
mov ebx, eax
je 0x488b2e
cmp dword [esi + 0x1d4], 0
jne 0x488af6
cmp dword [esi + 0x1d8], 0
je 0x488b07
push 0
push 1
mov ecx, esi
call fcn.004868d0
mov edx, dword [0x589ccc]
add edx, ebx
push edx
push ebp
push ebx
push 0
mov ecx, esi
call fcn.00487d30
mov edx, dword [0x589ccc]
add edx, edi
push edx
push ebp
push edi
push 0
mov ecx, esi
call fcn.00487d30
jmp 0x488c80
cmp dword [0x5b35d0], 0
je 0x488c80
cmp dword [esi + 0xf4], 0
je 0x488c80
mov eax, dword [esi + 0x20]
push eax
call dword [0x53d6ec]
mov ecx, dword [esi + 0x64]
mov ebp, eax
mov eax, dword [0x5b35fc]
cdq
sub eax, edx
add ebx, ecx
add edi, ecx
sar eax, 1
mov edx, 0
sets dl
dec edx
and edx, eax
cmp ebx, ecx
mov dword [esp + 0x1c], edx
jl 0x488c2b
mov ecx, dword [0x582670]
mov eax, dword [0x589ccc]
push ecx
add eax, ebx
push ebp
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], 0xa
call dword [0x53d1e4]
push 0
push 0
push 0
lea edx, [esp + 0x34]
push edx
push 2
push 0
push 0
push ebp
call dword [0x53d204]
mov eax, dword [0x582660]
push eax
push ebp
call dword [0x53d1e4]
mov ecx, dword [esi + 0x170]
push ecx
mov ecx, dword [esi + 0xa4]
call fcn.00469060
test eax, eax
jne 0x488c2b
mov edx, dword [esi + 0x170]
push eax
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esi + 0xa4]
call fcn.00469150
mov edx, dword [esi + 0xa4]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx + 0x2e0]
shl eax, 5
cmp dword [ecx + eax + 0x14], 0
je 0x488c2b
mov edx, dword [esp + 0x1c]
add edx, ebx
push edx
push ebp
call fcn.0040d1a0
add esp, 8
cmp edi, dword [esi + 0x64]
jl 0x488c75
mov ecx, dword [esi + 0xa4]
mov eax, dword [esi + 0x70]
mov edx, dword [ecx + 0x2e0]
shl eax, 5
cmp dword [eax + edx + 0x14], 0
je 0x488c5e
mov eax, dword [esp + 0x10]
push eax
call fcn.00469060
test eax, eax
jne 0x488c5e
mov eax, 1
jmp 0x488c60
xor eax, eax
mov ecx, dword [esp + 0x1c]
push eax
add ecx, edi
push ecx
push 0
push ebp
mov ecx, 0x5826ec
call fcn.0040d470
mov edx, dword [esi + 0x20]
push ebp
push edx
call dword [0x53d6f0]
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esi + 0x74]
mov dword [esi + 0x170], eax
mov dword [esi + 0x16c], ebx
mov dword [esi + 0x174], ecx
cmp dword [0x5b35cc], 0
je 0x488cfd
cmp dword [0x5b35d0], 0
je 0x488cfd
mov edx, dword [esi + 0x6c]
mov eax, dword [esi + 0x70]
push 1
push 1
push edx
push eax
mov ecx, esi
call fcn.00483280
mov edi, eax
add edi, dword [esi + 0x74]
mov eax, dword [esi + 0x8c]
cmp edi, eax
je 0x488cfd
cmp dword [esi + 0xf4], 0
je 0x488ce4
push 0
push eax
mov ecx, esi
call fcn.0047f780
cmp dword [esi + 0xf4], 0
mov dword [esi + 0x8c], edi
je 0x488cfd
push 1
push edi
mov ecx, esi
call fcn.0047f780
cmp dword [esp + 0x18], 0
jge 0x488d08
test ebx, ebx
jl 0x488d13
push 0
push 0
mov ecx, esi
call fcn.004868d0
mov ecx, dword [esp + 0x104]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051767d
add esp, 0xf8
ret