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

Disassembly:
push 0xffffffffffffffff
push 0x4560b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov al, byte [esp + 0x60]
push ebx
push ebp
push esi
xor esi, esi
push edi
push esi
push esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x38], al
call fcn.004068f0
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], esi
mov cx, word [0x46b9b4]
mov dl, byte [0x46b9b6]
xor eax, eax
mov word [esp + 0x24], cx
mov byte [esp + 0x26], dl
mov edx, dword [esp + 0x70]
mov dword [esp + 0x27], eax
lea ecx, [esp + 0x24]
mov word [esp + 0x2b], ax
push ecx
push edx
mov dword [esp + 0x6c], esi
mov byte [esp + 0x35], al
call fcn.00435fbf
mov ebp, eax
add esp, 8
cmp ebp, esi
je 0x405da9
mov bl, byte [esp + 0x70]
push 2
push 0x46b9b0
push ebp
call fcn.004362b3
add esp, 0xc
test eax, eax
jne 0x405c07
push ebp
call fcn.0043629c
push eax
call fcn.0043629c
add esp, 8
mov ebp, eax
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x14], al
mov dword [esp + 0x15], esi
lea eax, [ecx - 1]
cmp eax, 3
ja case.default.0x405c27
jmp dword [eax*4 + 0x405f2c]
mov al, byte [esp + 0x70]
push esi
lea ecx, [esp + 0x40]
mov byte [esp + 0x40], al
call fcn.00402a10
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
lea ecx, [esp + 0x44]
call fcn.00402970
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x3c]
push ecx
lea eax, [esp + 0x74]
push edx
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x70], 1
call fcn.00406890
mov byte [esp + 0x64], 0
push 1
lea ecx, [esp + 0x40]
jmp 0x405d8a
mov edi, 0x46b840
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x46b840
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x46b840
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x18]
and ecx, 3
mov byte [esp + 0x50], bl
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x50]
call fcn.00402a10
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x14]
push ecx
push eax
lea ecx, [esp + 0x54]
call fcn.00402970
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x4c]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x70], 2
call fcn.00406890
mov byte [esp + 0x64], 0
push 1
lea ecx, [esp + 0x50]
call fcn.00402a10
lea ecx, [esp + 0x24]
xor esi, esi
push ecx
push esi
call fcn.00435fbf
mov ebp, eax
add esp, 8
cmp ebp, esi
jne 0x405be2
mov eax, dword [esp + 0x6c]
mov byte [esp + 0x1c], 0
and eax, 0xffff
mov dword [esp + 0x1d], esi
mov edx, eax
mov ecx, eax
and edx, 0xf
push edx
mov edx, eax
shr ecx, 4
shr edx, 8
and ecx, 0xf
and edx, 0xf
push ecx
push edx
shr eax, 0xc
push eax
lea eax, [esp + 0x2c]
push str._x_x_x_x
push eax
call fcn.00435e2f
mov edi, dword [esp + 0x4c]
add esp, 0x18
mov ebp, dword [edi]
cmp ebp, edi
je 0x405eaf
mov bl, 0xff
xor edi, edi
lea esi, [ebp + 8]
mov ecx, dword [esi + 8]
cmp ecx, edi
jb 0x405e32
mov eax, dword [esi + 4]
test eax, eax
je 0x405e32
mov al, byte [eax - 1]
test al, al
je 0x405e21
cmp al, bl
je 0x405e21
push 0
push ecx
mov ecx, esi
call fcn.00404ce0
mov eax, dword [esi + 4]
test eax, eax
je 0x405e2b
mov byte [eax - 1], bl
mov eax, dword [esi + 4]
add eax, edi
jmp 0x405e37
mov eax, 0x45a50c
cmp byte [eax], 0x2a
je 0x405e7f
mov ecx, dword [esi + 8]
cmp ecx, edi
jb 0x405e70
mov eax, dword [esi + 4]
test eax, eax
je 0x405e70
mov al, byte [eax - 1]
test al, al
je 0x405e5f
cmp al, bl
je 0x405e5f
push 0
push ecx
mov ecx, esi
call fcn.00404ce0
mov eax, dword [esi + 4]
test eax, eax
je 0x405e69
mov byte [eax - 1], bl
mov eax, dword [esi + 4]
add eax, edi
jmp 0x405e75
mov eax, 0x45a50c
mov cl, byte [eax]
mov al, byte [esp + edi + 0x1c]
cmp cl, al
jne 0x405e8a
inc edi
cmp edi, 4
jge 0x405e9a
jmp 0x405dfe
mov ebp, dword [ebp]
mov edi, dword [esp + 0x34]
cmp ebp, edi
je 0x405eaf
jmp 0x405df9
mov eax, dword [esp + 0x78]
mov edi, dword [esp + 0x34]
xor edx, edx
test eax, eax
mov eax, dword [esp + 0x74]
sete dl
mov dword [eax], edx
mov esi, dword [edi]
cmp esi, edi
je 0x405ecc
mov eax, esi
mov esi, dword [esi]
lea ecx, [esp + 0x70]
push eax
push ecx
lea ecx, [esp + 0x38]
call fcn.00406a40
cmp esi, edi
jne 0x405eb5
mov esi, dword [esp + 0x34]
mov dword [esp + 0x64], 0xffffffff
mov eax, dword [esi]
cmp eax, esi
mov dword [esp + 0x70], eax
je 0x405f09
lea edx, [esp + 0x6c]
push 0
push edx
lea ecx, [esp + 0x78]
call fcn.00406680
mov eax, dword [eax]
lea ecx, [esp + 0x78]
push eax
push ecx
lea ecx, [esp + 0x38]
call fcn.00406a40
cmp dword [esp + 0x70], esi
jne 0x405ee2
mov edx, dword [esp + 0x34]
push edx
call fcn.0044a2a3
mov ecx, dword [esp + 0x60]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x10