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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov dword [eax + 0x78], 0
mov dword [eax + 0x7c], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x30], 1
mov dword [ecx + 0x34], 0
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]
mov dword [edx + 0x90], 0xffffffff
mov dword [edx + 0x94], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [eax + 0x68], 0
mov dword [eax + 0x6c], 0
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 0x40a6b1
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 0x40a747
mov dword [ebp - 8], 0
jmp 0x40a6e3
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x20
jae 0x40a710
mov edx, dword [ebp - 8]
imul edx, edx, 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 0x40a70e
mov eax, dword [ebp - 0x18]
push eax
call fcn.0040a520
jmp 0x40a6da
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x5c], 0
je 0x40a73c
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.0040bd70
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]
mov ecx, dword [eax + 0x58]
imul ecx, ecx, 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.0040a4c0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40a7fc
mov edx, dword [ebp - 0xc]
add edx, 0x20
push edx
call fcn.0040f170
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40a7fc
mov eax, dword [ebp - 0xc]
add eax, 0x1c
push eax
call fcn.0040f170
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40a7fc
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0040bd20
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x40a7fc
mov eax, dword [ebp + 8]
mov dword [eax + 0x44], 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040a580
mov edx, dword [ebp - 4]
push edx
call fcn.0040a3d0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40a817
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 0x40a832
mov eax, dword [ebp + 8]
cmp dword [eax + 0x40], 0
jne 0x40a832
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x3c], 0
je 0x40a834
jmp 0x40a83e
mov edx, dword [ebp + 8]
mov dword [edx + 0x44], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x44], 0
je 0x40a84b
xor eax, eax
jmp 0x40a84e
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 4