Function at 0x401ca4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffcd0
mov eax, dword [0x461e18]
xor ebx, ebx
mov esi, 0x4622b0
mov dword [esp + 8], eax
call fcn.00401ff0
mov edi, eax
lea eax, [esp + 0x10]
push eax
lea edx, [esp + 0x210]
push edx
lea ecx, [esp + 0x34]
push ecx
push 0
sub edi, 6
call fcn.004016d8
add esp, 0x10
test eax, eax
je 0x401fcf
cmp byte [esp + 0x2d], 0
push 0x1e0
lea eax, [esp + 0x30]
push eax
push 0x4620d0
call fcn.004055c4
add esp, 0xc
push esi
push edi
mov esi, 0x45d869
lea edi, [esp + 0x318]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
push 0x1e0
lea eax, [esp + 0x314]
push eax
push 0x64
push 0x4620d0
call fcn.0040355c
add esp, 0x10
cmp byte [esp + 0x3a], 0
je 0x401d5f
cmp byte [esp + 0x34], 2
je 0x401d5f
mov ecx, 0x4620d0
mov edx, 0x77
push dword [ecx + edx*4]
dec edx
jns 0x401d53
call dword [0x461e90]
sub dword [esp + 0x10], 0x1e0
cmp byte [esp + 0x36], 0
je 0x401db3
mov eax, dword [0x45d16c]
push eax
call fcn.0040c734
pop ecx
mov dword [esp + 0x14], eax
push 4
push 0x1000
mov edx, dword [esp + 0x1c]
push edx
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov ebp, eax
mov eax, dword [esp + 0x14]
push eax
push ebp
mov edx, dword [esp + 0x18]
push edx
mov ecx, dword [0x45d16c]
push ecx
call fcn.0040c6b4
add esp, 0x10
mov dword [esp + 0x10], eax
jmp 0x401ddd
push 4
push 0x1000
mov eax, dword [esp + 0x18]
push eax
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov ebp, eax
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [0x45d16c]
push edx
push ebp
call fcn.004055c4
add esp, 0xc
cmp dword [0x4622c8], 0
je 0x401df9
push 0x8000
push 0
mov ecx, dword [0x45d16c]
push ecx
call sub.KERNEL32.DLL_VirtualFree
lea eax, [esp + 0x20c]
push eax
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0xc]
push ecx
mov eax, dword [esp + 0x1c]
push eax
push ebx
push ebp
call fcn.00402074
add esp, 0x18
test eax, eax
jne 0x401e32
push 0x8000
push 0
push ebp
call sub.KERNEL32.DLL_VirtualFree
xor eax, eax
jmp 0x401fe4
push 0x8000
push 0
push ebp
call sub.KERNEL32.DLL_VirtualFree
call sub.KERNEL32.DLL_GetCurrentProcess
mov dword [esp + 0x18], eax
call fcn.00401c88
mov dword [0x4620c4], eax
mov edx, 0x4620c4
mov dword [esp + 0x1c], edx
push esp
push 0x40
mov ecx, dword [esp + 0xc]
push ecx
mov eax, dword [esp + 0x14]
push eax
call sub.KERNEL32.DLL_VirtualProtect
test eax, eax
jne 0x401e78
xor eax, eax
jmp 0x401fe4
push 0x40
push 0x1000
push 0x64
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov ebp, eax
xor ebx, ebx
mov dword [esi], ebp
mov byte [ebp + ebx], 0x6a
inc ebx
mov byte [ebp + ebx], 0
inc ebx
mov byte [ebp + ebx], 0x68
push 4
lea eax, [esp + 8]
inc ebx
push eax
add ebp, ebx
push ebp
call fcn.004055c4
add esp, 0xc
add ebx, 4
mov eax, dword [esi]
mov byte [eax + ebx], 0x68
inc ebx
push 4
push 0x4620bc
add eax, ebx
push eax
call fcn.004055c4
add esp, 0xc
add ebx, 4
mov eax, dword [esi]
mov byte [eax + ebx], 0x68
inc ebx
push 4
lea edx, [esp + 0xc]
push edx
add eax, ebx
push eax
call fcn.004055c4
add esp, 0xc
add ebx, 4
mov eax, dword [esi]
mov byte [eax + ebx], 0x68
inc ebx
push 4
lea edx, [esp + 0x1c]
push edx
add eax, ebx
push eax
call fcn.004055c4
add esp, 0xc
add ebx, 4
mov eax, dword [esi]
mov byte [eax + ebx], 0xff
inc ebx
mov byte [eax + ebx], 0x15
inc ebx
push 4
lea edx, [esp + 0x20]
push edx
add eax, ebx
push eax
call fcn.004055c4
mov eax, dword [esi]
add ebx, 4
mov ecx, edi
add esp, 0xc
mov byte [eax + ebx], 0x8b
inc ebx
mov byte [eax + ebx], 0xe5
inc ebx
mov byte [eax + ebx], 0x5d
inc ebx
mov byte [eax + ebx], 0x8b
inc ebx
mov byte [eax + ebx], 0xe5
inc ebx
mov byte [eax + ebx], 0x5d
inc ebx
mov byte [eax + ebx], 0x83
inc ebx
mov byte [eax + ebx], 0xc4
inc ebx
mov byte [eax + ebx], 8
inc ebx
mov byte [eax + ebx], 0xe9
inc ebx
mov edx, dword [esi]
mov edi, edx
sub edi, ecx
sub edi, 5
mov dword [0x4620c8], edi
mov edi, ecx
mov ecx, dword [esp + 0x30]
add ecx, dword [0x461e18]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xc]
sub ecx, edx
lea edx, [ebx + 4]
sub ecx, edx
add ebx, eax
mov dword [esp + 0x20], ecx
push 4
lea edx, [esp + 0x24]
push edx
push ebx
call fcn.004055c4
add esp, 0xc
mov byte [esp + 0x24], 0xe9
push 4
push 0x4620c8
lea eax, [esp + 0x2d]
push eax
call fcn.004055c4
add esp, 0xc
push 0
push 5
lea ecx, [esp + 0x2c]
push ecx
push edi
mov eax, dword [esp + 0x28]
push eax
call sub.KERNEL32.DLL_WriteProcessMemory
jmp 0x401fe2
push 0x10
push 0x45da0e
push str.Cant___from_Res_
push 0
call sub.USER32.DLL_MessageBoxA
xor eax, eax
add esp, 0x330
pop ebp
pop edi
pop esi
pop ebx
ret