Function at 0x42b7a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x170
mov eax, dword [esp + 0x174]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x4388ac
push eax
xor esi, esi
mov dword [esp + 0x40], ebx
call sub.MSVCRT.dll_fopen
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x42bc44
mov edi, 1
push ebp
push edi
lea ecx, [esp + 0x50]
push 2
push ecx
call sub.MSVCRT.dll_fread
mov edx, dword [0x4388b0]
lea eax, [esp + 0x58]
push edx
push edi
push eax
call fcn.0042ceb0
push ebp
push edi
lea ecx, [esp + 0xa4]
push 8
push ecx
call sub.MSVCRT.dll_fread
push ebp
push edi
lea edx, [esp + 0x88]
push 4
push edx
call sub.MSVCRT.dll_fread
mov eax, dword [0x4388b0]
lea ecx, [esp + 0x90]
push eax
push edi
push ecx
call fcn.0042ced0
mov al, byte [ebp + 0xc]
add esp, 0x48
test al, 0x20
jne 0x42bc3b
cmp word [esp + 0x48], 0x4d42
jne 0x42bc3b
push ebp
push edi
lea edx, [esp + 0x60]
push 0x28
push edx
call sub.MSVCRT.dll_fread
mov al, byte [ebp + 0xc]
add esp, 0x10
test al, 0x20
je 0x42b875
push ebp
call sub.MSVCRT.dll_fclose
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x170
ret
mov eax, dword [0x4388b0]
lea ecx, [esp + 0x58]
push eax
push edi
push ecx
call fcn.0042ced0
mov eax, dword [esp + 0x64]
add esp, 0xc
cmp eax, 0xc
jne 0x42b934
push edi
push 0xffffffffffffffe4
push ebp
mov dword [esp + 0x44], edi
call sub.MSVCRT.dll_fseek
mov edx, dword [0x4388b0]
lea eax, [esp + 0x68]
push edx
push edi
push eax
mov dword [esp + 0x28], 0x28
call fcn.0042ce90
mov ecx, dword [0x4388b0]
lea edx, [esp + 0x76]
push ecx
and eax, 0xffff
push edi
push edx
mov dword [esp + 0x38], eax
call fcn.0042ce90
and eax, 0xffff
lea ecx, [esp + 0x84]
mov dword [esp + 0x3c], eax
mov eax, dword [0x4388b0]
push eax
push edi
push ecx
call fcn.0042ce90
mov edx, dword [0x4388b0]
mov word [esp + 0x4c], ax
push edx
lea eax, [esp + 0x96]
push edi
push eax
call fcn.0042ce90
add esp, 0x3c
mov word [esp + 0x1e], ax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
jmp 0x42ba09
mov ecx, 0xa
lea esi, [esp + 0x58]
lea edi, [esp + 0x10]
lea edx, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x4388b0]
push ecx
push 1
push edx
call fcn.0042ced0
mov eax, dword [0x4388b0]
lea ecx, [esp + 0x24]
push eax
push 1
push ecx
call fcn.0042ced0
mov edx, dword [0x4388b0]
lea eax, [esp + 0x34]
push edx
push 1
push eax
call fcn.0042ceb0
mov ecx, dword [0x4388b0]
lea edx, [esp + 0x42]
push ecx
push 1
push edx
call fcn.0042ceb0
mov eax, dword [0x4388b0]
lea ecx, [esp + 0x50]
push eax
push 1
push ecx
call fcn.0042ced0
mov edx, dword [0x4388b0]
lea eax, [esp + 0x60]
push edx
push 1
push eax
call fcn.0042ced0
mov ecx, dword [0x4388b0]
add esp, 0x48
lea edx, [esp + 0x28]
push ecx
push 1
push edx
call fcn.0042ced0
mov eax, dword [0x4388b0]
lea ecx, [esp + 0x38]
push eax
push 1
push ecx
call fcn.0042ced0
mov edx, dword [0x4388b0]
lea eax, [esp + 0x48]
push edx
push 1
push eax
call fcn.0042ced0
mov ecx, dword [0x4388b0]
lea edx, [esp + 0x58]
push ecx
push 1
push edx
call fcn.0042ced0
add esp, 0x30
mov edi, 1
call fcn.0042b690
mov esi, eax
cmp esi, ebx
je 0x42bc3b
mov dword [esi + 0x2c], edi
mov dword [esi + 0x34], edi
mov eax, dword [esp + 0x14]
lea edi, [esi + 0x14]
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x18]
mov dword [esi + 0xc], ecx
mov edx, dword [esp + 0x1e]
and edx, 0xffff
mov dword [esi + 0x10], edx
fild dword [esp + 0x28]
fmul dword [0x43350c]
fadd dword [0x433508]
call sub.MSVCRT.dll__ftol
mov dword [edi], eax
fild dword [esp + 0x2c]
fmul dword [0x43350c]
fadd dword [0x433508]
call sub.MSVCRT.dll__ftol
mov edx, dword [edi]
lea ecx, [esi + 0x18]
cmp edx, ebx
mov dword [ecx], eax
je 0x42ba77
cmp eax, ebx
jne 0x42ba81
push ecx
push edi
call fcn.0042cf00
add esp, 8
lea eax, [esp + 0x10]
push eax
call fcn.0042bc60
add esp, 4
and eax, 0xffff
mov dword [esi + 0x1c], eax
je 0x42bb37
mov ecx, dword [esp + 0x30]
cmp ecx, ebx
jle 0x42baaa
cmp ecx, eax
mov ebx, ecx
jl 0x42baac
mov ebx, eax
mov di, word [esi + 0x1c]
shl di, 2
and edi, 0xffff
push edi
call fcn.0042ca50
mov edx, eax
add esp, 4
test edx, edx
mov dword [esi + 0x20], edx
je 0x42bb22
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x38]
test eax, eax
je 0x42bb09
mov edi, dword [esi + 0x20]
test ebx, ebx
jle 0x42bb35
push ebp
push 1
push 3
push edi
call sub.MSVCRT.dll_fread
mov byte [edi + 3], 0
add esp, 0x10
add edi, 4
dec ebx
jne 0x42baef
jmp 0x42bb35
mov ecx, dword [esi + 0x20]
push ebp
lea eax, [ebx*4]
push 1
push eax
push ecx
call sub.MSVCRT.dll_fread
add esp, 0x10
jmp 0x42bb35
lea edx, [ebx*4]
push 1
push edx
push ebp
call sub.MSVCRT.dll_fseek
add esp, 0xc
xor ebx, ebx
cmp word [esp + 0x1e], 0x10
mov dword [esp + 0x40], ebx
jne 0x42bb9c
push ebp
push 3
lea eax, [esp + 0x44]
push 4
push eax
call sub.MSVCRT.dll_fread
mov ecx, dword [0x4388b0]
lea edx, [esp + 0x4c]
push ecx
push 1
push edx
call fcn.0042ced0
mov eax, dword [0x4388b0]
lea ecx, [esp + 0x5c]
push eax
push 1
push ecx
call fcn.0042ced0
mov edx, dword [0x4388b0]
lea eax, [esp + 0x6c]
push edx
push 1
push eax
call fcn.0042ced0
mov ecx, dword [esp + 0x88]
push ebx
push ecx
push ebp
call sub.MSVCRT.dll_fseek
add esp, 0x40
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x20]
push edx
push eax
push esi
call fcn.0042bc90
mov dword [esi + 4], eax
mov eax, dword [esp + 0x2a]
and eax, 0xffff
imul eax, dword [esp + 0x20]
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
imul eax, dword [esp + 0x24]
shl eax, 2
push eax
mov dword [esi + 0x24], eax
call fcn.0042ca50
add esp, 0x10
cmp eax, ebx
mov dword [esi + 0x28], eax
je 0x42bc1b
mov ecx, dword [esp + 0x20]
cmp ecx, 2
jne 0x42bbf9
push ebp
push esi
call fcn.0042bdb0
add esp, 8
jmp 0x42bc26
cmp ecx, 1
push ebp
jne 0x42bc0a
push esi
call fcn.0042bfa0
add esp, 8
jmp 0x42bc26
mov ecx, dword [esi + 0x24]
push ecx
push 1
push eax
call sub.MSVCRT.dll_fread
add esp, 0x10
jmp 0x42bc26
push esi
call fcn.0042b6c0
add esp, 4
xor esi, esi
test byte [ebp + 0xc], 0x20
je 0x42bc3b
cmp esi, ebx
je 0x42bc3b
push esi
call fcn.0042b6c0
add esp, 4
xor esi, esi
push ebp
call sub.MSVCRT.dll_fclose
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x170
ret