Function at 0x42aff0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1f4
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x14], eax
push edi
mov eax, dword [esi + 0xc8]
mov dword [esp + 0x20], 0x1c
test eax, eax
je 0x42b03c
xor edi, edi
mov di, word [esi + 0xb6]
shl edi, 4
push edi
push 0x40
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
mov dword [esp + 0x28], ebx
jmp 0x42b044
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov eax, dword [esi + 0x12c]
mov dword [esp + 0x1c], 0
test eax, eax
jle 0x42b47b
mov eax, dword [esi + 0xc8]
test eax, eax
je 0x42b092
lea ecx, [esp + 0x3c]
push 0
push ecx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42b08c
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [esi + 0xc8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xd0], ebx
mov ecx, dword [esi + 0xd0]
xor eax, eax
mov al, byte [ecx]
inc ecx
cmp eax, 0x80
mov dword [esi + 0xd0], ecx
jne 0x42b11c
mov eax, dword [esi + 0xc8]
test eax, eax
je 0x42b0e8
push 1
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42b0dc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esi + 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub edi, dword [esp + 0x24]
mov dword [esi + 0xd4], edi
jmp 0x42b0ef
dec ecx
mov dword [esi + 0xd4], ecx
lea eax, [esi + 0x100]
mov ecx, 2
mov edx, dword [eax - 0x20]
mov dword [eax], edx
mov edx, dword [eax - 0x1c]
mov dword [eax + 4], edx
mov edx, dword [eax - 0x10]
mov dword [eax + 0x10], edx
mov edx, dword [eax - 0xc]
mov dword [eax + 0x14], edx
add eax, 8
dec ecx
jne 0x42b0fa
jmp 0x42b1d0
cmp eax, 0xff
je 0x42b13b
cmp eax, 0x81
je 0x42b13b
test eax, eax
je 0x42b1d0
mov dword [esp + 0x20], eax
jmp 0x42b1d0
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x42b43e
mov eax, dword [esi + 0x138]
mov ecx, 2
inc eax
mov dword [esi + 0x138], eax
lea eax, [esi + 0x100]
mov edx, dword [eax]
mov dword [eax - 0x20], edx
mov edx, dword [eax + 4]
mov dword [eax - 0x1c], edx
mov edx, dword [eax]
mov dword [eax - 0x10], edx
mov edx, dword [eax + 4]
mov dword [eax - 0xc], edx
add eax, 8
dec ecx
jne 0x42b161
mov eax, dword [esi + 0xc8]
mov dword [esp + 0x20], 0x1c
test eax, eax
je 0x42b1c3
mov ecx, dword [esi + 0xd4]
push 0
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x42b1ba
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [esi + 0xc8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
dec dword [esp + 0x1c]
jmp 0x42b425
mov eax, dword [esi + 0xd4]
inc eax
mov dword [esi + 0xd0], eax
mov eax, dword [esi + 0xd0]
xor edx, edx
mov dl, byte [eax]
inc eax
mov ecx, edx
mov dword [esi + 0xd0], eax
and ecx, 0xf
sar edx, 4
cmp word [esi + 0xb6], 2
mov dword [esp + 0x2c], edx
jne 0x42b215
xor edx, edx
mov dl, byte [eax + 1]
mov edi, edx
and edi, 0xf
sar edx, 4
add eax, 2
mov dword [esp + 0x38], edi
mov dword [esp + 0x30], edx
mov dword [esi + 0xd0], eax
lea ebx, [esp + 0x48]
mov dword [esp + 0x14], 0xe
mov eax, dword [esi + 0xd0]
xor edx, edx
mov dl, byte [eax]
lea edi, [eax + 1]
mov eax, edx
mov dword [esi + 0xd0], edi
and eax, 0xf
shl eax, 0xc
test ah, 0x80
je 0x42b246
or eax, 0xffff0000
sar eax, cl
and edx, 0xf0
shl edx, 8
test dh, 0x80
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp qword [ebx - 8]
je 0x42b267
or edx, 0xffff0000
sar edx, cl
mov eax, dword [esp + 0x14]
add ebx, 0x10
dec eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fstp qword [ebx - 0x10]
jne 0x42b221
mov ax, word [esi + 0xb6]
cmp ax, 2
jne 0x42b2ff
lea ebx, [esp + 0x128]
mov dword [esp + 0x14], 0xe
xor edx, edx
mov dl, byte [edi]
inc edi
mov eax, edx
mov dword [esi + 0xd0], edi
and eax, 0xf
shl eax, 0xc
test ah, 0x80
je 0x42b2bb
or eax, 0xffff0000
mov ecx, dword [esp + 0x38]
and edx, 0xf0
sar eax, cl
shl edx, 8
test dh, 0x80
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp qword [ebx - 8]
je 0x42b2e0
or edx, 0xffff0000
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x14]
sar edx, cl
add ebx, 0x10
dec eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fstp qword [ebx - 0x10]
jne 0x42b29e
mov ecx, dword [esp + 0x20]
test ecx, ecx
jle 0x42b41d
mov eax, dword [esp + 0x2c]
lea edi, [esp + 0x120]
shl eax, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
jmp 0x42b327
mov eax, dword [esp + 0x10]
fld qword [eax + 0x43c7f8]
fmul qword [esi + 0xf0]
fld qword [esi + 0xe0]
fmul qword [eax + 0x43c7f0]
mov ecx, dword [esi + 0xe0]
mov edx, dword [esi + 0xe4]
mov dword [esi + 0xf0], ecx
mov dword [esi + 0xf4], edx
faddp st(1)
fadd qword [edi - 0xe0]
fstp qword [edi - 0xe0]
fld qword [edi - 0xe0]
mov eax, dword [edi - 0xe0]
mov ecx, dword [edi - 0xdc]
fadd qword [0x42eac8]
mov dword [esi + 0xe0], eax
mov dword [esi + 0xe4], ecx
call fcn.00421e7c
mov ebx, dword [esp + 0x18]
mov word [ebx], ax
add ebx, 2
cmp word [esi + 0xb6], 2
mov dword [esp + 0x18], ebx
jne 0x42b40b
mov eax, dword [esp + 0x30]
mov edx, dword [esi + 0xe8]
shl eax, 4
fld qword [eax + 0x43c7f8]
fmul qword [esi + 0xf8]
fld qword [eax + 0x43c7f0]
fmul qword [esi + 0xe8]
mov eax, dword [esi + 0xec]
mov dword [esi + 0xf8], edx
mov dword [esi + 0xfc], eax
faddp st(1)
fadd qword [edi]
fstp qword [edi]
fld qword [edi]
mov ecx, dword [edi]
mov edx, dword [edi + 4]
fadd qword [0x42eac8]
mov dword [esi + 0xe8], ecx
mov dword [esi + 0xec], edx
call fcn.00421e7c
mov word [ebx], ax
add ebx, 2
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x14]
add edi, 8
dec eax
mov dword [esp + 0x14], eax
jne 0x42b323
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x12c]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x42b05a
jmp 0x42b47b
mov ecx, dword [esp + 0x20]
cmp ecx, 0x1c
je 0x42b47b
xor eax, eax
mov edx, 0x1c
mov ax, word [esi + 0xb6]
sub edx, ecx
imul eax, edx
mov edi, dword [esp + 0x18]
lea edx, [eax + eax]
xor eax, eax
mov ecx, edx
mov ebx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
mov ebx, dword [esp + 0x28]
and ecx, 3
rep stosb byte es:[edi], al
add dword [esp + 0x18], edx
mov eax, dword [esi + 0x12c]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
jge 0x42b4c1
sub eax, ecx
xor ecx, ecx
mov cx, word [esi + 0xb6]
mov edi, dword [esp + 0x18]
imul eax, ecx
lea ecx, [eax*8]
sub ecx, eax
xor eax, eax
shl ecx, 3
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [esi + 0xac], 1
mov eax, dword [esi + 0xc8]
test eax, eax
je 0x42b4d2
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret