Function at 0x4542ca
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
push esi
push edi
mov eax, dword [0x4654b0]
mov dword [ebp - 0x300], eax
mov dword [ebp - 0x2fc], 0
call fcn.00454941
sub eax, 6
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x2f8]
push edx
lea eax, [ebp - 0x1f4]
push eax
push 0
call fcn.00453cb8
add esp, 0x10
test eax, eax
je 0x454925
push 0x1dc
lea edx, [ebp - 0x1f4]
push edx
push 0x465030
call fcn.0045e420
add esp, 0xc
mov byte [ebp - 0x32c], 4
mov byte [ebp - 0x32b], 8
mov byte [ebp - 0x32a], 0
mov byte [ebp - 0x329], 0
mov byte [ebp - 0x328], 0xc8
mov byte [ebp - 0x327], 0
mov byte [ebp - 0x326], 0
mov byte [ebp - 0x325], 0
mov byte [ebp - 0x324], 0x18
mov byte [ebp - 0x323], 0x61
mov byte [ebp - 0x322], 0xe
mov byte [ebp - 0x321], 0
mov byte [ebp - 0x320], 0x22
mov byte [ebp - 0x31f], 0
mov byte [ebp - 0x31e], 0
mov byte [ebp - 0x31d], 0
mov byte [ebp - 0x31c], 0x90
mov byte [ebp - 0x31b], 0x66
mov byte [ebp - 0x31a], 0xe
mov byte [ebp - 0x319], 0
mov byte [ebp - 0x318], 0xe8
mov byte [ebp - 0x317], 2
mov byte [ebp - 0x316], 0
mov byte [ebp - 0x315], 0
mov byte [ebp - 0x314], 0
mov byte [ebp - 0x313], 0
mov byte [ebp - 0x312], 0
mov byte [ebp - 0x311], 0
mov byte [ebp - 0x310], 0
mov byte [ebp - 0x30f], 0
mov byte [ebp - 0x30e], 0
mov byte [ebp - 0x30d], 0
push 0x1dc
lea eax, [ebp - 0x32c]
push eax
push 0x64
push 0x465030
call fcn.004584d4
add esp, 0x10
mov ecx, dword [ebp - 0x1df]
and ecx, 0xff
test ecx, ecx
je 0x454468
mov edx, dword [ebp - 0x1f0]
and edx, 0xff
cmp edx, 2
je 0x454468
sub esp, 0x1dc
mov ecx, 0x77
mov esi, 0x465030
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call dword [0x465438]
mov eax, dword [ebp - 4]
sub eax, 0x1dc
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x1e4]
and ecx, 0xff
test ecx, ecx
je 0x4544d4
mov edx, dword [0x4655bc]
push edx
call fcn.00464b00
add esp, 4
mov dword [ebp - 0x34c], eax
push 4
push 0x1000
mov eax, dword [ebp - 0x34c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x34c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [0x4655bc]
push ecx
call fcn.00464a80
add esp, 0x10
mov dword [ebp - 4], eax
jmp 0x454501
push 4
push 0x1000
mov edx, dword [ebp - 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [0x4655bc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.0045e420
add esp, 0xc
cmp dword [0x465010], 0
je 0x45451d
push 0x8000
push 0
mov eax, dword [0x4655bc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
lea ecx, [ebp - 0x2f8]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x2fc]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.004549e1
add esp, 0x18
test eax, eax
jne 0x45455f
push 0x8000
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x45493b
push 0x8000
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x344], eax
mov dword [ebp - 0x304], 0x4655bc
call fcn.004542a5
mov dword [0x465214], eax
mov dword [ebp - 0x334], 0x465214
lea eax, [ebp - 0x10]
push eax
push 0x40
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x300]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4545bc
xor eax, eax
jmp 0x45493b
push 0x40
push 0x1000
push 0x64
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x465028], eax
mov dword [ebp - 0x340], 0
mov eax, dword [0x465028]
add eax, dword [ebp - 0x340]
mov byte [eax], 0x6a
mov ecx, dword [ebp - 0x340]
add ecx, 1
mov dword [ebp - 0x340], ecx
mov edx, dword [0x465028]
add edx, dword [ebp - 0x340]
mov byte [edx], 0
mov eax, dword [ebp - 0x340]
add eax, 1
mov dword [ebp - 0x340], eax
mov ecx, dword [0x465028]
add ecx, dword [ebp - 0x340]
mov byte [ecx], 0x68
mov edx, dword [ebp - 0x340]
add edx, 1
mov dword [ebp - 0x340], edx
push 4
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [0x465028]
add ecx, dword [ebp - 0x340]
push ecx
call fcn.0045e420
add esp, 0xc
mov edx, dword [ebp - 0x340]
add edx, 4
mov dword [ebp - 0x340], edx
mov eax, dword [0x465028]
add eax, dword [ebp - 0x340]
mov byte [eax], 0x68
mov ecx, dword [ebp - 0x340]
add ecx, 1
mov dword [ebp - 0x340], ecx
push 4
push 0x46521c
mov edx, dword [0x465028]
add edx, dword [ebp - 0x340]
push edx
call fcn.0045e420
add esp, 0xc
mov eax, dword [ebp - 0x340]
add eax, 4
mov dword [ebp - 0x340], eax
mov ecx, dword [0x465028]
add ecx, dword [ebp - 0x340]
mov byte [ecx], 0x68
mov edx, dword [ebp - 0x340]
add edx, 1
mov dword [ebp - 0x340], edx
push 4
lea eax, [ebp - 0x300]
push eax
mov ecx, dword [0x465028]
add ecx, dword [ebp - 0x340]
push ecx
call fcn.0045e420
add esp, 0xc
mov edx, dword [ebp - 0x340]
add edx, 4
mov dword [ebp - 0x340], edx
mov eax, dword [0x465028]
add eax, dword [ebp - 0x340]
mov byte [eax], 0x68
mov ecx, dword [ebp - 0x340]
add ecx, 1
mov dword [ebp - 0x340], ecx
push 4
lea edx, [ebp - 0x344]
push edx
mov eax, dword [0x465028]
add eax, dword [ebp - 0x340]
push eax
call fcn.0045e420
add esp, 0xc
mov ecx, dword [ebp - 0x340]
add ecx, 4
mov dword [ebp - 0x340], ecx
mov edx, dword [0x465028]
add edx, dword [ebp - 0x340]
mov byte [edx], 0xff
mov eax, dword [ebp - 0x340]
add eax, 1
mov dword [ebp - 0x340], eax
mov ecx, dword [0x465028]
add ecx, dword [ebp - 0x340]
mov byte [ecx], 0x15
mov edx, dword [ebp - 0x340]
add edx, 1
mov dword [ebp - 0x340], edx
push 4
lea eax, [ebp - 0x334]
push eax
mov ecx, dword [0x465028]
add ecx, dword [ebp - 0x340]
push ecx
call fcn.0045e420
add esp, 0xc
mov edx, dword [ebp - 0x340]
add edx, 4
mov dword [ebp - 0x340], edx
mov eax, dword [0x465028]
add eax, dword [ebp - 0x340]
mov byte [eax], 0x8b
mov ecx, dword [ebp - 0x340]
add ecx, 1
mov dword [ebp - 0x340], ecx
mov edx, dword [0x465028]
add edx, dword [ebp - 0x340]
mov byte [edx], 0xe5
mov eax, dword [ebp - 0x340]
add eax, 1
mov dword [ebp - 0x340], eax
mov ecx, dword [0x465028]
add ecx, dword [ebp - 0x340]
mov byte [ecx], 0x5d
mov edx, dword [ebp - 0x340]
add edx, 1
mov dword [ebp - 0x340], edx
mov eax, dword [0x465028]
add eax, dword [ebp - 0x340]
mov byte [eax], 0x8b
mov ecx, dword [ebp - 0x340]
add ecx, 1
mov dword [ebp - 0x340], ecx
mov edx, dword [0x465028]
add edx, dword [ebp - 0x340]
mov byte [edx], 0xe5
mov eax, dword [ebp - 0x340]
add eax, 1
mov dword [ebp - 0x340], eax
mov ecx, dword [0x465028]
add ecx, dword [ebp - 0x340]
mov byte [ecx], 0x5d
mov edx, dword [ebp - 0x340]
add edx, 1
mov dword [ebp - 0x340], edx
mov eax, dword [0x465028]
add eax, dword [ebp - 0x340]
mov byte [eax], 0xe9
mov ecx, dword [ebp - 0x340]
add ecx, 1
mov dword [ebp - 0x340], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x30c], edx
mov eax, dword [0x465028]
sub eax, dword [ebp - 0x30c]
sub eax, 5
mov dword [0x465210], eax
mov ecx, dword [ebp - 0x30c]
mov dword [ebp - 0x348], ecx
mov edx, dword [ebp - 0x1ec]
add edx, dword [0x4654b0]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
sub eax, dword [0x465028]
mov ecx, dword [ebp - 0x340]
add ecx, 4
sub eax, ecx
mov dword [ebp - 0x308], eax
push 4
lea edx, [ebp - 0x308]
push edx
mov eax, dword [0x465028]
add eax, dword [ebp - 0x340]
push eax
call fcn.0045e420
add esp, 0xc
mov byte [ebp - 0x33c], 0xe9
push 4
push 0x465210
lea ecx, [ebp - 0x33b]
push ecx
call fcn.0045e420
add esp, 0xc
push 0
push 5
lea edx, [ebp - 0x33c]
push edx
mov eax, dword [ebp - 0x348]
push eax
mov ecx, dword [ebp - 0x344]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [ebp - 0x330], eax
jmp 0x454939
push 0x10
push 0x4504e4
push 0x4504ec
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret