Function at 0x459130
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1f1c
mov eax, dword fs:[0]
push eax
sub esp, 0x104
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 - 0x10c], eax
xor eax, eax
mov dword [ebp - 0xc8], 7
mov dword [ebp - 0xcc], 0
mov word [ebp - 0xdc], ax
cmp word [edx], ax
jne 0x459195
xor ecx, ecx
jmp 0x4591af
mov ecx, edx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4591a0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xdc]
call fcn.00407070
lea eax, [ebp - 0xdc]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.00418fd0
add esp, 8
cmp dword [ebp - 0xb0], 0x10
lea eax, [ebp - 0xc4]
push dword [ebp - 0xb4]
cmovae eax, dword [ebp - 0xc4]
lea ecx, [ebp - 0x104]
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 0x459362
push 0x40
lea eax, [ebp - 0x94]
push 0
push eax
call fcn.004a90e0
add esp, 0xc
mov dword [ebp - 0x108], 0
lea eax, [ebp - 0x108]
push 0
push eax
push 0x40
lea eax, [ebp - 0x94]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45935b
push 0x41
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.004a90e0
add esp, 0xc
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x104]
push eax
lea eax, [ebp - 0x94]
push eax
push 0xd3ac
push 0x40
call fcn.0044b1b0
mov dword [ebp - 0x98], 0xf
mov dword [ebp - 0x9c], 0
mov byte [ebp - 0xac], 0
cmp byte [ebp - 0x54], 0
mov byte [ebp - 4], 2
jne 0x4592bb
xor ecx, ecx
jmp 0x4592ca
lea ecx, [ebp - 0x54]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4592c1
sub ecx, edx
push ecx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0xac]
call fcn.004073c0
sub esp, 8
lea eax, [ebp - 0xac]
cmp dword [ebp - 0x98], 0x10
mov edx, esp
cmovae eax, dword [ebp - 0xac]
mov dword [edx], eax
mov eax, dword [ebp - 0x9c]
mov dword [edx + 4], eax
lea eax, [ebp - 0xf4]
push eax
call fcn.00419100
add esp, 0xc
mov ecx, dword [ebp - 0x10c]
push eax
mov byte [ebp - 4], 3
call fcn.00409fd0
mov eax, dword [ebp - 0xe0]
cmp eax, 8
jb 0x45933b
inc eax
lea ecx, [ebp - 0xf4]
push eax
push dword [ebp - 0xf4]
call fcn.004085f0
mov eax, dword [ebp - 0x98]
mov bl, 1
cmp eax, 0x10
jb 0x45935b
inc eax
lea ecx, [ebp - 0xac]
push eax
push dword [ebp - 0xac]
call fcn.004078e0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xb0]
cmp eax, 0x10
jb 0x459380
inc eax
lea ecx, [ebp - 0xc4]
push eax
push dword [ebp - 0xc4]
call fcn.004078e0
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0xb0], 0xf
mov dword [ebp - 0xb4], 0
mov byte [ebp - 0xc4], 0
cmp ecx, 8
jb 0x4593b9
inc ecx
push ecx
push dword [ebp - 0xdc]
lea ecx, [ebp - 0xdc]
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