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

Disassembly:
sub esp, 0x2c
push esi
mov esi, ecx
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x4088d6
xor eax, eax
pop esi
add esp, 0x2c
ret 4
cmp dword [esi + 0x1c], 0
je 0x4088cd
push edi
mov edi, dword [esp + 0x38]
push 0xffff0023
push 2
lea eax, [edi + 0x23]
push eax
push str.image_system.dat
call fcn.0040c930
test eax, eax
je 0x40890e
mov ecx, dword [esi + 8]
push 0xffff0023
call fcn.0040bec0
mov dword [esi + 0x14], eax
test eax, eax
jne 0x408918
pop edi
xor eax, eax
pop esi
add esp, 0x2c
ret 4
cmp dword [esi + 0x20], 1
push ebx
mov ebx, dword [0x47a22c]
push 0xd8
jne 0x408958
push 0xf4
push 0x90
push 0xa8
lea ecx, [esp + 0x38]
push ecx
call ebx
push 0x240
push 0xc4
push 0x1f8
push 0x78
lea edx, [esp + 0x28]
push edx
jmp 0x408987
push 0x140
push 0x90
push 0xf4
lea eax, [esp + 0x38]
push eax
call ebx
push 0x240
push 0x114
push 0x1f8
push 0xc8
lea ecx, [esp + 0x28]
push ecx
call ebx
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x28]
push edx
add eax, 0x108
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esi + 0x14]
add ecx, 0x108
call fcn.0040ac80
test eax, eax
jne 0x4089b7
pop ebx
pop edi
pop esi
add esp, 0x2c
ret 4
push ebp
push edi
mov ecx, esi
call fcn.00407a80
mov ebp, eax
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x408bd1
push 0x40
lea eax, [esi + 0x4d4]
push 0
push eax
call fcn.00449bf0
add esp, 0xc
xor ebx, ebx
test ebp, ebp
jbe 0x408bc2
lea eax, [esi + 0x4d4]
mov dword [esp + 0x14], eax
jmp 0x4089ff
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x40]
push ebx
lea edx, [ebx + edi*8]
push edi
mov ecx, esi
mov dword [eax + 4], edx
mov dword [eax], 1
call fcn.00407ab0
mov edi, eax
xor ebp, ebp
cmp edi, ebp
je 0x408bd1
mov dword [esp + 0x10], ebp
test edi, edi
jbe 0x408a4a
mov eax, dword [esp + 0x40]
push ebp
push ebx
push eax
mov ecx, esi
call fcn.004083d0
test eax, eax
je 0x408a3e
inc dword [esp + 0x10]
inc ebp
cmp ebp, edi
jb 0x408a28
cmp dword [esp + 0x10], 0
jne 0x408ac9
mov ecx, dword [esp + 0x14]
push 0x7b
push 0xa4
push 3
push 4
lea edx, [esp + 0x3c]
push edx
mov dword [ecx], 0
call dword [0x47a22c]
mov eax, ebx
and eax, 1
imul eax, eax, 0xb4
add eax, 0x142
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x1c], eax
add eax, 0xa0
mov dword [esp + 0x24], eax
mov eax, ebx
shr eax, 1
imul eax, eax, 0x8c
add eax, 0x18
mov dword [esp + 0x20], eax
add eax, 0x78
mov dword [esp + 0x28], eax
lea eax, [esp + 0x2c]
add ecx, 0x108
push eax
push ecx
mov ecx, dword [esi + 0x14]
lea edx, [esp + 0x24]
push edx
add ecx, 0x108
call fcn.0040ac80
test eax, eax
je 0x408bd1
lea eax, [edi + edi*2]
add eax, eax
add eax, eax
mov edi, ebx
and edi, 1
mov dword [esp + 0x30], eax
imul edi, edi, 0xb4
add eax, 0xc
mov dword [esp + 0x38], eax
lea eax, [edi + 0x18e]
mov dword [esp + 0x1c], eax
add eax, 0x28
mov dword [esp + 0x24], eax
mov eax, ebx
shr eax, 1
imul eax, eax, 0x8c
lea ebp, [eax + 0x91]
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x2c]
lea ecx, [ebp + 0xc]
mov dword [esp + 0x28], ecx
push edx
add eax, 0x108
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esi + 0x14]
add ecx, 0x108
mov dword [esp + 0x38], 0x248
mov dword [esp + 0x40], 0x270
mov dword [esp + 0x2c], ebp
call fcn.0040ac80
test eax, eax
je 0x408bd1
mov eax, dword [esp + 0x10]
lea eax, [eax + eax*2]
add eax, eax
add eax, eax
mov dword [esp + 0x30], eax
add eax, 0xc
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x2c]
push edx
add eax, 0x108
push eax
lea ecx, [esp + 0x24]
add edi, 0x16e
push ecx
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebp
add edi, 0x20
add ebp, 0xc
add ecx, 0x108
mov dword [esp + 0x38], 0x228
mov dword [esp + 0x40], 0x248
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ebp
call fcn.0040ac80
test eax, eax
je 0x408bd1
add dword [esp + 0x14], 8
inc ebx
cmp ebx, dword [esp + 0x18]
jb 0x4089f7
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x2c
ret 4
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x2c
ret 4