Function at 0x4bb7dc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x4bbb07
push dword fs:[eax]
mov dword fs:[eax], esp
and byte [ebp - 1], 0x7f
mov byte [ebp - 0x11], 0
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], 0x80000000
cmp byte [ebp + 0x10], 0
jne 0x4bb82d
cmp dword [ebp + 8], 0x200
je 0x4bb834
or dword [ebp - 0x38], 0x40000000
cmp byte [ebp + 0xc], 0
je 0x4bb847
xor eax, eax
mov al, byte [ebp - 1]
call fcn.00524050
mov byte [ebp - 1], al
mov eax, dword [ebp + 0x1c]
cmp dword [eax], 0xffffffff
jne 0x4bb923
mov byte [0x613f48], 0
cmp byte [ebp + 0x14], 0
je 0x4bb8a1
push 0
push 0x2a000000
push 3
push 0
push 0
mov eax, dword [ebp - 0x38]
push eax
lea edx, [ebp - 0x4c]
xor eax, eax
mov al, byte [ebp - 1]
call fcn.0040a2d8
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x48]
mov edx, 0x4bbb24
call fcn.00405414
mov eax, dword [ebp - 0x48]
call fcn.004055c8
push eax
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x24], eax
jmp 0x4bb8e0
push 0
push 0x30000000
push 3
push 0
push 3
mov eax, dword [ebp - 0x38]
push eax
lea edx, [ebp - 0x54]
xor eax, eax
mov al, byte [ebp - 1]
call fcn.0040a2d8
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x50]
mov edx, 0x4bbb24
call fcn.00405414
mov eax, dword [ebp - 0x50]
call fcn.004055c8
push eax
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x4bb90b
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x20
jne 0x4bb900
inc dword [ebp - 0x30]
push 0x64
call sub.KERNEL32.DLL_Sleep_1
jmp 0x4bb915
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
jmp 0x4bbaec
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x24]
mov dword [eax], edx
jmp 0x4bb92b
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 0x18]
jl 0x4bb85a
jmp 0x4bb92b
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x4bbae5
cmp dword [ebp + 8], 0x201
jl 0x4bb96d
cmp dword [ebp + 8], 0x210
jg 0x4bb96d
push dword [ebp + 0x24]
push dword [ebp + 0x20]
mov eax, dword [ebp - 8]
cdq
push edx
push eax
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x28]
mov eax, dword [ebp - 0x24]
call fcn.004bbb38
mov dword [ebp - 0x10], eax
jmp 0x4bbaec
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x24]
shld edx, eax, 9
shl eax, 9
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x24]
shrd eax, edx, 0x17
shr edx, 0x17
mov dword [ebp - 0x2c], eax
push 0
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.KERNEL32.DLL_SetFilePointer
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x4bbadc
mov eax, dword [ebp - 8]
shl eax, 9
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.KERNEL32.DLL_ReadFile
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
je 0x4bb9eb
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x4bbaec
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x57
jne 0x4bbaec
xor eax, eax
push ebp
push 0x4bba2a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0x28]
inc eax
add eax, 0x20
call fcn.00402828
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4bba54
xor eax, eax
push ebp
push 0x4bbac8
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x4bba6b
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
and eax, 0x1f
test eax, eax
jne 0x4bba64
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.KERNEL32.DLL_ReadFile
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
je 0x4bbab1
xor eax, eax
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x28]
inc ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x40]
call fcn.00402a8c
jmp 0x4bbabe
call sub.KERNEL32.DLL_GetLastError
add eax, 0x186a0
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4bbad2
mov eax, dword [ebp - 0x3c]
call fcn.00402848
jmp 0x4bbaec
mov dword [ebp - 0x10], 0xfffffffe
jmp 0x4bbaec
mov dword [ebp - 0x10], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bbb0e
lea eax, [ebp - 0x54]
mov edx, 4
call fcn.0040512c
ret