Function at 0x42a8c0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x180
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x17c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x18c]
xor eax, eax
push esi
push edi
xor edi, edi
push 0x12a
lea ecx, [esp + 0x4e]
push edi
push ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov word [esp + 0x54], ax
call fcn.004416b0
add esp, 0xc
push edi
push 0x80
push 3
push edi
xor eax, eax
push 1
push bind
lea ebx, [ebp + 0x12fc]
push ebx
mov dword [esp + 0x190], eax
mov dword [esp + 0x194], eax
mov dword [esp + 0x198], eax
mov dword [esp + 0x19c], eax
mov word [esp + 0x1a0], ax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x42aa17
push edi
lea edx, [esp + 0x18]
push edx
push 0x2c
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42a9f7
cmp dword [esp + 0x14], 0x2c
jne 0x42a9f7
mov cl, byte [esp + 0x34]
mov edx, dword [esp + 0x35]
mov eax, dword [esp + 0x39]
mov byte [esp + 0x174], cl
mov ecx, dword [esp + 0x3d]
mov dword [esp + 0x175], edx
mov edx, dword [esp + 0x41]
mov dword [esp + 0x179], eax
lea edi, [ebp + 0x51718]
lea eax, [esp + 0x48]
mov dword [esp + 0x17d], ecx
mov dword [esp + 0x181], edx
call fcn.0042d4e0
push 0
lea eax, [esp + 0x18]
push eax
push 0x2c
lea ecx, [esp + 0x28]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42a991
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.ReadFile__ws_fail__d_n
call fcn.00404c20
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0xc
push esi
call edi
jmp 0x42aa1d
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x80
push 3
push 0
push 1
push bind
lea esi, [ebp + 0x1518]
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42aa5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Createfile__ws_fail__d_n
call fcn.00404c20
add esp, 0xc
xor eax, eax
jmp 0x42ab0e
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov eax, 0x9c2d14ef
mul ecx
mov esi, ecx
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 8
mov edx, esi
imul edx, edx, 0x13e
sub ecx, edx
je 0x42aa8f
push ebx
call edi
xor eax, eax
jmp 0x42ab0e
mov dword [esp + 0x18], 0
test esi, esi
jle 0x42ab06
push 0
lea eax, [esp + 0x18]
push eax
push 0x13e
lea ecx, [esp + 0x54]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42aa88
cmp dword [esp + 0x14], 0x13e
jne 0x42aa88
cmp byte [esp + 0x174], 5
jne 0x42aaf9
lea edi, [ebp + 0x51718]
lea eax, [esp + 0x48]
mov dword [ebp + 0x51748], 1
call fcn.0042d4e0
lea edi, [ebp + 0x51700]
lea eax, [esp + 0x48]
call fcn.0042d4e0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
inc eax
cmp eax, esi
mov dword [esp + 0x18], eax
jl 0x42aa9b
push ebx
call edi
mov eax, 1
mov ecx, dword [esp + 0x18c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043e4c7
add esp, 0x180
ret 4