Function at 0x45a928
Capabilities:
Parse pe header
Read file via mapping
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
call fcn.0040441c
xor eax, eax
push ebp
push 0x45ad50
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
xor eax, eax
mov dword [0x461c34], 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 0x45ad23
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 0x45a9b0
call fcn.00403a54
jmp 0x45ad2a
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 0x45a9d6
call fcn.00403a54
jmp 0x45ad2a
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 0x45a9fa
call fcn.00403a54
jmp 0x45ad2a
xor edx, edx
push ebp
push 0x45aab4
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 0x45aa2f
mov eax, dword [ebp - 4]
cmp dword [eax], 0x4550
je 0x45aa48
mov dword [ebp - 0x10], 0xfffffffe
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00403a54
jmp 0x45ad2a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x78]
test eax, eax
je 0x45aa5a
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x50]
jbe 0x45aa71
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 0x45ad2a
push ebp
mov edx, dword [ebp - 0x20]
call fcn.0045a86c
pop ecx
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x14]
mov dword [0x461c34], eax
cmp dword [0x461c34], 0x9c40
jle 0x45aaa2
mov dword [0x461c34], 0x9c40
mov eax, dword [0x461c34]
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45aad4
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.0045a86c
pop ecx
mov dword [ebp - 0x30], eax
mov eax, dword [0x461c34]
test eax, eax
jle 0x45abb8
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x40], 0x4aff98
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 - 0x44]
call fcn.00459280
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x34]
mov edx, 0x45ad6c
call fcn.00404278
xor eax, eax
push ebp
push 0x45ab5b
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 0x45ab67
mov eax, dword [ebp - 0x40]
mov dword [eax], ebx
mov eax, dword [ebp - 0x40]
add eax, 0xffffff00
mov edx, dword [ebp - 0x34]
mov ecx, 0xff
call fcn.00404208
cmp dword [ebp - 0x38], 0
jbe 0x45aba1
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 [ebp - 0x40]
mov dword [edx + 4], eax
add dword [ebp - 0x30], 4
inc dword [ebp - 0x14]
add dword [ebp - 0x40], 0x108
dec dword [ebp - 0x3c]
jne 0x45ab16
push ebp
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x20]
mov edx, dword [ebp - 0x20]
call fcn.0045a86c
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.0045a86c
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.0045a86c
pop ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x18]
mov dword [0x461c38], eax
cmp dword [0x461c38], 0x9c40
jle 0x45ac12
mov dword [0x461c38], 0x9c40
mov eax, dword [0x461c38]
test eax, eax
jle 0x45ace2
mov dword [ebp - 0x3c], eax
xor eax, eax
push ebp
push 0x45ac7c
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.0045a86c
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 0x45ac97
mov eax, dword [ebp - 0x34]
mov edx, 0x45ad78
call fcn.00404378
je 0x45ace2
movzx eax, si
mov edx, dword [ebp - 0x24]
sub eax, dword [edx + 0x10]
mov edi, eax
shl edi, 5
add edi, eax
mov dword [edi*8 + 0x4aff98], ebx
lea eax, [edi*8 + 0x4afe98]
mov edx, dword [ebp - 0x34]
mov ecx, 0xff
call fcn.00404208
add dword [ebp - 0x28], 4
add dword [ebp - 0x2c], 2
dec dword [ebp - 0x3c]
jne 0x45ac22
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ad2a
cmp dword [ebp - 0x20], 0
je 0x45acfe
mov eax, dword [ebp - 0x20]
push eax
call sub.KERNEL32.DLL_UnmapViewOfFile
cmp dword [ebp - 0x1c], 0
je 0x45ad0d
mov eax, dword [ebp - 0x1c]
push eax
call sub.KERNEL32.DLL_CloseHandle
cmp dword [ebp - 0x18], 0xffffffff
je 0x45ad22
cmp dword [ebp - 0x18], 0
je 0x45ad22
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 0x45ad57
lea eax, [ebp - 0x44]
call fcn.00403f6c
lea eax, [ebp - 0x34]
call fcn.00403f6c
lea eax, [ebp - 0xc]
call fcn.00403f6c
ret