Function at 0x45e654
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffcc
mov dword [esp], edx
mov edi, eax
xor eax, eax
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
call fcn.0045e630
test al, al
jne 0x45e698
push 0x45e8dc
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
test ebx, ebx
jne 0x45e68f
mov eax, 0x45e8f4
call fcn.0042f0f0
mov dword [esp + 4], ebx
jmp 0x45e8cd
test edi, edi
je 0x45e8cd
mov eax, edi
mov edx, eax
add edx, 0x3c
mov edx, dword [edx]
add edx, eax
mov dword [esp + 8], edx
mov eax, dword [esp + 8]
cmp dword [eax], 0x4550
jne 0x45e8cd
push 0x40
push 0x3000
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x50]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
test esi, esi
je 0x45e8cd
mov eax, dword [esp + 8]
mov ecx, dword [eax + 0x54]
mov edx, esi
mov eax, edi
call fcn.00403040
mov eax, dword [esp + 8]
lea ebx, [eax + 0x18]
mov eax, dword [esp + 8]
movzx eax, word [eax + 0x14]
add ebx, eax
mov eax, dword [esp + 8]
movzx eax, word [eax + 6]
dec eax
test eax, eax
jb 0x45e742
inc eax
mov dword [esp + 0x30], eax
mov edx, 0x45e948
mov eax, ebx
call fcn.00409518
test eax, eax
jne 0x45e726
mov dword [esp + 0xc], ebx
mov eax, dword [ebx + 0xc]
add eax, esi
mov edx, dword [ebx + 0x14]
add edx, edi
mov ecx, dword [ebx + 0x10]
xchg edx, eax
call fcn.00403040
add ebx, 0x28
dec dword [esp + 0x30]
jne 0x45e712
cmp dword [esp + 0xc], 0
je 0x45e8ae
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x14]
add eax, edi
xor ebx, ebx
jmp 0x45e7b6
mov edx, 8
jmp 0x45e79e
add edi, edx
cmp word [edi], 0
je 0x45e79b
mov ecx, eax
add ecx, edx
movsx ecx, word [ecx]
add ecx, dword [eax]
sub ecx, 0x3000
mov dword [esp + 0x18], ecx
mov ecx, esi
add ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx]
mov edi, dword [esp + 8]
sub ecx, dword [edi + 0x34]
add ecx, esi
mov edi, dword [esp + 0x1c]
mov dword [edi], ecx
add edx, 2
mov edi, eax
mov ecx, edi
add ecx, 4
cmp edx, dword [ecx]
jb 0x45e761
mov ecx, eax
add ecx, 4
mov ecx, dword [ecx]
add ecx, eax
mov eax, ecx
add ebx, edx
mov edx, dword [esp + 0xc]
cmp ebx, dword [edx + 0x10]
jb 0x45e75a
mov eax, dword [esp + 8]
cmp dword [eax + 0x80], 0
je 0x45e8ae
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x80]
add eax, esi
mov dword [esp + 0x10], eax
jmp 0x45e8a1
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0xc]
add eax, esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
mov ebp, dword [eax + 0x10]
add ebp, esi
mov eax, dword [esp + 0x20]
push eax
call sub.kernel32.dll_GetModuleHandleA_2
mov dword [esp + 0x24], eax
cmp dword [esp + 0x24], 0
jne 0x45e829
mov eax, dword [esp + 0x20]
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [esp + 0x24], eax
cmp dword [esp + 0x24], 0
je 0x45e8cd
mov eax, dword [esp + 0x10]
mov edi, dword [eax]
add edi, esi
jmp 0x45e891
mov byte [esp + 0x2c], 0
mov ebx, dword [edi]
mov eax, ebx
and eax, 0x7fffffff
cmp ebx, eax
je 0x45e850
mov byte [esp + 0x2c], 1
and ebx, 0x7fffffff
cmp byte [esp + 0x2c], 0
jne 0x45e875
add ebx, esi
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x14]
add eax, 2
push eax
mov eax, dword [esp + 0x28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [esp + 0x28], eax
jmp 0x45e884
push ebx
mov eax, dword [esp + 0x28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
mov dword [ebp], eax
add ebp, 4
add edi, 4
cmp dword [edi], 0
jne 0x45e833
mov eax, dword [esp + 0x10]
add eax, 0x14
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
cmp dword [eax], 0
jne 0x45e7e5
mov eax, dword [esp + 8]
mov ebx, dword [eax + 0x28]
mov edi, esi
add ebx, edi
push 0
push 1
push edi
call ebx
test al, al
je 0x45e8cd
mov eax, dword [esp]
mov dword [eax], ebx
mov dword [esp + 4], esi
mov eax, dword [esp + 4]
add esp, 0x34
pop ebp
pop edi
pop esi
pop ebx
ret