Function at 0x45b5a8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
mov eax, dword [0x6e7380]
test eax, eax
je 0x45b5df
push dword [0x6e7384]
push dword [ebp + 0x14]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x238]
mov eax, dword [ebp + 0x10]
add ecx, eax
push ecx
push dword [ebp + 0xc]
call fcn.00476024
add esp, 0x10
jmp 0x45b7f6
mov edx, dword [0x757cb0]
cmp edx, 0x930
jle 0x45b5fe
mov ecx, dword [0x757cb0]
add ecx, 0xfffff680
mov dword [ebp - 0x34], ecx
jmp 0x45b60b
mov eax, dword [0x757cb0]
add eax, 0xfffff6e0
mov dword [ebp - 0x34], eax
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
cmp ecx, 3
jne 0x45b644
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
mov eax, dword [ebp + 8]
add eax, 0x124
push eax
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
cmp edx, 0xffffffff
jne 0x45b64d
xor eax, eax
jmp 0x45b7f6
mov edx, dword [0x757ca8]
mov dword [ebp - 0x30], edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xc]
imul dword [ebp + 0x10]
cdq
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 0x228]
adc edx, dword [ecx + 0x22c]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push dword [ebp - 0x30]
call sub.KERNEL32.DLL_SetFilePointer
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
cmp edx, 0xffffffff
jne 0x45b6aa
call sub.KERNEL32.DLL_GetLastError
test eax, eax
je 0x45b6aa
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
cmp eax, 3
jne 0x45b6a3
push dword [ebp - 0x30]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x45b7f6
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0xc]
imul ecx, dword [ebp + 0x14]
mov dword [ebp - 0x20], ecx
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
push 0x85ac24
push dword [ebp - 0x30]
call sub.KERNEL32.DLL_ReadFile
mov dword [ebp - 0x28], 0x85ac24
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x24], edx
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x14]
cmp eax, edx
jge 0x45b7df
mov ecx, dword [ebp - 0x34]
cmp ecx, 0x10
jne 0x45b70d
push 0x930
push dword [ebp - 0x28]
push dword [ebp - 0x24]
call fcn.0066c7fc
add esp, 0xc
jmp 0x45b7be
mov eax, dword [ebp - 0x34]
cmp eax, 4
jne 0x45b740
push 0xc
push 0x757c9c
push dword [ebp - 0x24]
call fcn.0066c7fc
add esp, 0xc
push 0x924
push dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
add edx, 0xc
push edx
call fcn.0066c7fc
add esp, 0xc
jmp 0x45b7be
push 0xc
push 0x757c9c
push dword [ebp - 0x24]
call fcn.0066c7fc
add esp, 0xc
lea ecx, [ebp - 0x2b]
push ecx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x1c]
add eax, edx
push eax
call fcn.004ac0e4
add esp, 8
movsx ecx, byte [ebp - 0x2b]
push ecx
call fcn.004ac070
pop ecx
mov edx, dword [ebp - 0x24]
mov byte [edx + 0xc], al
movsx eax, byte [ebp - 0x2a]
push eax
call fcn.004ac070
pop ecx
mov ecx, dword [ebp - 0x24]
mov byte [ecx + 0xd], al
movsx eax, byte [ebp - 0x29]
push eax
call fcn.004ac070
pop ecx
mov edx, dword [ebp - 0x24]
mov byte [edx + 0xe], al
mov ecx, dword [ebp - 0x24]
mov byte [ecx + 0xf], 2
push 0x920
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x34]
add eax, edx
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x10
push ecx
call fcn.0066c7fc
add esp, 0xc
add dword [ebp - 0x24], 0x930
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0xc]
add dword [ebp - 0x28], edx
inc dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x14]
cmp ecx, eax
jl 0x45b6ed
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
cmp ecx, 3
jne 0x45b7f1
push dword [ebp - 0x30]
call sub.KERNEL32.DLL_CloseHandle
mov eax, 1
mov esp, ebp
pop ebp
ret