Function at 0x270147d1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1d4
mov eax, dword [0x270b313c]
xor eax, esp
mov dword [esp + 0x1d0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], edi
test edi, edi
jne 0x27014829
push 6
call sub.KERNEL32.dll_SetLastError
xor eax, eax
mov ecx, dword [esp + 0x1dc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.27088f70
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp + 0x10]
push 4
push 0x1000
add ecx, 0x1b8
push ecx
push eax
push edi
call sub.KERNEL32.dll_VirtualAllocEx
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x27014810
and dword [esp + 0xc], 0
push 0x40
pop esi
push esi
lea eax, [esp + 0x19c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, 0x5a4d
mov word [esp + 0x198], ax
lea eax, [esp + 0xc]
push eax
push esi
lea eax, [esp + 0x1a0]
push eax
push ebx
push edi
mov dword [esp + 0x1e8], esi
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x27014810
cmp dword [esp + 0xc], esi
jne 0x27014810
mov edi, 0xf8
push edi
lea eax, [esp + 0x64]
push 0
push eax
add ebx, esi
call sub.msvcrt.dll_memset
lea eax, [edi - 0x18]
mov word [esp + 0x80], ax
mov eax, 0x2000
mov word [esp + 0x82], ax
xor eax, eax
inc eax
mov word [esp + 0x72], ax
add esp, 0xc
lea eax, [edi + 0x13]
mov word [esp + 0x78], ax
lea eax, [esp + 0xc]
push eax
push edi
lea eax, [esp + 0x68]
push eax
push ebx
push dword [esp + 0x20]
mov dword [esp + 0x74], 0x4550
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x27014810
cmp dword [esp + 0xc], edi
jne 0x27014810
push 0xa
xor eax, eax
add ebx, edi
pop ecx
lea edi, [esp + 0x170]
rep stosd dword es:[edi], eax
mov eax, dword [0x270a1e54]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x170], eax
mov eax, dword [0x270a1e58]
mov dword [esp + 0x174], eax
mov eax, ebx
sub eax, dword [esp + 0x18]
add edi, 0x58
add eax, 0x28
mov dword [esp + 0x17c], eax
lea eax, [esp + 0xc]
push eax
push 0x28
lea eax, [esp + 0x178]
push eax
push ebx
push dword [esp + 0x20]
mov dword [esp + 0x194], edi
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x27014810
cmp dword [esp + 0xc], 0x28
jne 0x27014810
push esi
lea eax, [esp + 0x24]
push 0
push eax
add ebx, 0x28
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push esi
lea eax, [esp + 0x28]
push eax
push ebx
push dword [esp + 0x20]
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], 0x727444
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], edi
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x27014810
cmp dword [esp + 0xc], esi
jne 0x27014810
push 6
pop ecx
xor eax, eax
add ebx, esi
mov esi, dword [esp + 0x1c]
lea edi, [esp + 0x158]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
and dword [esp + 0x15c], 0
add eax, 0x18
mov dword [esp + 0x158], eax
lea edi, [esp + 0x160]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0xc]
push eax
movsd dword es:[edi], dword [esi]
push 0x18
lea eax, [esp + 0x160]
push eax
movsd dword es:[edi], dword [esi]
push ebx
push dword [esp + 0x20]
movsd dword es:[edi], dword [esi]
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x27014810
cmp dword [esp + 0xc], 0x18
jne 0x27014810
mov esi, dword [ebp + 0x10]
lea eax, [esp + 0xc]
push eax
push esi
push dword [esp + 0x1c]
add ebx, 0x18
push ebx
push dword [esp + 0x20]
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x27014810
cmp dword [esp + 0xc], esi
jne 0x27014810
push 0
call sub.KERNEL32.dll_SetLastError
mov eax, ebx
jmp 0x27014812