Function at 0x10008870
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10040050]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [ebp + 8]
push ebx
push edi
psrldq xmm0, 8
mov ebx, ecx
movd eax, xmm0
push eax
mov eax, dword [0x10041d44]
push 0
push 0x1fffff
mov eax, dword [eax + 0x44]
call eax
mov edi, eax
test edi, edi
jne 0x100088c9
push eax
mov eax, dword [0x10041d44]
mov eax, dword [eax + 0x30]
call eax
pop edi
mov eax, 0x90000100
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f59b
mov esp, ebp
pop ebp
ret
mov eax, 0x5a4d
cmp word [ebx], ax
mov eax, dword [0x10041d44]
je 0x10008905
mov eax, dword [eax + 0x30]
push edi
call eax
mov eax, dword [0x10041d44]
push 0x8000
push 0
push ebx
mov eax, dword [eax + 0x48]
call eax
pop edi
mov eax, 0x90000101
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f59b
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebx + 0x3c]
add esi, ebx
mov dword [ebp - 0x2c], esi
cmp dword [esi], 0x4550
je 0x10008944
mov eax, dword [eax + 0x30]
push edi
call eax
mov eax, dword [0x10041d44]
push 0x8000
push 0
push ebx
mov eax, dword [eax + 0x48]
call eax
pop esi
pop edi
mov eax, 0x90000102
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f59b
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 0x50]
push 0x40
push 0x3000
push dword [esi + 0x50]
push 0
push edi
call eax
mov dword [ebp - 0x28], eax
test eax, eax
je 0x10008b47
push 0
push dword [esi + 0x54]
push ebx
push eax
mov eax, dword [0x10041d44]
push edi
mov eax, dword [eax + 0x58]
call eax
xor eax, eax
mov dword [ebp - 0x24], 0
cmp ax, word [esi + 6]
jae 0x100089bc
add esi, 0x10c
mov eax, dword [esi]
push 0
push dword [esi - 4]
add eax, ebx
push eax
mov eax, dword [esi - 8]
add eax, dword [ebp - 0x28]
push eax
mov eax, dword [0x10041d44]
push edi
mov eax, dword [eax + 0x58]
call eax
mov eax, dword [ebp - 0x2c]
lea esi, [esi + 0x28]
mov ecx, dword [ebp - 0x24]
inc ecx
mov dword [ebp - 0x24], ecx
movzx eax, word [eax + 6]
cmp ecx, eax
jl 0x10008988
mov esi, dword [ebp - 0x2c]
mov eax, dword [0x10041d44]
push 0x40
push 0x3000
push 0x1000
mov eax, dword [eax + 0x50]
push 0
push edi
call eax
mov edx, eax
mov dword [ebp - 0x24], edx
test edx, edx
jne 0x10008a26
mov eax, dword [0x10041d44]
push edi
mov eax, dword [eax + 0x30]
call eax
mov eax, dword [0x10041d44]
push 0x8000
push 0
push ebx
mov eax, dword [eax + 0x48]
call eax
mov eax, dword [0x10041d44]
push 0x8000
push 0
push dword [ebp - 0x28]
mov eax, dword [eax + 0x4c]
push edi
call eax
pop esi
pop edi
mov eax, 0x90000104
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f59b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebx + 0x3c]
add eax, ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [esi + 0xa0]
add eax, ecx
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x80]
add eax, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x10], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
push 0x1c
push eax
mov eax, dword [0x10041d44]
push edx
push edi
mov eax, dword [eax + 0x58]
call eax
mov esi, dword [ebp - 0x24]
mov eax, method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_52
push 0
sub eax, 0x10008760
add esi, 0x1c
push eax
mov eax, dword [0x10041d44]
push 0x10008760
push esi
push edi
mov eax, dword [eax + 0x58]
call eax
mov eax, dword [0x10041d44]
push 0
push 0
push dword [ebp - 0x24]
mov eax, dword [eax + 0x5c]
push esi
push 0
push 0
push edi
call eax
mov esi, eax
mov eax, dword [0x10041d44]
push edi
mov eax, dword [eax + 0x30]
call eax
mov eax, dword [0x10041d44]
mov eax, dword [eax + 0x30]
test esi, esi
jne 0x10008b07
push esi
call eax
mov eax, dword [0x10041d44]
push 0x8000
push esi
push ebx
mov eax, dword [eax + 0x48]
call eax
mov eax, dword [0x10041d44]
push 0x8000
push esi
push dword [ebp - 0x24]
mov eax, dword [eax + 0x4c]
push edi
call eax
pop esi
pop edi
mov eax, 0x90000105
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f59b
mov esp, ebp
pop ebp
ret
push esi
call eax
mov eax, dword [0x10041d44]
push 0x8000
push 0
push ebx
mov eax, dword [eax + 0x48]
call eax
mov eax, dword [0x10041d44]
push 0x8000
push 0
push dword [ebp - 0x24]
mov eax, dword [eax + 0x4c]
push edi
call eax
pop esi
pop edi
mov eax, 0x90000200
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f59b
mov esp, ebp
pop ebp
ret
mov eax, dword [0x10041d44]
push edi
mov eax, dword [eax + 0x30]
call eax
mov eax, dword [0x10041d44]
push 0x8000
push 0
push ebx
mov eax, dword [eax + 0x48]
call eax
mov ecx, dword [ebp - 4]
mov eax, 0x90000103
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.1000f59b
mov esp, ebp
pop ebp
ret