Function at 0x458e60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1ebc
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x4f91a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
xor bl, bl
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x28c], eax
xor eax, eax
mov dword [ebp - 0x248], 7
mov dword [ebp - 0x24c], 0
mov word [ebp - 0x25c], ax
cmp word [edx], ax
jne 0x458ec5
xor ecx, ecx
jmp 0x458edf
mov ecx, edx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x458ed0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x25c]
call fcn.00407070
lea eax, [ebp - 0x25c]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.00418fd0
add esp, 8
cmp dword [ebp - 0x230], 0x10
lea eax, [ebp - 0x244]
push dword [ebp - 0x234]
cmovae eax, dword [ebp - 0x244]
lea ecx, [ebp - 0x284]
push eax
mov byte [ebp - 4], 1
call fcn.0044b1d0
push 0
push 0x80
push 3
push 0
push 1
push bind
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4590b4
push 0x100
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.004a90e0
add esp, 0xc
mov dword [ebp - 0x288], 0
lea eax, [ebp - 0x288]
push 0
push eax
push 0x100
lea eax, [ebp - 0x214]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4590ad
push 0x101
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004a90e0
add esp, 0xc
lea eax, [ebp - 0x114]
lea ecx, [ebp - 0x284]
push eax
lea eax, [ebp - 0x214]
push eax
push 0xd3ac
push 0x100
call fcn.0044b1b0
mov dword [ebp - 0x218], 0xf
mov dword [ebp - 0x21c], 0
mov byte [ebp - 0x22c], 0
cmp byte [ebp - 0x114], 0
mov byte [ebp - 4], 2
jne 0x459000
xor ecx, ecx
jmp 0x459019
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x459010
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x22c]
call fcn.004073c0
sub esp, 8
lea eax, [ebp - 0x22c]
cmp dword [ebp - 0x218], 0x10
mov edx, esp
cmovae eax, dword [ebp - 0x22c]
mov dword [edx], eax
mov eax, dword [ebp - 0x21c]
mov dword [edx + 4], eax
lea eax, [ebp - 0x274]
push eax
call fcn.00419100
add esp, 0xc
mov ecx, dword [ebp - 0x28c]
push eax
mov byte [ebp - 4], 3
call fcn.00409fd0
mov eax, dword [ebp - 0x260]
cmp eax, 8
jb 0x45908d
inc eax
lea ecx, [ebp - 0x274]
push eax
push dword [ebp - 0x274]
call fcn.004085f0
mov eax, dword [ebp - 0x218]
mov bl, 1
cmp eax, 0x10
jb 0x4590ad
inc eax
lea ecx, [ebp - 0x22c]
push eax
push dword [ebp - 0x22c]
call fcn.004078e0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x230]
cmp eax, 0x10
jb 0x4590d2
inc eax
lea ecx, [ebp - 0x244]
push eax
push dword [ebp - 0x244]
call fcn.004078e0
mov ecx, dword [ebp - 0x248]
mov dword [ebp - 0x230], 0xf
mov dword [ebp - 0x234], 0
mov byte [ebp - 0x244], 0
cmp ecx, 8
jb 0x45910b
inc ecx
push ecx
push dword [ebp - 0x25c]
lea ecx, [ebp - 0x25c]
call fcn.004085f0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046100d
mov esp, ebp
pop ebp
ret 0xc