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

Disassembly:
jmp 0x80e830
sub esp, 0x6c
mov eax, dword [0xa0b130]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 8]
push ebx
mov ebx, dword [esp + 0x78]
lea edx, [esp + 8]
push esi
push edi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1b]
push eax
push ecx
push edx
lea ecx, [esp + 0x28]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x1c], 0
call fcn.0040aa92
mov eax, dword [esp + 0x14]
xor esi, esi
xor edx, edx
mov dword [esp + 0x28], esi
xor edi, edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x10], edx
cmp dword [eax + 4], edx
jbe 0x80eaa3
mov ebx, dword [esp + 0x1c]
mov eax, dword [eax]
push dword [esp + 0x40]
lea eax, [eax + edx*4]
push dword [eax]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x50]
push eax
call fcn.00415f1e
lea ecx, [esp + 0x60]
add esp, 0xc
mov eax, dword [eax + 4]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x48]
cmp eax, ecx
je 0x80e8d9
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp dword [esp + 0xc], 0
je 0x80ea8d
mov eax, dword [esp + 0x24]
sub eax, ebx
mov dword [esp + 0xc], 0
sar eax, 2
cmp eax, 1
jae 0x80e911
push 1
lea ecx, [esp + 0x20]
call fcn.00411680
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x1c]
push ebx
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00411b17
mov ebx, dword [esp + 0x38]
add esp, 0xc
mov dword [esp + 0x20], eax
test ebx, ebx
jne 0x80e93a
cmp dword [esp + 0x30], ebx
je 0x80ea24
lea eax, [ebx*4]
cmp eax, edi
jae 0x80e9da
cmp edi, 0x40
jbe 0x80e9da
lea ecx, [esp + 0x28]
call fcn.0040e83b
xor ecx, ecx
mov dword [esp + 0xc], ecx
test ebx, ebx
je 0x80e98f
lea eax, [ebx - 1]
push 2
push eax
call fcn.0040fbfa
mov ecx, 0x21
add esp, 8
sub ecx, eax
mov eax, 1
shl eax, cl
mov ecx, 0x40
cmp eax, ecx
cmovg ecx, eax
mov dword [esp + 0xc], ecx
imul eax, edi, 0x2c
cmp ecx, edi
jne 0x80e9bf
add eax, esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
cmp esi, eax
je 0x80ea24
nop dword [eax]
mov dword [esi], 0xfffff000
add esi, 0x2c
cmp esi, eax
jne 0x80e9b0
jmp 0x80ea24
push 4
push eax
push esi
call fcn.00415398
add esp, 0xc
lea ecx, [esp + 0x28]
push dword [esp + 0xc]
call fcn.00413381
jmp 0x80ea24
imul edi, edi, 0x2c
add edi, esi
cmp esi, edi
je 0x80ea14
mov eax, dword [esi]
cmp eax, 0xfffff000
je 0x80ea0d
cmp eax, 0xffffe000
je 0x80ea07
mov ecx, dword [esi + 0x18]
lea eax, [esi + 0x24]
cmp ecx, eax
je 0x80ea07
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [esi], 0xfffff000
add esi, 0x2c
cmp esi, edi
jne 0x80e9e3
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x1c]
push 0
push 0x401f14
push 0
push dword [eax]
call fcn.004071b7
mov ebx, dword [esp + 0x1c]
mov edi, eax
mov esi, 2
cmp edi, esi
jb 0x80ea85
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 4]
mov ecx, dword [eax]
lea eax, [ecx + edx*4]
mov dword [esp + 0x44], eax
nop dword [eax + eax]
mov eax, dword [ebx + esi*4]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x18]
call fcn.00414849
mov edx, dword [esp + 0x4c]
add esp, 8
cmp eax, edx
jne 0x80eabe
inc esi
cmp esi, edi
jbe 0x80ea60
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
inc edx
mov dword [esp + 0x10], edx
cmp edx, dword [eax + 4]
jb 0x80e8a0
lea ecx, [esp + 0x1c]
call fcn.00412cf6
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004087b5
add esp, 0x6c
ret
mov esi, dword [esp + 0x3c]
mov eax, dword [edx - 4]
mov edi, dword [esp + 0x34]
mov ecx, dword [esi]
mov dword [esi], eax
mov esi, dword [esp + 0x14]
mov dword [edx - 4], ecx
mov edx, dword [esp + 0x10]
dec dword [esi + 4]
dec edx
mov esi, dword [esp + 0x28]
jmp 0x80ea91