Function at 0x4ba734
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4ba73c
push ecx
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x4bab11
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x4bab28
call fcn.00404c30
mov esi, 1
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
lea edx, [ebp - 0xc]
mov eax, esi
dec eax
call fcn.00409200
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404ea4
mov eax, dword [ebp - 8]
call fcn.00405058
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebx + esi*4 + 0x3e0], eax
inc esi
cmp esi, 9
jne 0x4ba768
xor eax, eax
mov dword [ebx + 0x404], eax
mov esi, 1
cmp dword [ebx + esi*4 + 0x3e0], 0xffffffff
jne 0x4ba7cd
xor eax, eax
mov dword [ebx + esi*4 + 0x3e0], eax
jmp 0x4ba7d3
inc dword [ebx + 0x404]
inc esi
cmp esi, 9
jne 0x4ba7b8
mov eax, dword [ebx + 0x3e4]
mov dword [ebx + 0x3e0], eax
cmp eax, 0xffffffff
jne 0x4ba88f
xor esi, esi
mov edx, 0x4bab40
mov eax, dword [ebx + 0x3bc]
call fcn.00462360
mov eax, dword [ebx + 0x3bc]
mov eax, dword [eax + 0x68]
mov edx, 0xff
call fcn.004249e8
lea edx, [ebp - 0x14]
mov eax, dword [ebx + 0x3bc]
call fcn.00462330
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, 0x4bab68
call fcn.00404ea4
mov edx, dword [ebp - 0x10]
mov eax, dword [0x4d3e90]
mov eax, dword [eax]
mov eax, dword [eax + 0x444]
call fcn.00462360
mov eax, dword [ebx + 0x3bc]
mov eax, dword [eax + 0x68]
mov edx, dword [eax + 0x18]
mov eax, dword [0x4d3e90]
mov eax, dword [eax]
mov eax, dword [eax + 0x444]
mov eax, dword [eax + 0x68]
call fcn.004249e8
lea edx, [ebp - 0x18]
mov eax, dword [ebx + 0x3bc]
call fcn.00462330
mov edx, dword [ebp - 0x18]
mov eax, dword [0x4d3e90]
mov eax, dword [eax]
mov eax, dword [eax + 0x43c]
call fcn.0049d780
jmp 0x4baac7
push 0
lea eax, [ebx + 0x3978]
push eax
push 4
lea eax, [ebx + 0x560]
push eax
mov eax, dword [ebx + 0x3e0]
push eax
call sub.kernel32.dll_ReadFile_1
xor eax, eax
mov al, byte [ebx + 0x560]
test eax, eax
jns 0x4ba8bc
add eax, 7
sar eax, 3
cmp eax, 0x1f
jne 0x4ba969
xor esi, esi
mov edx, 0x4bab78
mov eax, dword [ebx + 0x3bc]
call fcn.00462360
mov eax, dword [ebx + 0x3bc]
mov eax, dword [eax + 0x68]
mov edx, 0xff
call fcn.004249e8
lea edx, [ebp - 0x20]
mov eax, dword [ebx + 0x3bc]
call fcn.00462330
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x4bab68
call fcn.00404ea4
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x4d3e90]
mov eax, dword [eax]
mov eax, dword [eax + 0x444]
call fcn.00462360
mov eax, dword [ebx + 0x3bc]
mov eax, dword [eax + 0x68]
mov edx, dword [eax + 0x18]
mov eax, dword [0x4d3e90]
mov eax, dword [eax]
mov eax, dword [eax + 0x444]
mov eax, dword [eax + 0x68]
call fcn.004249e8
lea edx, [ebp - 0x24]
mov eax, dword [ebx + 0x3bc]
call fcn.00462330
mov edx, dword [ebp - 0x24]
mov eax, dword [0x4d3e90]
mov eax, dword [eax]
mov eax, dword [eax + 0x43c]
call fcn.0049d780
jmp 0x4baac7
mov dword [ebx + 0x39ac], eax
mov eax, dword [ebx + 0x39ac]
cmp eax, 0x16
je 0x4ba984
cmp eax, 8
je 0x4ba984
cmp eax, 0xa
jne 0x4ba99e
xor edx, edx
mov eax, dword [ebx + 0x34c]
call fcn.00462250
xor edx, edx
mov eax, dword [ebx + 0x334]
call fcn.00462250
lea edx, [ebp - 0x2c]
mov eax, dword [ebx + 0x39ac]
call fcn.00409200
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
mov edx, 0x4baba4
call fcn.00404ea4
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [0x4d5d70]
mov eax, dword [eax + 0x318]
mov eax, dword [eax + 0x208]
mov edx, 1
call fcn.004445e8
pop edx
call fcn.00444544
cmp dword [ebx + 0x39ac], 0xf
jne 0x4ba9fa
mov edx, 0x4babbc
mov eax, dword [ebx + 0x3b8]
call fcn.00462360
cmp dword [ebx + 0x39ac], 0x10
jne 0x4baa13
mov edx, 0x4babd4
mov eax, dword [ebx + 0x3b8]
call fcn.00462360
cmp dword [ebx + 0x39ac], 0x11
jne 0x4baa2c
mov edx, 0x4babec
mov eax, dword [ebx + 0x3b8]
call fcn.00462360
cmp dword [ebx + 0x39ac], 0x19
jne 0x4baa45
mov edx, 0x4bac04
mov eax, dword [ebx + 0x3b8]
call fcn.00462360
cmp dword [ebx + 0x39ac], 0x1a
jne 0x4baa5e
mov edx, 0x4bac20
mov eax, dword [ebx + 0x3b8]
call fcn.00462360
cmp dword [ebx + 0x39ac], 0x1b
jne 0x4baa77
mov edx, 0x4bac3c
mov eax, dword [ebx + 0x3b8]
call fcn.00462360
mov esi, dword [ebx + 0x39ac]
cmp esi, 0x16
je 0x4baa8c
cmp esi, 8
je 0x4baa8c
cmp esi, 0xa
jne 0x4baac4
lea edx, [ebp - 0x34]
mov eax, esi
call fcn.00409200
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
mov edx, 0x4bac58
call fcn.00404ea4
mov edx, dword [ebp - 0x30]
mov eax, dword [ebx + 0x3b8]
call fcn.00462360
mov edx, 0x4bac6c
mov eax, dword [ebx + 0x3b4]
call fcn.00462360
or esi, 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bab18
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.00404bbc
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00404bbc
lea eax, [ebp - 0x1c]
call fcn.00404b98
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404bbc
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404bbc
ret