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

Disassembly:
sub esp, 0x3c
push ebp
push esi
mov esi, ecx
xor ebp, ebp
mov dword [esp + 0x30], 0x33
mov dword [esp + 0x34], 0x34
mov dword [esp + 0x38], 0x35
mov dword [esp + 0x3c], 0x36
mov dword [esp + 0x40], 0x37
cmp dword [esi + 0x14], ebp
jne 0x410e60
pop esi
xor eax, eax
pop ebp
add esp, 0x3c
ret 4
cmp dword [esi + 0x1c], ebp
je 0x410e56
cmp dword [esi + 0x20], ebp
je 0x410e56
cmp dword [esi + 0x24], ebp
je 0x410e56
mov eax, dword [esp + 0x48]
push edi
mov edi, dword [0x47a22c]
push 0x258
push 0x320
push ebp
push ebp
lea ecx, [esp + 0x24]
push ecx
mov dword [esi + 0x4d8], eax
call edi
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x14]
push edx
add eax, 0x108
mov ecx, edx
push eax
push ecx
mov ecx, dword [esi + 0x14]
add ecx, 0x108
call fcn.0040ac80
test eax, eax
je 0x410f2d
push 0x107
push 0xf3
push 0x2f
push 0x37
lea edx, [esp + 0x24]
push edx
call edi
mov eax, dword [esi + 0x4d8]
mov eax, dword [eax*4 + 0x48e9d4]
xor edx, edx
mov ecx, 3
div ecx
lea ecx, [esp + 0x14]
imul eax, eax, 0xd8
imul edx, edx, 0xbc
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edx
add eax, 0xd8
add edx, 0xbc
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x24]
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x24]
push edx
add eax, 0x108
push eax
push ecx
mov ecx, dword [esi + 0x14]
add ecx, 0x108
call fcn.0040ac80
test eax, eax
jne 0x410f38
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x3c
ret 4
mov ecx, dword [esi + 0x4d8]
mov eax, ecx
imul ecx, ecx, 0x4c
xor edx, edx
push ebx
mov ebx, 3
div ebx
add ecx, 0xa8
mov dword [esp + 0x28], ecx
add ecx, 0x4c
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0x120
mov dword [esp + 0x34], 0x168
imul eax, eax, 0x4c
lea edx, [edx + edx*4]
shl edx, 4
add eax, 0x10e
add edx, 0x1e
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
add eax, 0x48
add edx, 0x4c
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0x20], edx
lea edx, [esp + 0x28]
push edx
add eax, 0x108
push eax
push ecx
mov ecx, dword [esi + 0x14]
add ecx, 0x108
call fcn.0040ac80
test eax, eax
je 0x411279
cmp dword [esi + 0x4f0], 1
push 0xd8
jne 0x410ffa
push 0xf4
push 0x90
push 0xa8
lea edx, [esp + 0x38]
push edx
call edi
push 0x240
push 0xc4
push 0x1f8
push 0x78
lea eax, [esp + 0x28]
push eax
jmp 0x411029
push 0x140
push 0x90
push 0xf4
lea ecx, [esp + 0x38]
push ecx
call edi
push 0x240
push 0x114
push 0x1f8
push 0xc8
lea edx, [esp + 0x28]
push edx
call edi
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x28]
add ecx, 0x108
push eax
push ecx
mov ecx, dword [esi + 0x14]
lea edx, [esp + 0x20]
push edx
add ecx, 0x108
call fcn.0040ac80
test eax, eax
je 0x411279
mov edx, dword [esi + 0x4d8]
mov ecx, esi
call fcn.004105e0
cmp edx, eax
jae 0x411279
mov eax, dword [esp + edx*4 + 0x38]
mov ecx, dword [esi + 8]
push 0xffff0021
push 2
push eax
push str.image_system.dat
call fcn.0040c930
test eax, eax
je 0x411279
mov ecx, dword [esi + 8]
push 0xffff0021
call fcn.0040bec0
mov dword [esi + 0x18], eax
cmp eax, ebp
je 0x411279
mov eax, dword [esi + 0x4d8]
mov ecx, dword [eax*4 + 0x48fa84]
mov dword [esp + 0x10], ecx
push eax
mov ecx, esi
call fcn.00410600
mov dword [esp + 0x14], eax
cmp eax, ebp
jbe 0x41126a
mov dword [esp + 0x50], ebp
jmp 0x4110d6
mov edi, dword [0x47a22c]
push 0x8a
push 0xa8
push 0
push 0
lea edx, [esp + 0x38]
push edx
call edi
mov ecx, dword [esi + 0x20]
mov ebx, ebp
and ebx, 1
imul ebx, ebx, 0xb4
mov edi, ebp
shr edi, 1
imul edi, edi, 0x8c
lea eax, [ebx + 0x13e]
mov dword [esp + 0x18], eax
add eax, 0xa8
mov dword [esp + 0x20], eax
lea eax, [edi + 0x15]
mov dword [esp + 0x1c], eax
add eax, 0x8a
mov dword [esp + 0x24], eax
lea eax, [esp + 0x28]
add ecx, 0x108
push eax
push ecx
mov ecx, dword [esi + 0x14]
lea edx, [esp + 0x20]
push edx
add ecx, 0x108
call fcn.0040ac80
test eax, eax
je 0x411279
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + ebp*4]
mov edx, dword [ecx + 0x100]
cmp dword [esi + edx*4 + 0x28], 0
je 0x41125a
add ebx, 0x142
mov eax, ebx
mov dword [esp + 0x18], eax
add eax, 0xa0
mov dword [esp + 0x20], eax
lea eax, [edi + 0x18]
mov dword [esp + 0x1c], eax
add eax, 0x78
mov dword [esp + 0x24], eax
mov eax, ebp
shr eax, 2
lea eax, [eax + eax*4]
shl eax, 6
cmp dword [esi + 0x4f0], 1
jne 0x4111a1
add eax, 0xa0
mov dword [esp + 0x28], eax
add eax, 0xa0
mov dword [esp + 0x30], eax
mov ecx, ebp
and ecx, 3
mov eax, ecx
shl eax, 4
sub eax, ecx
mov ecx, dword [esi + 0x18]
add eax, eax
add eax, eax
add eax, eax
mov dword [esp + 0x2c], eax
add eax, 0x78
mov dword [esp + 0x34], eax
lea eax, [esp + 0x28]
add ecx, 0x108
push eax
push ecx
mov ecx, dword [esi + 0x14]
lea edx, [esp + 0x20]
push edx
add ecx, 0x108
call fcn.0040ac80
test eax, eax
je 0x411279
mov eax, dword [esp + 0x50]
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x2c], eax
add eax, 0xc
mov dword [esp + 0x34], eax
mov eax, ebx
mov dword [esp + 0x18], eax
add eax, 0xa0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x28]
add ecx, 0x108
push eax
push ecx
mov ecx, dword [esi + 0x14]
add edi, 0x91
mov dword [esp + 0x24], edi
lea edx, [esp + 0x20]
add edi, 0xc
push edx
add ecx, 0x108
mov dword [esp + 0x34], 0x280
mov dword [esp + 0x3c], 0x320
mov dword [esp + 0x30], edi
call fcn.0040ac80
test eax, eax
je 0x411279
add dword [esp + 0x50], 0x18
inc ebp
cmp ebp, dword [esp + 0x14]
jb 0x4110d0
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x3c
ret 4
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x3c
ret 4