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

Disassembly:
push 0xffffffffffffffff
push 0x447bd8
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x45636c]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45636c]
xor eax, esp
push eax
lea eax, [esp + 0x28c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x29c]
mov ebp, dword [esp + 0x2a0]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
lea edx, [esp + 0x20]
xor edi, edi
push edx
mov dword [esp + 0x298], edi
push ebp
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x20]
push eax
push edi
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
je 0x40f065
push 4
push 0x1000
push 0x40
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push esi
call edi
push 4
push 0x1000
push 0x200
push 0
push esi
mov ebx, eax
call edi
push 4
push 0x1000
push 0x10
push 0
push esi
mov dword [esp + 0x30], eax
call edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x40f05e
test ebx, ebx
je 0x40f05e
mov eax, dword [esp + 0x1c]
push 0
push 0
cdq
push 0x1004
push ebp
mov dword [esp + 0x54], 1
mov dword [esp + 0x74], 0x200
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], edx
call dword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
mov dword [esp + 0x28], eax
test eax, eax
jle 0x40f02f
push 0
push 0x40
lea ecx, [esp + 0x4c]
push ecx
push ebx
push esi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], 0
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push ebx
push edi
push 0x102d
push ebp
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x1c]
push 0
push 0x200
lea edx, [esp + 0x8c]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x88]
call fcn.00405980
mov ecx, dword [esp + 0x2a4]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x40efb1
mov eax, dword [esp + 0x18]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40ef76
test dx, dx
je 0x40ef72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40ef76
add eax, 4
add ecx, 4
test dx, dx
jne 0x40ef50
xor eax, eax
jmp 0x40ef7b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x40efbb
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40efa4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc edi
cmp edi, dword [esp + 0x28]
jl 0x40eee0
jmp 0x40f02f
push 0x80004005
call fcn.00401090
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
push edx
push edi
push 0x100e
push ebp
mov dword [ecx], edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x14]
push 0
push 0x10
lea eax, [esp + 0x3c]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [eax], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x24], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f02f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x8000
push 0
push ebx
push esi
call edi
mov ecx, dword [esp + 0x1c]
push 0x8000
push 0
push ecx
push esi
call edi
mov edx, dword [esp + 0x14]
push 0x8000
push 0
push edx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x294], 0xffffffff
mov eax, dword [esp + 0x2a4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f093
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.0042a9a5
add esp, 0x284
ret 0xc