Function at 0x10025fe0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x198
mov eax, dword [0x100dc008]
xor eax, esp
mov dword [esp + 0x194], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x190], esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x10], ecx
test esi, esi
je 0x10026335
cmp edi, 0xffffffff
je 0x10026335
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test ecx, ecx
je 0x1002606d
push 2
push 0
push 0xffffffffffffffff
push 0xffffffffffffffea
xorps xmm0, xmm0
push edi
movups xmmword [ecx], xmm0
call eax
test eax, eax
je 0x10026068
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0x10
push dword [esp + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10026271
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
push 0
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push edi
call eax
test eax, eax
je 0x10026271
push 0
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 0x10
push esi
xorps xmm0, xmm0
push edi
movups xmmword [esi], xmm0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10026271
mov eax, 0x5a4d
cmp word [esi], ax
je 0x100260de
mov eax, dword [esp + 0x1c]
mov dword [eax], 0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret
push 0x40
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.1008b230
push 0xf8
lea eax, [esp + 0xa8]
push 0
push eax
call fcn.1008b230
add esp, 0x18
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x30], xmm0
push 0
push 0
push dword [esp + 0x1c]
movq qword [esp + 0x4c], xmm0
push dword [esp + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x10026271
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 8]
push 0
push eax
push 0x40
lea eax, [esp + 0x64]
push eax
push edi
call esi
test eax, eax
je 0x10026271
mov eax, dword [esp + 0x94]
push 0
push 0
cdq
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x10026271
push 0
lea eax, [esp + 0xc]
push eax
push 0xf8
lea eax, [esp + 0xa4]
push eax
push edi
call esi
test eax, eax
je 0x10026271
movzx eax, word [esp + 0x9e]
cdq
mov ecx, eax
mov esi, edx
shld esi, ecx, 2
push 1
shl ecx, 2
add eax, ecx
push 0
adc edx, esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
shld edx, eax, 3
push 0
shl eax, 3
sub eax, 0x28
push eax
push edi
call esi
test eax, eax
je 0x10026271
push 0
lea eax, [esp + 0xc]
push eax
push 0x28
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10026271
mov eax, dword [esp + 0x30]
add eax, dword [esp + 0x34]
push 0
push 0
push 0
push eax
push edi
mov dword [esp + 0x20], eax
call esi
test eax, eax
je 0x10026271
mov esi, dword [esp + 0x194]
lea eax, [esp + 8]
push 0
push eax
push 0x10
push esi
xorps xmm0, xmm0
push edi
movups xmmword [esi], xmm0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10026271
cmp dword [esi], 0
jne 0x1002628a
cmp dword [esi + 4], 0xdeadbeef
jne 0x1002628a
mov eax, dword [esp + 0xc]
mov ecx, 0
push 0
add eax, 4
push 0
adc ecx, ecx
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x10026271
push 0
lea eax, [esp + 0xc]
xorps xmm0, xmm0
push eax
push 0x10
push esi
push edi
movups xmmword [esi], xmm0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10026315
call fcn.10015440
pop edi
pop esi
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 0x195], eax
mov word [esp + 0x199], ax
mov byte [esp + 0x19b], al
mov dword [esp + 8], eax
mov eax, dword [esi]
add eax, 4
mov byte [esp + 0x194], 0
add ecx, eax
mov eax, 0
push 0
push 0
adc eax, eax
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x10026315
push 0
lea eax, [esp + 0xc]
push eax
push 8
lea eax, [esp + 0x1a0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10026315
cmp dword [esp + 8], 0
je 0x10026315
lea ecx, [esp + 0x194]
cmp word [ecx], 0x4f4d
jne 0x10026315
cmp byte [ecx + 2], 0x55
jne 0x10026315
movq xmm0, qword [esp + 0x194]
movq qword [esi], xmm0
mov eax, dword [esp + 0x1c]
mov dword [eax], 1
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x19c]
mov eax, 0x80070057
pop edi
pop esi
xor ecx, esp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret