Function at 0x10008030
Capabilities:
Parse pe header
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x10030040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [0x10130a84]
mov dword [ebp - 0x94], eax
xor al, al
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x84], edi
mov byte [ebp - 0x79], al
cmp esi, dword [0x10130a88]
je 0x100082ee
mov edx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ebx, [esi + 8]
mov dword [ebp - 0x80], ebx
mov ebx, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x80]
cmp byte [esi], 0
jne 0x100082b8
cmp byte [0x1013aa60], 0
jne 0x1000822c
test al, al
jne 0x10008154
push 0
push 0
push 3
push 0
push 1
push connect
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100082ee
lea eax, [ebp - 0x78]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x1000830d
push 0
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
mov dword [ebp - 0x8c], edi
test edi, edi
je 0x1000830d
push dword [ebp - 0x54]
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x88], eax
test eax, eax
je 0x1000830a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10008303
mov edx, dword [eax + 0x3c]
add edx, eax
mov dword [ebp - 0x90], edx
cmp dword [edx], 0x4550
jne 0x10008303
mov ecx, 0x14c
cmp word [edx + 4], cx
jne 0x10008303
mov ecx, dword [ebp - 0x80]
mov byte [ebp - 0x79], 1
jmp 0x1000815a
mov edx, dword [ebp - 0x90]
mov edi, dword [ecx - 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 0x100082a6
mov ecx, dword [eax + 0x14]
sub ecx, dword [eax + 0xc]
mov eax, dword [ebp - 0x90]
push 0
push 0
sub ecx, dword [eax + 0x34]
add ecx, edi
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x100082a6
push 0
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0
push eax
push 0x20
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x80]
test eax, eax
je 0x100082a9
lea edx, [ebp - 0x24]
mov edi, 0x1c
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x100082a6
add ecx, 4
add edx, 4
sub edi, 4
jae 0x100081d0
movups xmm0, xmmword [esi + 0x28]
mov eax, dword [ebp - 0x94]
push dword [ebp - 0x88]
movups xmmword [eax], xmm0
movups xmm0, xmmword [esi + 0x38]
movups xmmword [eax + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x8c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000c666
mov esp, ebp
pop ebp
ret 8
test al, al
jne 0x10008257
push str.GetProcInfo
push dword [0x1013aa64]
call edx
call eax
push edi
call eax
add esp, 4
test al, al
je 0x100082ee
mov edx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [ebp - 0x79], 1
push str.FindEntryPointInfo
push dword [0x1013aa64]
call edx
call eax
mov edi, dword [ebp - 0x80]
lea ecx, [ebp - 0x44]
push ecx
push dword [edi - 4]
push dword [ebp - 0x84]
call eax
add esp, 0xc
test al, al
je 0x100082a6
mov ecx, edi
lea edx, [ebp - 0x44]
mov edi, 0x1c
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x100082a6
add ecx, 4
add edx, 4
sub edi, 4
jae 0x10008290
jmp 0x100081e5
mov ecx, dword [ebp - 0x80]
mov edx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [ebp - 0x84]
mov al, byte [ebp - 0x79]
add esi, 0x48
add ecx, 0x48
mov dword [ebp - 0x80], ecx
cmp esi, dword [0x10130a88]
jne 0x10008084
test al, al
je 0x100082ee
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x8c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c666
mov esp, ebp
pop ebp
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
jmp 0x100082e3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100082ee