Function at 0x45b890
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
mov eax, dword [0x6ebc48]
test eax, eax
je 0x45b8c7
push dword [0x6ebc4c]
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.0047630c
add esp, 0x10
jmp 0x45bade
mov edx, dword [0x760dbc]
cmp edx, 0x930
jle 0x45b8e6
mov ecx, dword [0x760dbc]
add ecx, 0xfffff680
mov dword [ebp - 0x34], ecx
jmp 0x45b8f3
mov eax, dword [0x760dbc]
add eax, 0xfffff6e0
mov dword [ebp - 0x34], eax
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
cmp ecx, 3
jne 0x45b92c
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 0x45b935
xor eax, eax
jmp 0x45bade
mov edx, dword [0x760db4]
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 0x45b992
call sub.KERNEL32.DLL_GetLastError
test eax, eax
je 0x45b992
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
cmp eax, 3
jne 0x45b98b
push dword [ebp - 0x30]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x45bade
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 0x8685f8
push dword [ebp - 0x30]
call sub.KERNEL32.DLL_ReadFile
mov dword [ebp - 0x28], 0x8685f8
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 0x45bac7
mov ecx, dword [ebp - 0x34]
cmp ecx, 0x10
jne 0x45b9f5
push 0x930
push dword [ebp - 0x28]
push dword [ebp - 0x24]
call fcn.0066cc18
add esp, 0xc
jmp 0x45baa6
mov eax, dword [ebp - 0x34]
cmp eax, 4
jne 0x45ba28
push 0xc
push 0x760da8
push dword [ebp - 0x24]
call fcn.0066cc18
add esp, 0xc
push 0x924
push dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
add edx, 0xc
push edx
call fcn.0066cc18
add esp, 0xc
jmp 0x45baa6
push 0xc
push 0x760da8
push dword [ebp - 0x24]
call fcn.0066cc18
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.004ac3cc
add esp, 8
movsx ecx, byte [ebp - 0x2b]
push ecx
call fcn.004ac358
pop ecx
mov edx, dword [ebp - 0x24]
mov byte [edx + 0xc], al
movsx eax, byte [ebp - 0x2a]
push eax
call fcn.004ac358
pop ecx
mov ecx, dword [ebp - 0x24]
mov byte [ecx + 0xd], al
movsx eax, byte [ebp - 0x29]
push eax
call fcn.004ac358
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.0066cc18
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 0x45b9d5
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
cmp ecx, 3
jne 0x45bad9
push dword [ebp - 0x30]
call sub.KERNEL32.DLL_CloseHandle
mov eax, 1
mov esp, ebp
pop ebp
ret