Function at 0x10008dc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1001e00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [0x1011e1dc]
xor bl, bl
push edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x40], ecx
cmp esi, dword [0x1011e1e0]
je 0x10008fb4
mov ecx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edi, [esi + 8]
mov dword [ebp - 0x2c], edi
nop
cmp byte [esi], 0
jne 0x10008f82
cmp byte [0x10128090], 0
jne 0x10008f05
test bl, bl
jne 0x10008e3a
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push eax
call fcn.10008fd0
test al, al
je 0x10008fb4
mov bl, 1
mov edx, dword [ebp - 0x3c]
mov edi, dword [edi - 4]
mov eax, edi
mov ecx, dword [edx + 0x34]
sub eax, ecx
push eax
push ecx
push edx
call dword [sym.imp.dbghelp.dll_ImageRvaToSection]
test eax, eax
je 0x10008f76
mov ecx, dword [eax + 0x14]
sub ecx, dword [eax + 0xc]
mov eax, dword [ebp - 0x3c]
push 0
push 0
sub ecx, dword [eax + 0x34]
add ecx, edi
mov edi, dword [ebp - 0x30]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10008f76
push 0
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0
push eax
push 0x20
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10008f76
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x24]
mov edi, 0x1c
nop dword [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10008f76
add ecx, 4
add edx, 4
sub edi, 4
jae 0x10008eb0
movups xmm0, xmmword [esi + 0x28]
mov eax, dword [ebp - 0x40]
push dword [ebp - 0x34]
movups xmmword [eax], xmm0
movups xmm0, xmmword [esi + 0x38]
movups xmmword [eax + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x30]
call esi
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10013364
mov esp, ebp
pop ebp
ret 8
test bl, bl
jne 0x10008f30
push str.GetProcInfo
push dword [0x10128094]
call ecx
push dword [ebp - 0x28]
call eax
call eax
add esp, 4
test al, al
je 0x10008fb4
mov ecx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov bl, 1
push str.FindEntryPointInfo
push dword [0x10128094]
call ecx
lea ecx, [ebp - 0x24]
push ecx
push dword [edi - 4]
push dword [ebp - 0x28]
call eax
call eax
add esp, 0xc
test al, al
je 0x10008f79
mov ecx, edi
lea edx, [ebp - 0x24]
mov edi, 0x1c
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10008f76
add ecx, 4
add edx, 4
sub edi, 4
jae 0x10008f60
jmp 0x10008ec5
mov edi, dword [ebp - 0x2c]
mov ecx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [ebp - 0x28]
add esi, 0x48
add edi, 0x48
mov dword [ebp - 0x2c], edi
cmp esi, dword [0x1011e1e0]
jne 0x10008e00
test bl, bl
je 0x10008fb4
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x30]
call esi
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10013364
mov esp, ebp
pop ebp
ret 8