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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x491040]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
test esi, esi
jne 0x405cad
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.004347ab
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 1
je 0x40606f
test byte [esi + 0x50], 0xf
je 0x405d21
push 4
sub esp, 8
mov dword [esp + 0x30], ebx
lea eax, [esp + 0x30]
mov edx, 0x49649d
lea ecx, [esi + 0xc8]
push eax
call fcn.00403a70
add esp, 0x10
cmp eax, 1
je 0x405cf1
test eax, eax
je 0x405cf1
mov ebx, 0xfffffff4
jmp 0x40606f
mov eax, dword [esi + 0xc0]
mov ecx, dword [esi + 0xc4]
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0xb8]
mov dword [esi + 0x78], eax
mov eax, 8
mov dword [esi + 0x6c], ecx
mov ecx, dword [esi + 0xbc]
mov dword [esi + 0x7c], ecx
mov word [esi + 0xa8], ax
mov ecx, dword [esi + 0x5c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405d27
sub ecx, edx
movzx eax, cx
mov ecx, dword [esi + 0x4e014]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x4e010]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x38]
mov dword [esp + 0x30], ecx
push eax
call fcn.00450b63
add esp, 8
test eax, eax
je 0x405d6b
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
jmp 0x405da8
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
shl ecx, 6
add ecx, dword [esp + 0x38]
sar eax, 1
shl ecx, 5
add ecx, eax
movzx eax, cx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x44]
add eax, 0x301
shl ecx, 4
add eax, ecx
shl eax, 5
add eax, dword [esp + 0x40]
movzx eax, ax
mov dword [esp + 0x1c], eax
mov ecx, dword [esi + 0x70]
lea ebx, [esi + 0x68]
mov edx, dword [ebx + 4]
mov eax, ecx
shr eax, 8
mov byte [esp + 0x5d], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x5e], al
mov byte [esp + 0x5c], cl
shr ecx, 0x18
mov byte [esp + 0x5f], cl
mov ecx, dword [ebx]
mov eax, ecx
shr eax, 8
mov byte [esp + 0x61], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x62], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x65], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x64], dl
mov byte [esp + 0x66], al
shr edx, 0x18
mov byte [esp + 0x60], cl
shr ecx, 0x18
mov byte [esp + 0x67], dl
lea edx, [esi + 0x60]
mov byte [esp + 0x63], cl
mov ecx, dword [edx]
mov eax, ecx
shr eax, 8
mov byte [esp + 0x69], al
mov eax, ecx
mov edi, dword [esi + 0x3c]
shr eax, 0x10
mov byte [esp + 0x6a], al
mov dword [esp + 0x18], edx
mov edx, dword [edx + 4]
mov eax, edx
shr eax, 8
mov byte [esp + 0x6d], al
mov eax, edx
shr eax, 0x10
push 0x18
mov byte [esp + 0x72], al
lea eax, [esp + 0x5c]
push eax
push dword [esi + 0x7c]
mov byte [esp + 0x74], cl
push dword [esi + 0x78]
shr ecx, 0x18
push dword [esi + 0x44]
mov byte [esp + 0x80], dl
mov byte [esp + 0x7f], cl
mov ecx, edi
shr edx, 0x18
mov dword [esp + 0x6c], 0x8074b50
mov dword [esp + 0x24], ebx
mov byte [esp + 0x83], dl
call dword [0x4791e8]
call edi
add esp, 0x14
cmp eax, 0x18
je 0x405e91
mov ebx, 0xfffffff2
jmp 0x40606f
add dword [esi + 0x78], 0x18
lea eax, [esi + 0xa0]
mov dword [esp + 0x14], eax
adc dword [esi + 0x7c], 0
cmp dword [eax + 4], 0
ja 0x405eb6
cmp dword [eax], 0xffffffff
jae 0x405eb6
mov dword [esp + 0x14], 0
cmp dword [ebx + 4], 0
ja 0x405ec9
cmp dword [ebx], 0xffffffff
jae 0x405ec9
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
mov dword [esp + 0x28], ecx
test ecx, ecx
jne 0x405eec
cmp dword [eax], 0xffffffff
jae 0x405eec
mov word [esp + 0x70], 1
lea edi, [esp + 0x74]
xor ebx, ebx
jmp 0x405f45
xor ebx, ebx
mov word [esp + 0x70], 1
lea edi, [esp + 0x74]
test eax, eax
je 0x405f45
mov ecx, dword [eax]
lea edi, [esp + 0x7c]
mov edx, dword [eax + 4]
mov ebx, 8
mov eax, ecx
mov byte [esp + 0x74], cl
shr eax, 8
mov byte [esp + 0x75], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x76], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x79], al
mov eax, edx
shr ecx, 0x18
shr eax, 0x10
mov byte [esp + 0x78], dl
shr edx, 0x18
mov byte [esp + 0x77], cl
mov byte [esp + 0x7a], al
mov byte [esp + 0x7b], dl
mov eax, dword [esp + 0x10]
test eax, eax
je 0x405f89
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, ecx
shr eax, 8
mov byte [edi + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 2], al
mov eax, edx
shr eax, 8
mov byte [edi + 5], al
mov eax, edx
mov byte [edi], cl
mov byte [edi + 4], dl
shr ecx, 0x18
shr eax, 0x10
shr edx, 0x18
mov byte [edi + 3], cl
mov byte [edi + 6], al
mov byte [edi + 7], dl
add edi, 8
add ebx, 8
mov eax, dword [esp + 0x14]
test eax, eax
je 0x405fcd
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, ecx
shr eax, 8
mov byte [edi + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 2], al
mov eax, edx
shr eax, 8
mov byte [edi + 5], al
mov eax, edx
mov byte [edi], cl
mov byte [edi + 4], dl
shr ecx, 0x18
shr eax, 0x10
shr edx, 0x18
mov byte [edi + 3], cl
mov byte [edi + 6], al
mov byte [edi + 7], dl
add edi, 8
add ebx, 8
mov byte [esp + 0x72], bl
lea eax, [esp + 0x70]
shr ebx, 8
sub edi, eax
mov byte [esp + 0x73], bl
mov ebx, dword [esp + 0x20]
test bx, bx
je 0x406007
mov eax, dword [esi + 0x5c]
movzx ecx, bx
cmp byte [eax + ecx - 1], 0x2f
jne 0x406007
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
or eax, dword [esp + 0x28]
jne 0x406007
or dword [esi + 0x4e008], 0x10
sub esp, 8
movzx eax, word [esi + 0xa8]
mov edx, dword [esi + 0x5c]
push dword [esi + 0x4e008]
push dword [esi + 0xa4]
push dword [esi + 0xa0]
push dword [esp + 0x30]
push dword [esp + 0x3c]
push ecx
push eax
push dword [esi + 0x70]
lea eax, [esp + 0x98]
mov ecx, esi
push dword [esi + 0x6c]
push dword [esi + 0x68]
push dword [esi + 0x64]
push dword [esi + 0x60]
sub esp, 8
push edi
push eax
push ebx
call fcn.00404c60
add esp, 0x4c
test eax, eax
jne 0x40605f
lea ebx, [eax - 0xf]
jmp 0x40606f
inc dword [esi + 0x10]
xor ebx, ebx
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x7c]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov ecx, dword [esi + 0x5c]
mov dword [esi + 0x4e010], 0
mov dword [esi + 0x4e014], 0
test ecx, ecx
je 0x40609a
push ecx
call fcn.00451a6e
add esp, 4
mov dword [esi + 0x5c], 0
mov ecx, dword [esp + 0x8c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004347ab
mov esp, ebp
pop ebp
ret