Function at 0x48560d
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x4c7831
call fcn.0049911c
sub esp, 0x34
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp esi, 0xffffffff
je 0x485802
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x4857ba
cmp eax, 4
jne 0x4857d9
lea eax, [ebp - 0x24]
mov eax, dword [eax]
cmp eax, dword [0x4fa3dc]
jne 0x4857d9
push ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push 0x10
lea eax, [ebp - 0x40]
push eax
push esi
call edi
cmp dword [ebp - 0x18], 0x10
jne 0x4857d9
push ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push 4
lea eax, [ebp - 0x28]
push eax
push esi
call edi
cmp dword [ebp - 0x18], 4
jne 0x4857d9
push ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push 2
lea eax, [ebp - 0x10]
push eax
push esi
call edi
cmp dword [ebp - 0x18], 2
jne 0x4857d9
mov ax, word [ebp - 0x10]
mov dword [ebp - 0x1c], ebx
test ax, ax
je 0x4856f7
movzx eax, ax
inc eax
push 1
push eax
call fcn.004a1b54
mov dword [ebp - 0x1c], eax
pop ecx
pop ecx
test eax, eax
je 0x4856f7
push ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push ecx
movzx ecx, word [ebp - 0x10]
push ecx
push eax
push esi
call edi
movzx eax, word [ebp - 0x10]
cmp dword [ebp - 0x18], eax
jne 0x4857e4
push ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push 2
lea eax, [ebp - 0x14]
push eax
push esi
call edi
cmp dword [ebp - 0x18], 2
jne 0x4857d9
mov ax, word [ebp - 0x14]
mov dword [ebp - 0x20], ebx
test ax, ax
je 0x485753
movzx eax, ax
inc eax
push 1
push eax
call fcn.004a1b54
cmp dword [ebp - 0x1c], 0
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
je 0x485753
push ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push ecx
movzx ecx, word [ebp - 0x14]
push ecx
push eax
push esi
call edi
movzx eax, word [ebp - 0x14]
cmp dword [ebp - 0x18], eax
jne 0x4857ee
push 0x22c
call fcn.0049909d
pop ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], ebx
test eax, eax
je 0x485795
push dword [ebp + 0xc]
lea esi, [ebp - 0x40]
mov ecx, eax
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
sub esp, 0x10
mov edi, esp
push dword [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0044196c
mov esi, dword [ebp - 0x2c]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x20], eax
jmp 0x48579a
mov eax, ebx
mov dword [ebp - 0x20], ebx
or dword [ebp - 4], 0xffffffff
mov ecx, 0x531ba0
push eax
call fcn.00406a4d
push dword [ebp - 0x20]
mov ecx, dword [0x531bbc]
push ebx
push 0xa
call fcn.00406ad0
push ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push 4
lea eax, [ebp - 0x24]
push eax
push esi
call edi
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x48564d
xor ebx, ebx
inc ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x485804
push dword [ebp - 0x1c]
call fcn.004a1b5f
jmp 0x4857ff
push dword [ebp - 0x1c]
call fcn.004a1b5f
push dword [ebp - 0x20]
call fcn.004a1b5f
pop ecx
pop ecx
jmp 0x4857d9
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret