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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
mov esi, ecx
and dword [ebp - 0x1c], 0
push edi
and dl, 2
mov dword [ebp - 0x14], 3
mov byte [ebp - 1], dl
mov eax, dword [esi]
movzx ecx, word [esi + 0x46]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
movsx eax, byte [esi + 0x44]
mov dword [ebp - 0x18], eax
mov edi, dword [esi + eax*4 + 0x74]
mov eax, dword [edi + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x18]
movzx ebx, cx
and ebx, eax
add ebx, dword [edi + 0x38]
test dl, dl
je 0x405ea9
cmp byte [edi + 8], 0
je 0x405e9a
push ebx
push edi
call fcn.003ffc50
pop ecx
pop ecx
movzx ecx, ax
xor edx, edx
movzx eax, word [edi + 0x14]
add eax, 2
add ecx, eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
add eax, eax
div dword [ebp - 0x14]
cmp ecx, eax
jg 0x405e9a
mov dword [ebp - 0x1c], 1
jmp 0x405ea9
mov ecx, esi
call fcn.003ff650
test eax, eax
jne 0x40607c
cmp byte [edi + 8], 0
jne 0x405ec1
push 0
push esi
call fcn.00403096
pop ecx
pop ecx
test eax, eax
jne 0x40607c
test byte [esi + 0x40], 0x20
je 0x405edc
mov edx, dword [esi + 0x34]
mov ecx, dword [ebp - 0xc]
push esi
call fcn.003ff6e5
pop ecx
test eax, eax
jne 0x40607c
cmp dword [esi + 0x70], 0
jne 0x405ef8
mov edx, dword [esi + 0x34]
mov ecx, dword [ebp - 8]
push 0
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.003ff568
add esp, 0xc
mov ecx, dword [edi + 0x48]
call fcn.003fc718
test eax, eax
jne 0x40607c
lea eax, [ebp - 0x40]
mov edx, ebx
push eax
mov ecx, edi
call fcn.00403927
mov edx, dword [ebp - 0x10]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
pop ecx
push eax
movzx eax, word [ebp - 0x2e]
mov ecx, edi
push eax
call fcn.00403c9c
mov eax, dword [ebp - 8]
pop ecx
pop ecx
test eax, eax
jne 0x40607c
cmp byte [edi + 8], al
jne 0x405ff8
movsx eax, byte [esi + 0x44]
mov ebx, dword [esi + eax*4 + 0x74]
mov eax, dword [ebp - 0x18]
movzx ecx, word [ebx + 0x16]
mov eax, dword [esi + eax*4 + 0x78]
mov edx, dword [ebx + 0x38]
mov eax, dword [eax + 4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x40]
mov ax, word [eax + ecx*2 - 2]
mov ch, al
mov cl, ah
movzx eax, word [ebx + 0x18]
movzx ecx, cx
and ecx, eax
lea eax, [edx + 4]
add ecx, edx
mov dword [ebp - 0x24], ecx
cmp ecx, eax
jae 0x405f8e
mov ecx, 0x10971
call fcn.0044272e
jmp 0x40607c
push ecx
push ebx
call dword [ebx + 0x4c]
movzx eax, ax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebx + 0x48]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0xc], eax
call fcn.003fc718
mov dword [ebp - 8], eax
test eax, eax
jne 0x405fd8
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
mov ecx, edi
push dword [ebp - 0xc]
add eax, 4
push eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffffc
push eax
call fcn.00403db2
add esp, 0x14
movzx edx, word [ebx + 0x16]
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
dec edx
mov ecx, ebx
call fcn.00403c9c
mov eax, dword [ebp - 8]
pop ecx
pop ecx
test eax, eax
jne 0x40607c
mov ecx, esi
call fcn.004059c9
mov edx, eax
test edx, edx
jne 0x40607a
movsx ecx, byte [esi + 0x44]
mov ebx, dword [ebp - 0x18]
cmp ecx, ebx
jle 0x406039
mov dl, byte [esi + 0x44]
movsx eax, dl
dec dl
mov ecx, dword [esi + eax*4 + 0x74]
mov byte [esi + 0x44], dl
call fcn.004009af
movsx eax, byte [esi + 0x44]
cmp eax, ebx
jg 0x406010
mov ecx, esi
call fcn.004059c9
mov edx, eax
test edx, edx
jne 0x40607a
cmp dword [ebp - 0x1c], 0
je 0x406065
mov byte [esi + 0x42], 2
movzx eax, word [edi + 0x16]
cmp dword [ebp - 0x10], eax
jl 0x40605c
or dword [esi + 0x3c], 0xffffffff
mov ax, word [edi + 0x16]
dec ax
mov word [esi + 0x46], ax
jmp 0x40607a
mov dword [esi + 0x3c], 1
jmp 0x40607a
mov ecx, esi
call fcn.004028a1
cmp byte [ebp - 1], 0
mov edx, eax
je 0x40607a
push 3
pop eax
mov byte [esi + 0x42], al
mov eax, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret