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

Disassembly:
push 0xffffffffffffffff
push 0x48c570
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4be8a0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov eax, dword [esp + 0x80]
push eax
lea ecx, [esp + 0x18]
call fcn.00463bc0
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
xor ebp, ebp
mov dword [esp + 0x78], ebp
cmp ebx, ebp
je 0x465529
cmp word [esi + ebx*2 - 2], 0x5c
lea eax, [esi + ebx*2 - 2]
je 0x4654d3
cmp eax, esi
je 0x465529
sub eax, 2
cmp word [eax], 0x5c
jne 0x4654c6
sub eax, esi
sar eax, 1
cmp eax, ebp
jle 0x465529
lea ecx, [ebx - 1]
cmp eax, ecx
jne 0x465529
cmp ebx, 3
jne 0x465515
cmp word [esi + 2], 0x3a
jne 0x465515
push esi
mov dword [esp + 0x7c], 0xffffffff
call fcn.00463780
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
push 1
push eax
lea ecx, [esp + 0x1c]
call fcn.004653b0
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x24]
call fcn.00463c20
push esi
mov byte [esp + 0x7c], 1
mov edi, ebx
call fcn.00465360
add esp, 4
test al, al
jne 0x4656e5
nop
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x465622
cmp ebx, ebp
je 0x46579d
cmp word [esi + ebx*2 - 2], 0x5c
lea eax, [esi + ebx*2 - 2]
je 0x465586
cmp eax, esi
je 0x46579d
sub eax, 2
cmp word [eax], 0x5c
jne 0x465575
sub eax, esi
sar eax, 1
mov edi, eax
js 0x46579d
cmp edi, ebp
je 0x46579d
cmp word [esi + edi*2 - 2], 0x3a
je 0x465796
push edi
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
call fcn.00464670
mov ebp, eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x78], 3
cmp ebp, ecx
je 0x4655fb
xor edx, edx
mov word [esi], dx
mov eax, dword [ebp + 4]
push eax
mov dword [esp + 0x1c], 0
call fcn.00463a00
mov esi, dword [esp + 0x14]
mov edx, dword [ebp]
mov ecx, esi
movzx eax, word [edx]
mov word [ecx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x4655e3
mov ebx, dword [ebp + 4]
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x2c]
push ecx
mov byte [esp + 0x7c], 1
call fcn.00463780
push esi
call fcn.00465360
add esp, 8
test al, al
jne 0x4656e5
xor ebp, ebp
jmp 0x465550
push 3
lea ecx, [esp + 0x64]
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebp
call fcn.00463a00
push esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x7c], 2
call fcn.00465e10
mov byte [esp + 0x78], 1
test al, al
jne 0x465697
mov edx, dword [esp + 0x60]
push edx
call fcn.00463780
mov eax, dword [esp + 0x24]
push eax
mov byte [esp + 0x80], 0
call fcn.00463780
push esi
mov dword [esp + 0x84], 0xffffffff
call fcn.00463780
add esp, 0xc
mov al, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov ecx, dword [esp + 0x58]
shr ecx, 4
test cl, 1
jne 0x4656d8
mov edx, dword [esp + 0x60]
push edx
call fcn.00463780
mov eax, dword [esp + 0x24]
push eax
mov byte [esp + 0x80], 0
call fcn.00463780
push esi
mov dword [esp + 0x84], 0xffffffff
call fcn.00463780
add esp, 0xc
jmp 0x4657c0
mov ecx, dword [esp + 0x60]
push ecx
call fcn.00463780
add esp, 4
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x18]
call fcn.00463cc0
mov ebp, dword [esp + 0x18]
cmp edi, ebp
mov esi, dword [esp + 0x14]
jge 0x46575d
nop
movzx ecx, word [esi + edi*2 + 2]
lea eax, [esi + edi*2 + 2]
cmp cx, 0x5c
je 0x465722
nop
test cx, cx
je 0x46572a
movzx ecx, word [eax + 2]
add eax, 2
cmp cx, 0x5c
jne 0x465710
sub eax, esi
sar eax, 1
mov edi, eax
jns 0x46572c
mov edi, ebp
push edi
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
call fcn.00464670
mov eax, dword [eax]
push eax
call fcn.00465360
mov ecx, dword [esp + 0x30]
test al, al
push ecx
sete bl
call fcn.00463780
add esp, 8
test bl, bl
jne 0x46579d
cmp edi, ebp
jl 0x465700
mov eax, dword [esp + 0x20]
push eax
mov byte [esp + 0x7c], 0
call fcn.00463780
push esi
mov dword [esp + 0x80], 0xffffffff
call fcn.00463780
add esp, 8
mov al, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov ecx, dword [esp + 0x20]
push ecx
jmp 0x4657a2
mov edx, dword [esp + 0x20]
push edx
mov byte [esp + 0x7c], 0
call fcn.00463780
push esi
mov dword [esp + 0x80], 0xffffffff
call fcn.00463780
add esp, 8
xor al, al
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret