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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [0x490004]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
test esi, esi
jne 0x405b1d
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.0042e653
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 1
je 0x405f3f
test byte [esi + 0x50], 0xf
je 0x405b95
push 4
sub esp, 8
mov dword [esp + 0x40], ebx
lea eax, [esp + 0x40]
mov edx, 0x482090
lea ecx, [esi + 0xc8]
push eax
call fcn.00403890
add esp, 0x10
cmp eax, 1
je 0x405b61
test eax, eax
je 0x405b61
mov ebx, 0xfffffff4
jmp 0x405f3f
mov eax, dword [esi + 0xc0]
lea ebx, [esi + 0x68]
mov ecx, dword [esi + 0xc4]
mov dword [ebx], eax
mov eax, dword [esi + 0xb8]
mov dword [esi + 0x78], eax
mov eax, 8
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 0xbc]
mov dword [esi + 0x7c], ecx
mov word [esi + 0xa8], ax
jmp 0x405b98
lea ebx, [esi + 0x68]
mov ecx, dword [esi + 0x5c]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405ba0
sub ecx, edx
movzx eax, cx
mov ecx, dword [esi + 0x4e014]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x4e010]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x40], ecx
push eax
call fcn.0044b8f3
add esp, 8
test eax, eax
je 0x405bec
mov dword [esp + 0x20], 0
mov dword [esp + 0x34], 0
jmp 0x405c29
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x44]
shl ecx, 6
add ecx, dword [esp + 0x48]
sar eax, 1
shl ecx, 5
add ecx, eax
movzx eax, cx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x54]
add eax, 0x301
shl ecx, 4
add eax, ecx
shl eax, 5
add eax, dword [esp + 0x50]
movzx eax, ax
mov dword [esp + 0x20], eax
mov ecx, dword [esi + 0x70]
mov eax, ecx
shr eax, 8
mov edx, dword [ebx + 4]
mov byte [esp + 0x6d], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x6e], al
mov byte [esp + 0x6c], cl
shr ecx, 0x18
mov byte [esp + 0x6f], cl
mov ecx, dword [ebx]
mov eax, ecx
shr eax, 8
mov byte [esp + 0x71], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x72], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x75], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x76], al
mov byte [esp + 0x70], cl
shr ecx, 0x18
mov byte [esp + 0x73], cl
mov ecx, dword [esi + 0x60]
mov eax, ecx
shr eax, 8
mov byte [esp + 0x79], al
mov eax, ecx
mov edi, dword [esi + 0x3c]
shr eax, 0x10
mov byte [esp + 0x74], dl
shr edx, 0x18
mov byte [esp + 0x7a], al
mov byte [esp + 0x77], dl
mov edx, dword [esi + 0x64]
mov eax, edx
shr eax, 8
mov byte [esp + 0x7d], al
mov eax, edx
shr eax, 0x10
push 0x18
mov byte [esp + 0x82], al
lea eax, [esp + 0x6c]
push eax
push dword [esi + 0x7c]
mov byte [esp + 0x84], cl
push dword [esi + 0x78]
shr ecx, 0x18
push dword [esi + 0x44]
mov byte [esp + 0x90], dl
mov byte [esp + 0x8f], cl
mov ecx, edi
shr edx, 0x18
mov dword [esp + 0x7c], 0x8074b50
mov byte [esp + 0x93], dl
call dword [0x4751bc]
call edi
add esp, 0x14
cmp eax, 0x18
je 0x405d0e
mov ebx, 0xfffffff2
jmp 0x405f3f
add dword [esi + 0x78], 0x18
lea eax, [esi + 0xa0]
mov ecx, dword [eax]
adc dword [esi + 0x7c], 0
mov dword [esp + 0x1c], eax
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], eax
test eax, eax
jne 0x405d3a
cmp ecx, 0xffffffff
jae 0x405d3a
mov dword [esp + 0x1c], eax
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], ecx
test ecx, ecx
jne 0x405d52
cmp eax, 0xffffffff
jae 0x405d52
xor ebx, ebx
mov ecx, dword [esi + 0x64]
lea edx, [esi + 0x60]
mov eax, dword [edx]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
test ecx, ecx
jne 0x405d80
cmp eax, 0xffffffff
jae 0x405d80
mov word [esp + 0x80], 1
lea edi, [esp + 0x84]
xor eax, eax
jmp 0x405dfe
xor eax, eax
mov word [esp + 0x80], 1
mov dword [esp + 0x10], eax
lea edi, [esp + 0x84]
test edx, edx
je 0x405e02
mov ecx, dword [edx]
lea edi, [esp + 0x8c]
mov edx, dword [edx + 4]
mov eax, ecx
shr eax, 8
mov byte [esp + 0x85], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x86], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x89], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x84], cl
shr ecx, 0x18
mov byte [esp + 0x88], dl
shr edx, 0x18
mov byte [esp + 0x8a], al
mov eax, 8
mov byte [esp + 0x87], cl
mov byte [esp + 0x8b], dl
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x405e4a
mov ecx, dword [ebx]
mov eax, ecx
mov edx, dword [ebx + 4]
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
shr eax, 0x10
mov byte [edi], cl
mov byte [edi + 4], dl
shr ecx, 0x18
mov byte [edi + 6], al
mov eax, dword [esp + 0x10]
shr edx, 0x18
mov byte [edi + 3], cl
mov byte [edi + 7], dl
add edi, 8
add eax, 8
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x405e92
mov ecx, dword [edx]
mov eax, ecx
mov edx, dword [edx + 4]
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
shr eax, 0x10
mov byte [edi], cl
mov byte [edi + 4], dl
shr ecx, 0x18
mov byte [edi + 6], al
mov eax, dword [esp + 0x10]
shr edx, 0x18
mov byte [edi + 3], cl
mov byte [edi + 7], dl
add edi, 8
add eax, 8
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov byte [esp + 0x82], al
shr eax, 8
mov byte [esp + 0x83], al
lea eax, [esp + 0x80]
sub edi, eax
test bx, bx
je 0x405ed9
mov eax, dword [esi + 0x5c]
movzx ecx, bx
cmp byte [ecx + eax - 1], 0x2f
mov ecx, dword [esp + 0x14]
jne 0x405edd
mov eax, ecx
or eax, edx
jne 0x405edd
or dword [esi + 0x4e008], 0x10
jmp 0x405edd
mov ecx, dword [esp + 0x14]
sub esp, 8
movzx eax, word [esi + 0xa8]
push dword [esi + 0x4e008]
push dword [esp + 0x34]
push dword [esp + 0x3c]
push dword [esp + 0x34]
push dword [esp + 0x4c]
push ecx
push eax
push dword [esi + 0x70]
lea eax, [esp + 0xa8]
push dword [esp + 0x58]
push dword [esp + 0x64]
push edx
mov edx, dword [esi + 0x5c]
push ecx
sub esp, 8
mov ecx, esi
push edi
push eax
push ebx
call fcn.00404a60
add esp, 0x4c
test eax, eax
jne 0x405f2f
lea ebx, [eax - 0xf]
jmp 0x405f3f
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 0x405f6a
push ecx
call fcn.0044c7fe
add esp, 4
mov dword [esi + 0x5c], 0
mov ecx, dword [esp + 0x9c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042e653
mov esp, ebp
pop ebp
ret