Function at 0x45e3b5
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
mov eax, dword [0x52efc0]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
xor eax, ebp
test ecx, ecx
mov dword [ebp - 0x10], eax
je 0x45e3d8
mov dword [ecx], 0
mov edi, dword [ebp + 0x18]
test edx, edx
je 0x45e3e5
mov dword [edx], 0
test edi, edi
je 0x45e3ef
mov dword [edi], 0
mov esi, dword [0x537ecc]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, 0x10dd
cmp esi, eax
jne 0x45e40e
mov ebx, dword [0x537ed8]
test ebx, ebx
je 0x45e424
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004aeb01
mov eax, ebx
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
mov ecx, dword [ebp + 8]
mov ebx, 6
test ecx, ecx
je 0x45e40e
mov eax, dword [ecx]
test eax, eax
je 0x45e4b5
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push eax
call fcn.0045de38
push ebx
push esi
mov esi, eax
call fcn.0045de38
cmp eax, esi
je 0x45e4ca
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x45e458
mov dword [ecx], esi
test edi, edi
je 0x45e45e
mov dword [edi], eax
mov dword [ebp - 0x5c], eax
push 0x18
call fcn.004aea96
add esp, 4
mov edi, eax
call fcn.00411940
mov ecx, 0x7ff80000
lea eax, [esi - 0x7ff80000]
mov edx, 0x10000
mov ebx, 0xfff80000
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], edi
cmp esi, ecx
cmova edx, eax
add ecx, esi
test esi, esi
mov eax, dword [0x537ee0]
cmovns ebx, ecx
mov ecx, dword [0x537ee4]
test ecx, ecx
jne 0x45e4e2
test eax, eax
je 0x45e4e2
mov dword [0x537ee4], eax
mov ecx, eax
jmp 0x45e4e6
mov dword [0x537ed8], 6
mov dword [0x537edc], ecx
jmp 0x45e40e
cmp dword [0x537ec8], 0
jne 0x45e7b1
xor esi, esi
xor edi, edi
xor eax, eax
jmp 0x45e770
test ecx, ecx
je 0x45e50d
mov esi, dword [ecx + 8]
cmp esi, ebx
ja 0x45e50d
test esi, esi
je 0x45e50d
cmp esi, edx
jae 0x45e67b
jmp 0x45e50d
mov esi, dword [eax + 8]
cmp esi, ebx
ja 0x45e50a
test esi, esi
je 0x45e50a
cmp esi, edx
jae 0x45e577
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x537ee4], eax
jne 0x45e4fb
mov dword [ebp - 0x4c], ebx
mov ebx, dword [ebp - 0x54]
mov dword [ebp - 0x58], edx
movzx eax, bx
sub ebx, eax
cmp ebx, edx
jbe 0x45e5a0
mov esi, dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov eax, ebx
cmp eax, 0x80000001
mov edi, eax
mov ecx, 0x6fff0000
cmovb edi, ecx
cmp eax, 0x6fffffff
cmovbe edi, eax
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push edi
call esi
test eax, eax
je 0x45e5a0
cmp dword [ebp - 0x1c], 0x10000
jne 0x45e566
cmp dword [ebp - 0x20], 0x10000
jae 0x45e57e
mov eax, dword [ebp - 0x28]
mov ecx, 0xffff0000
add eax, ecx
cmp eax, dword [ebp - 0x58]
ja 0x45e530
jmp 0x45e5a0
mov ecx, eax
jmp 0x45e67b
push 0x40
push 0x3000
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test eax, eax
mov dword [0x537ee4], eax
jne 0x45e636
cmp ebx, dword [ebp - 0x4c]
jae 0x45e764
mov edi, dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp ebx, 0x80000001
mov esi, ebx
mov eax, 0x80010000
cmovb esi, eax
cmp ebx, 0x6fffffff
cmovbe esi, ebx
push 0x1c
lea eax, [ebp - 0x48]
push eax
push esi
call edi
test eax, eax
je 0x45e764
cmp dword [ebp - 0x38], 0x10000
jne 0x45e624
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10000
jb 0x45e624
mov ecx, esi
and ecx, 0xffff
je 0x45e608
mov esi, 0x10000
sub esi, ecx
sub eax, esi
mov dword [ebp - 0x3c], eax
add esi, dword [ebp - 0x48]
mov dword [ebp - 0x48], esi
push 0x40
push 0x3000
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x537ee4], eax
jne 0x45e634
mov ebx, dword [ebp - 0x48]
add ebx, dword [ebp - 0x3c]
cmp ebx, dword [ebp - 0x4c]
jb 0x45e5af
jmp 0x45e764
mov esi, eax
mov dword [esi], 0x52727464
mov dword [esi + 8], 0
xor ecx, ecx
mov eax, dword [0x537ee0]
mov dword [esi + 4], eax
mov dword [0x537ee0], esi
add esi, 0x10000
mov eax, 0x7fe
mov dword [esi - 8], ecx
add esi, 0xffffffe0
dec eax
cmp eax, 1
mov ecx, esi
ja 0x45e65e
mov ecx, dword [0x537ee4]
mov edx, dword [ebp - 0x58]
mov ebx, dword [ebp - 0x4c]
mov dword [ecx + 8], esi
cmp esi, edx
jb 0x45e764
cmp esi, ebx
ja 0x45e764
mov eax, dword [esi + 0x18]
mov edx, dword [ebp + 0x10]
test edx, edx
mov dword [ecx + 8], eax
mov ecx, 0xcccccccc
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 8], ecx
mov dword [esi + 4], ecx
mov dword [esi], ecx
je 0x45e6b6
mov dword [edx], esi
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x4c], 0
mov ecx, dword [ebp - 0x4c]
mov edi, eax
xor ebx, ebx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
add ecx, esi
push eax
push ebx
push edi
push ecx
call fcn.0046435c
cmp dword [ebp - 0x2c], ebx
jne 0x45e7c4
mov ecx, eax
sub ecx, dword [ebp - 0x54]
mov dword [ebp - 0x4c], ecx
mov cl, byte [edi]
cmp cl, 0x25
jle 0x45e711
mov edx, ecx
add dl, 0xda
cmp dl, 0x10
ja 0x45e707
movzx edx, dl
mov ebx, 0x10101
bt ebx, edx
jb 0x45e71b
add cl, 0x9c
cmp cl, 2
jb 0x45e71b
jmp 0x45e758
cmp cl, 0xe8
jg 0x45e72c
cmp cl, 0xe3
jne 0x45e73c
cmp byte [edi + 1], 0xff
jne 0x45e758
cmp byte [edi + 2], 0x25
jne 0x45e758
jmp 0x45e7be
cmp cl, 0xff
jne 0x45e753
cmp byte [edi + 1], 0x25
jne 0x45e758
jmp 0x45e7be
add cl, 0x3e
cmp cl, 0x1e
ja 0x45e758
movzx ecx, cl
mov edx, 0x40000403
bt edx, ecx
jb 0x45e7be
jmp 0x45e758
cmp cl, 0xe9
je 0x45e7be
cmp dword [ebp - 0x4c], 5
jl 0x45e6c0
jmp 0x45e7d9
xor esi, esi
mov ebx, 8
mov edi, dword [ebp - 0x50]
mov eax, edi
mov dword [0x537ed8], ebx
test esi, esi
je 0x45e7a4
xor edx, edx
mov ecx, esi
and ecx, 0xffff0000
mov dword [esi + 4], edx
mov dword [esi], edx
mov dword [esi + 0xc], edx
mov dword [esi + 8], edx
mov dword [esi + 0x14], edx
mov dword [esi + 0x10], edx
mov dword [esi + 0x1c], edx
mov dword [esi + 0x18], edx
mov edx, dword [ecx + 8]
mov dword [esi + 0x18], edx
mov dword [ecx + 8], esi
test eax, eax
je 0x45e7b1
push edi
call fcn.004aeac6
add esp, 4
mov eax, dword [ebp + 8]
mov dword [0x537edc], eax
jmp 0x45e40e
cmp dword [ebp - 0x4c], 4
jg 0x45e7d9
mov edi, dword [ebp - 0x50]
cmp dword [0x537ec8], 0
mov ebx, 9
mov eax, edi
jne 0x45e776
jmp 0x45e770
cmp dword [ebp - 0x4c], 0x12
jbe 0x45e7e6
mov ebx, 6
jmp 0x45e76b
mov ecx, dword [ebp - 0x5c]
mov dword [esi + 0x18], eax
mov edi, dword [ebp - 0x50]
lea edx, [esi + 0x17]
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 0x4c]
mov byte [esi + 0x17], cl
lea ecx, [esi + ecx + 5]
sub eax, ecx
cmp ecx, edx
mov byte [ecx - 5], 0xe9
mov dword [ecx - 4], eax
jae 0x45e81d
sub edx, ecx
push edx
push 0xcc
push ecx
call fcn.004b81d0
add esp, 0xc
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 0x40
push dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x45e869
mov eax, dword [ebp + 8]
mov ecx, dword [0x537ed0]
mov edx, dword [ebp - 0x2c]
mov dword [edi + 4], 0
mov dword [0x537ed0], edi
mov dword [edi + 8], eax
mov dword [edi + 0x10], esi
mov dword [edi + 0xc], ebx
xor ebx, ebx
mov dword [edi + 0x14], edx
mov dword [edi], ecx
jmp 0x45e40e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x45e76e