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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
xor ecx, ecx
push edi
mov ebx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], ecx
mov eax, dword [esi + 0x8c]
mov edi, dword [esi]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], ecx
mov ecx, edi
mov eax, dword [eax + 0x3c]
mov dword [esi + 0x90], eax
mov eax, dword [edi]
mov dword [ebp - 0x24], esi
mov dword [ebp - 8], ebx
call dword [eax + 0x1d0]
and dword [ebp - 4], ebx
mov dword [ebp - 0x20], eax
test eax, eax
je 0x406ca0
mov esi, dword [ebp - 4]
mov edx, dword [edi]
mov ecx, edi
push esi
call dword [edx + 0x34]
mov ebx, dword [eax]
test ebx, ebx
je 0x406c91
mov esi, dword [ebp - 8]
mov eax, dword [edi]
mov ecx, edi
push ebx
inc esi
call dword [eax + 0x34]
mov dword [ebp - 0x1c], eax
mov edx, dword [edi]
mov ecx, edi
push ebx
call dword [edx + 0x34]
mov ebx, dword [eax + 4]
test ebx, ebx
jne 0x406c73
mov ebx, dword [ebp - 0x1c]
mov ebx, dword [ebx]
test ebx, ebx
jne 0x406c67
mov dword [ebp - 8], esi
mov esi, dword [ebp - 4]
inc esi
mov dword [ebp - 4], esi
cmp esi, dword [ebp - 0x20]
jb 0x406c56
mov esi, dword [ebp - 0x24]
mov ebx, dword [ebp - 8]
mov eax, dword [esi + 0x8c]
xor ecx, ecx
mov dword [esi + 0x94], ebx
push 4
imul edx, dword [eax + 0x38], 0x24
call fcn.00409cfc
mov dword [0x42eb24], eax
test eax, eax
jne 0x406cdc
push 2
push 0x2ee1
call fcn.0040bdde
push eax
call fcn.0040af74
push 1
call dword [0x431158]
mov edx, dword [esi + 0x90]
xor ecx, ecx
push 4
shl edx, 2
call fcn.00409cfc
mov dword [esi + 0x98], eax
test eax, eax
je 0x406cc2
mov eax, dword [esi + 0x94]
xor ecx, ecx
mov edx, eax
not edx
and edx, 1
add edx, eax
mov dword [0x42fb64], edx
push 4
shl edx, 2
call fcn.00409cfc
mov ecx, eax
mov dword [0x42eb20], ecx
test ecx, ecx
je 0x406cc2
mov eax, dword [0x42fb64]
shl eax, 2
push eax
push 0
push ecx
call fcn.0040aa86
mov eax, dword [esi + 4]
add esp, 0xc
cmp dword [eax + 0x1c], 0
je 0x406d61
push 0x2f5b
call fcn.0040c11a
mov eax, dword [esi + 4]
pop ecx
cmp dword [eax + 0x44], 0
je 0x406d61
push 0x401778
call fcn.0040c16c
pop ecx
mov ecx, dword [esi]
push 0
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov edx, eax
mov dword [ebp - 0x1c], edx
test edx, edx
je 0x406f5b
xor ebx, ebx
mov ecx, dword [esi + 0x8c]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ecx + 0x38]
jge 0x406f5b
mov edi, dword [0x42eb24]
add edi, ebx
inc dword [ebp - 0xc]
add ebx, 0x24
mov dword [ebp - 0x24], ebx
mov dword [edi], edx
mov ecx, dword [esi]
push dword [edx]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov dword [edi + 0x20], eax
mov ecx, dword [esi + 4]
cmp dword [ecx + 0x44], 0
je 0x406dc0
push eax
push 0x2f5d
call fcn.0040c11a
pop ecx
pop ecx
mov edx, dword [edi]
cmp dword [edx + 4], 0
je 0x406f44
and dword [edi + 0x18], 0
mov ecx, dword [esi]
push edx
mov eax, dword [ecx]
call dword [eax + 0x64]
mov ecx, dword [esi]
lea edx, [ebp - 0x28]
push edx
push 0xa
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dword [edi + 4], eax
test eax, eax
je 0x406f9d
mov ecx, dword [esi]
lea edx, [ebp - 0x28]
push edx
push 0xb
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dword [edi + 8], eax
test eax, eax
je 0x406f9d
mov ecx, dword [esi]
lea eax, [edi + 0x14]
push eax
lea eax, [edi + 0x10]
push eax
mov edx, dword [ecx]
call dword [edx + 0x1dc]
test eax, eax
je 0x406f9d
mov edx, edi
mov ecx, esi
call fcn.004072ca
mov ecx, dword [esi]
push 0
mov eax, dword [ecx]
call dword [eax + 0x74]
mov ebx, eax
test ebx, ebx
je 0x406f3a
imul eax, dword [ebp - 0x10], 0x64
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [esi + 0x90]
jae 0x406f3a
mov ecx, dword [esi + 0x8c]
add dword [ebp - 4], 0x64
cdq
idiv dword [ecx + 0x3c]
mov ecx, dword [esi + 4]
inc dword [ebp - 0x10]
cmp dword [ecx + 0x44], 0
je 0x406e87
mov edx, dword [ebx + 0x34]
mov ecx, esi
push eax
call fcn.00406be8
push eax
push 0x40177c
call fcn.0040c16c
add esp, 0xc
mov ecx, dword [ebx + 0x34]
call fcn.00407236
mov dword [ebp - 8], eax
test eax, eax
je 0x406f76
mov ecx, dword [esi]
push dword [ebx + 0x34]
mov edx, dword [ecx]
call dword [edx + 0x34]
mov eax, dword [ebx + 0x28]
mov ecx, dword [ebp - 8]
add eax, dword [edi + 4]
mov dword [ecx + 0x58], eax
test byte [ebx + 0x14], 1
je 0x406ebc
movzx eax, word [ebx + 0x3c]
jmp 0x406ec0
movzx eax, word [ebx + 8]
mov word [ecx + 0x64], ax
mov ax, word [ebx + 0xc]
mov word [ecx + 0x66], ax
mov ecx, dword [esi]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x78]
mov eax, dword [ebp - 8]
mov edx, ebx
push edi
push eax
mov ecx, esi
mov dword [eax + 4], edi
call fcn.00408f6d
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x7c]
mov edx, dword [ebp - 0x14]
mov eax, dword [esi + 0x98]
mov ecx, dword [ebp - 8]
mov dword [eax + edx*4], ecx
inc edx
cmp dword [0x42eb5c], 0
mov dword [ebp - 0x14], edx
jne 0x406f0e
mov dword [0x42eb5c], ecx
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x406f18
mov dword [eax + 0x68], ecx
and dword [ecx + 0x68], 0
xor eax, eax
mov word [ecx + 0x40], ax
mov dword [ebp - 0x18], ecx
mov ecx, dword [esi]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x74]
mov ebx, eax
mov eax, dword [ebp - 4]
test ebx, ebx
jne 0x406e45
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x70]
mov ebx, dword [ebp - 0x24]
mov ecx, dword [esi]
push dword [ebp - 0x1c]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov edx, eax
mov dword [ebp - 0x1c], eax
test edx, edx
jne 0x406d79
mov eax, dword [esi + 4]
cmp dword [eax + 0x1c], 0
je 0x406f6f
push 0x2f5c
call fcn.0040c11a
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [esi + 4]
push dword [eax + 0x38]
push 0x42e
push 0x2ee1
call fcn.0040bdde
push eax
call fcn.0040ae25
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x70]
or eax, 0xffffffff
jmp 0x406f71
push dword [edi + 0x20]
push 0x425
push 0x2ee1
call fcn.0040bdde
push eax
call fcn.0040aefc
jmp 0x406cd4