Function at 0x45a9a0
Capabilities:
Allocate or change rwx memory
Parse pe header
Read file via mapping
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
call fcn.0040441c
mov ebx, 0x461c34
xor eax, eax
push ebp
push 0x45ae75
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
xor eax, eax
mov dword [ebx], eax
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
xor edx, edx
push ebp
push 0x45ae48
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 0xc]
call fcn.0040442c
push eax
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x45aa2a
call fcn.00403a54
jmp 0x45ae4f
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0x18]
push eax
call sub.KERNEL32.DLL_CreateFileMappingA
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x45aa50
call fcn.00403a54
jmp 0x45ae4f
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x1c]
push eax
call sub.KERNEL32.DLL_MapViewOfFile
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x45aa74
call fcn.00403a54
jmp 0x45ae4f
xor edx, edx
push ebp
push 0x45ab20
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
cmp word [eax], 0x5a4d
jne 0x45aaa9
mov eax, dword [ebp - 4]
cmp dword [eax], 0x4550
je 0x45aac2
mov dword [ebp - 0x10], 0xfffffffe
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00403a54
jmp 0x45ae4f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x78]
test eax, eax
je 0x45aad4
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x50]
jbe 0x45aaeb
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00403a54
jmp 0x45ae4f
push ebp
mov edx, dword [ebp - 0x20]
call fcn.0045a8dc
pop ecx
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x14]
mov dword [ebx], eax
cmp dword [ebx], 0xffff
jle 0x45ab11
mov dword [ebx], 0xffff
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45ab40
cmp dword [0x461ca0], 0
je 0x45ab5b
push 0x8000
push 0
mov eax, dword [0x461ca0]
push eax
call sub.KERNEL32.DLL_VirtualFree
push 0x40
push 0x1000
imul eax, dword [ebx], 0x108
add eax, 0x1000
push eax
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [0x461ca0], eax
mov eax, dword [ebp - 0xc]
call fcn.0040442c
push eax
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [ebp - 0x38], eax
push ebp
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp - 0x20]
call fcn.0045a8dc
pop ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebx]
test eax, eax
jle 0x45aca0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
dec eax
mov edx, dword [ebp - 0x24]
add eax, dword [edx + 0x10]
cdq
push edx
push eax
lea eax, [ebp - 0x40]
call fcn.00459288
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x34]
mov edx, 0x45ae90
call fcn.00404278
xor eax, eax
push ebp
push 0x45abf7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x30]
mov ebx, dword [eax]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45ac03
mov esi, dword [ebp - 0x14]
mov eax, esi
shl esi, 5
add esi, eax
mov eax, dword [0x461ca0]
mov dword [eax + esi*8 + 0x100], ebx
mov eax, dword [0x461ca0]
lea eax, [eax + esi*8]
mov edx, dword [ebp - 0x34]
mov ecx, 0xff
call fcn.00404208
xor eax, eax
push ebp
push 0x45ac6d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x38], 0
jbe 0x45ac63
mov eax, dword [ebp - 0x14]
dec eax
mov edx, dword [ebp - 0x24]
add eax, dword [edx + 0x10]
push eax
mov eax, dword [ebp - 0x38]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x461ca0]
mov dword [edx + esi*8 + 0x104], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45ac90
add dword [ebp - 0x30], 4
inc dword [ebp - 0x14]
dec dword [ebp - 0x3c]
jne 0x45abb2
push ebp
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x20]
mov edx, dword [ebp - 0x20]
call fcn.0045a8dc
pop ecx
mov dword [ebp - 0x28], eax
push ebp
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x24]
mov edx, dword [ebp - 0x20]
call fcn.0045a8dc
pop ecx
mov dword [ebp - 0x2c], eax
push ebp
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp - 0x20]
call fcn.0045a8dc
pop ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x18]
mov dword [0x461c38], eax
cmp dword [0x461c38], 0xffff
jle 0x45acfa
mov dword [0x461c38], 0xffff
mov eax, dword [0x461c38]
test eax, eax
jle 0x45ae07
mov dword [ebp - 0x3c], eax
xor eax, eax
push ebp
push 0x45ad64
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
mov ebx, dword [ebp - 0x20]
mov eax, ebx
add eax, dword [ebp - 0x28]
mov eax, dword [eax]
mov edx, dword [ebp - 0x20]
call fcn.0045a8dc
pop ecx
mov edx, eax
add edx, ebx
lea eax, [ebp - 0x34]
call fcn.00404164
mov eax, ebx
add eax, dword [ebp - 0x2c]
mov si, word [eax]
mov eax, dword [ebp - 0x24]
add si, word [eax + 0x10]
movzx eax, si
mov edx, dword [ebp - 0x24]
sub eax, dword [edx + 0x10]
shl eax, 2
add ebx, dword [ebp - 0x30]
add eax, ebx
mov ebx, dword [eax]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45ad7f
mov eax, dword [ebp - 0x34]
mov edx, 0x45ae9c
call fcn.00404378
je 0x45ae07
xor eax, eax
push ebp
push 0x45adec
push dword fs:[eax]
mov dword fs:[eax], esp
movzx edi, si
mov eax, edi
mov edx, dword [ebp - 0x24]
sub eax, dword [edx + 0x10]
mov edx, eax
shl eax, 5
add eax, edx
mov edx, dword [0x461ca0]
mov dword [edx + eax*8 + 0x208], ebx
mov eax, dword [ebp - 0x24]
sub edi, dword [eax + 0x10]
mov eax, edi
shl eax, 5
add eax, edi
mov edx, dword [0x461ca0]
lea eax, [edx + eax*8 + 0x108]
mov edx, dword [ebp - 0x34]
mov ecx, 0xff
call fcn.00404208
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45adf6
add dword [ebp - 0x28], 4
add dword [ebp - 0x2c], 2
dec dword [ebp - 0x3c]
jne 0x45ad0a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ae4f
cmp dword [ebp - 0x20], 0
je 0x45ae23
mov eax, dword [ebp - 0x20]
push eax
call sub.KERNEL32.DLL_UnmapViewOfFile
cmp dword [ebp - 0x1c], 0
je 0x45ae32
mov eax, dword [ebp - 0x1c]
push eax
call sub.KERNEL32.DLL_CloseHandle
cmp dword [ebp - 0x18], 0xffffffff
je 0x45ae47
cmp dword [ebp - 0x18], 0
je 0x45ae47
mov eax, dword [ebp - 0x18]
push eax
call sub.KERNEL32.DLL_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ae7c
lea eax, [ebp - 0x40]
call fcn.00403f6c
lea eax, [ebp - 0x34]
call fcn.00403f6c
lea eax, [ebp - 0xc]
call fcn.00403f6c
ret