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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
xor ecx, ecx
xor edx, edx
mov dword [eax + 0x78], ecx
mov dword [eax + 0x7c], edx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x30], 1
mov dword [eax + 0x34], ecx
mov edx, dword [ebp + 8]
mov dword [edx + 0x38], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x3c], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x40], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x44], 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x70], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x88], 0
mov edx, dword [ebp + 8]
or eax, 0xffffffff
mov dword [edx + 0x90], 0xffffffff
mov dword [edx + 0x94], eax
mov ecx, dword [ebp + 8]
xor edx, edx
xor eax, eax
mov dword [ecx + 0x68], edx
mov dword [ecx + 0x6c], eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x48], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x4c], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x50], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x60], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x64], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x80], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x84], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x20
jbe 0x40ab66
mov dword [ebp - 0x10], 0x20
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0x54], edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x58], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx]
cmp eax, dword [edx + 0x20]
je 0x40abfa
mov dword [ebp - 8], 0
jmp 0x40ab98
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x20
jae 0x40abc3
imul edx, dword [ebp - 8], 0x28
mov eax, dword [ebp + 8]
lea ecx, [eax + edx + 0xc8]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp dword [edx + 8], 0
je 0x40abc1
mov eax, dword [ebp - 0x18]
push eax
call fcn.0040a9e0
jmp 0x40ab8f
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x5c], 0
je 0x40abef
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5c]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx + 4]
call edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x5c], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ecx + 0x20], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp + 8]
add eax, 0x98
push eax
call fcn.0040c210
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x24], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x28], 0
mov eax, dword [ebp + 8]
imul ecx, dword [eax + 0x58], 0x28
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0xc8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x58]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x58], edx
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0040a980
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40acad
mov edx, dword [ebp - 0xc]
add edx, 0x20
push edx
call fcn.0040cde0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40acad
mov eax, dword [ebp - 0xc]
add eax, 0x1c
push eax
call fcn.0040cde0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40acad
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0040c1c0
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x40acad
mov eax, dword [ebp + 8]
mov dword [eax + 0x44], 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040aa40
mov edx, dword [ebp - 4]
push edx
call fcn.0040a890
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40acc8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x40], ecx
mov edx, dword [ebp + 8]
cmp dword [edx + 0x38], 0
jne 0x40ace3
mov eax, dword [ebp + 8]
cmp dword [eax + 0x40], 0
jne 0x40ace3
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x3c], 0
je 0x40ace5
jmp 0x40acef
mov edx, dword [ebp + 8]
mov dword [edx + 0x44], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x44], 0
je 0x40acfc
xor eax, eax
jmp 0x40acff
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 4