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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
and dword [eax + 0x78], 0
and dword [eax + 0x7c], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x30], 1
and dword [eax + 0x34], 0
mov eax, dword [ebp + 8]
and dword [eax + 0x38], 0
mov eax, dword [ebp + 8]
and dword [eax + 0x3c], 0
mov eax, dword [ebp + 8]
and dword [eax + 0x40], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x44], 1
mov eax, dword [ebp + 8]
and dword [eax + 0x70], 0
mov eax, dword [ebp + 8]
and dword [eax + 0x88], 0
mov eax, dword [ebp + 8]
or dword [eax + 0x90], 0xffffffff
or dword [eax + 0x94], 0xffffffff
mov eax, dword [ebp + 8]
and dword [eax + 0x68], 0
and dword [eax + 0x6c], 0
mov eax, dword [ebp + 8]
and dword [eax + 0x48], 0
mov eax, dword [ebp + 8]
and dword [eax + 0x4c], 0
mov eax, dword [ebp + 8]
and dword [eax + 0x50], 0
mov eax, dword [ebp + 8]
and dword [eax + 0x60], 0
mov eax, dword [ebp + 8]
and dword [eax + 0x64], 0
mov eax, dword [ebp + 8]
and dword [eax + 0x80], 0
mov eax, dword [ebp + 8]
and dword [eax + 0x84], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x20
jbe 0x40b091
mov dword [ebp - 0x10], 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x54], ecx
mov eax, dword [ebp + 8]
and dword [eax + 0x58], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, dword [ecx + 0x20]
je 0x40b117
and dword [ebp - 8], 0
jmp 0x40b0bb
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x20
jae 0x40b0e7
mov eax, dword [ebp - 8]
imul eax, eax, 0x28
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax + 0xc8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax + 8], 0
je 0x40b0e5
push dword [ebp - 0x18]
call fcn.00409b7a
jmp 0x40b0b4
mov eax, dword [ebp + 8]
cmp dword [eax + 0x5c], 0
je 0x40b10c
mov eax, dword [ebp + 8]
push dword [eax + 0x5c]
mov eax, dword [ebp + 8]
push dword [eax + 0x14]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
call dword [eax + 4]
mov eax, dword [ebp + 8]
and dword [eax + 0x5c], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov dword [eax + 0x20], ecx
mov eax, dword [ebp + 8]
push dword [eax + 0x10]
mov eax, dword [ebp + 8]
add eax, 0x98
push eax
call fcn.004099f8
mov eax, dword [ebp + 8]
and dword [eax + 0x24], 0
mov eax, dword [ebp + 8]
and dword [eax + 0x28], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x58]
imul eax, eax, 0x28
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax + 0xc8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x58]
inc eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x58], eax
push dword [ebp - 0xc]
call fcn.00409af2
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40b1bd
mov eax, dword [ebp - 0xc]
add eax, 0x20
push eax
call fcn.0040e106
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40b1bd
mov eax, dword [ebp - 0xc]
add eax, 0x1c
push eax
call fcn.0040e106
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40b1bd
push dword [ebp - 0xc]
call fcn.0040ab87
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40b1bd
mov eax, dword [ebp + 8]
and dword [eax + 0x44], 0
push dword [ebp + 8]
call fcn.00409c12
push dword [ebp - 4]
call fcn.004099ca
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40b1d7
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x40], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x38], 0
jne 0x40b1f2
mov eax, dword [ebp + 8]
cmp dword [eax + 0x40], 0
jne 0x40b1f2
mov eax, dword [ebp + 8]
cmp dword [eax + 0x3c], 0
je 0x40b1f4
jmp 0x40b1fb
mov eax, dword [ebp + 8]
and dword [eax + 0x44], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x44], 0
je 0x40b208
xor eax, eax
jmp 0x40b20b
mov eax, dword [ebp - 0x14]
leave
ret 4