Function at 0x10001450
Capabilities:
Allocate or change rwx memory
Parse pe header
Rebuild import table

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 8], 0
jne 0x10001463
xor eax, eax
jmp 0x100017c2
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x1000147e
xor eax, eax
jmp 0x100017c2
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0x4550
je 0x100014a2
xor eax, eax
jmp 0x100017c2
push 0x40
push 0x1000
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x50]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100014c8
xor eax, eax
jmp 0x100017c2
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.100043b0
add esp, 8
mov eax, dword [ebp - 0xc]
add eax, 0xf8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x14], ecx
push 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10004310
add esp, 0x10
mov dword [ebp - 0x2c], 0
jmp 0x10001517
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 6]
cmp dword [ebp - 0x2c], edx
jae 0x10001571
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x14]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x3c], edx
push 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x40]
push eax
call fcn.10004310
add esp, 0x10
mov ecx, dword [ebp - 0x14]
add ecx, 0x28
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1000150e
mov eax, 8
shl eax, 0
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + eax + 0x7c], 0
je 0x100016d0
mov edx, 8
shl edx, 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + edx + 0x78]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x18], edx
mov eax, 1
test eax, eax
je 0x100016d0
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0xc], 0
jne 0x100015bd
jmp 0x100016d0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
add eax, dword [edx + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x100015f7
push 0x8000
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 1
jmp 0x100017c2
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x10]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x10], edx
mov eax, 1
test eax, eax
je 0x100016bc
mov ecx, dword [ebp - 0x10]
cmp dword [ecx], 0
jne 0x10001623
jmp 0x100016bc
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
and eax, 0x80000000
je 0x1000164a
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
jmp 0x10001675
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
add edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100016a0
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x8000
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 1
jmp 0x100017c2
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov edx, dword [ebp - 0x10]
add edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
jmp 0x10001609
mov ecx, dword [ebp - 0x18]
add ecx, 0x14
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x18], edx
jmp 0x100015a2
mov eax, 8
imul ecx, eax, 5
mov edx, dword [ebp - 0xc]
cmp dword [edx + ecx + 0x7c], 0
je 0x100017b9
mov eax, 8
imul ecx, eax, 5
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
add eax, dword [edx + ecx + 0x78]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x20], ecx
mov edx, 1
test edx, edx
je 0x100017b9
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0
jne 0x1000171b
jmp 0x100017b9
mov dword [ebp - 0x28], 8
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 4]
sub edx, dword [ebp - 0x28]
shr edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x20]
add eax, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x1c], 0
jmp 0x10001751
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x28]
jae 0x100017a2
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x30]
movzx eax, word [edx + ecx*2]
sar eax, 0xc
cmp eax, 3
jne 0x100017a0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
add edx, dword [ecx]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x30]
movzx eax, word [ecx + eax*2]
and eax, 0xfff
add edx, eax
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
sub eax, dword [edx + 0x34]
mov ecx, dword [ebp - 0x38]
add eax, dword [ecx]
mov edx, dword [ebp - 0x38]
mov dword [edx], eax
jmp 0x10001748
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
jmp 0x10001701
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp - 0x48]
mov esp, ebp
pop ebp
ret