Function at 0x142ddaa8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x142ddc97
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x28]
call fcn.141227e0
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x28]
call fcn.1410a11c
mov dword [ebp - 0x24], 0x40
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x5a4d
jne 0x142ddc79
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0x4550
jne 0x142ddc79
mov eax, dword [ebp - 0x24]
push eax
push 0x2000
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x50]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x34]
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x142ddb5f
mov eax, dword [ebp - 0x24]
push eax
push 0x2000
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x50]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x142ddc79
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
mov dword [eax + 4], edx
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 8]
mov byte [eax + 0x10], 0
mov eax, dword [ebp - 0x24]
push eax
push 0x1000
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x50]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov eax, dword [ebp - 0x24]
push eax
push 0x1000
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x54]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x142ddc79
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
mov edx, dword [ebp - 0x10]
add eax, dword [edx + 0x54]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x2c]
call fcn.14107030
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 0x18]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x34], edx
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.142dd804
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
sub edx, dword [eax + 0x34]
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 0
je 0x142ddc30
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 8]
mov edx, eax
push dword [edx + 0x10]
push dword [edx + 0xc]
push dword [edx + 8]
push dword [edx + 4]
push dword [edx]
call fcn.142dd6d4
mov eax, dword [ebp - 8]
call fcn.142dd4d8
test al, al
je 0x142ddc79
mov eax, dword [ebp - 8]
call fcn.142dd398
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x142ddc72
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x142ddc79
push 0
push 1
mov eax, dword [ebp - 0x14]
push eax
call dword [ebp - 0x20]
test eax, eax
je 0x142ddc79
mov eax, dword [ebp - 8]
mov byte [eax + 0x10], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x142ddc9e
lea eax, [ebp - 0x30]
call fcn.14109ce8
lea eax, [ebp - 0x28]
call fcn.14109ce8
ret