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

Disassembly:
push 0xffffffffffffffff
push 0x462b60
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47c748]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
mov esi, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x50], 1
mov eax, dword [esi + 0xd8]
push eax
xor ebx, ebx
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
mov dword [esi + 0xdc], eax
push ebx
lea edx, [esp + 0xa0]
mov ebp, 0xf
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.00401900
mov ecx, esi
call fcn.0040db80
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x44], esp
push 0xffffffffffffffff
mov dword [esp + 0x34], eax
push ebx
lea eax, [esp + 0xa0]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00401900
lea ecx, [esp + 0x48]
call fcn.0040de40
mov ebp, dword [eax + 0x14]
shr ebp, 1
cmp dword [esp + 0x44], 0x10
mov dword [esp + 0x1c], ebp
jb 0x40d2f6
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00417eb0
add esp, 4
mov edx, dword [esp + 0x20]
cmp dword [edx], ebx
jne 0x40d52c
mov eax, dword [edi]
cmp eax, ebx
je 0x40d30d
mov dword [0x482078], eax
mov eax, dword [esi + 0xd8]
push eax
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x40
push 0x1000
push 0x512
push ebx
push eax
mov dword [esi + 0xdc], eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
mov dword [edi], eax
push ebx
lea edx, [esp + 0x84]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.00401900
lea ecx, [esp + 0x48]
call fcn.0040de40
mov ebp, dword [eax + 0x14]
shr ebp, 1
cmp dword [esp + 0x44], 0x10
jb 0x40d384
mov eax, dword [esp + 0x30]
push eax
call fcn.00417eb0
add esp, 4
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [esp + 0x1c]
mov ecx, dword [edi]
push edx
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
call fcn.0040ee50
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
sub ecx, dword [edi]
push 5
sub ecx, ebp
lea eax, [ecx + edx - 5]
mov dword [esp + 0x28], eax
call fcn.00417eb5
mov ecx, dword [esp + 0x28]
sub esp, 0x18
mov dword [eax + 1], ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push 0xffffffffffffffff
mov byte [eax], 0xe9
push ebx
lea edx, [esp + 0x84]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edx
mov dword [esp + 0x50], eax
mov byte [ecx + 4], bl
call fcn.00401900
mov ecx, esi
call fcn.0040db80
mov ecx, dword [esi + 0xdc]
push ebx
push ebp
push eax
mov eax, dword [edi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40d5e9
mov ecx, dword [edi]
mov eax, dword [esp + 0x28]
mov edx, dword [esi + 0xdc]
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push ebx
push 5
push eax
add ecx, ebp
push ecx
push edx
call edi
test eax, eax
jne 0x40d496
mov eax, dword [esi + 0x8c]
mov ecx, dword [esi + 0xb4]
push 0x30
push eax
push ecx
mov ecx, esi
call fcn.0041f061
mov esi, 0x10
cmp dword [esp + 0x78], esi
jb 0x40d46c
mov edx, dword [esp + 0x64]
push edx
call fcn.00417eb0
add esp, 4
cmp dword [esp + 0x94], esi
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
jb 0x40d641
mov eax, dword [esp + 0x80]
push eax
jmp 0x40d639
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push ebx
push ecx
mov ecx, dword [eax]
push edx
mov edx, dword [esi + 0xdc]
push ecx
push edx
call edi
test eax, eax
jne 0x40d4e3
mov eax, dword [esi + 0x8c]
mov ecx, dword [esi + 0xb4]
push 0x30
push eax
push ecx
mov ecx, esi
call fcn.0041f061
lea ecx, [esp + 0x60]
call fcn.00403590
lea ecx, [esp + 0x7c]
call fcn.00403590
jmp 0x40d641
mov eax, dword [0x482078]
cmp eax, ebx
mov edx, dword [esp + 0x20]
mov dword [edx], 1
je 0x40d502
push eax
call fcn.0040ef40
mov dword [0x482078], ebx
cmp dword [esp + 0x98], ebx
je 0x40d510
call fcn.0040db40
lea ecx, [esp + 0x60]
call fcn.00403590
lea ecx, [esp + 0x7c]
call fcn.00403590
mov eax, 1
jmp 0x40d643
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
push ebx
push ebp
push eax
mov eax, dword [esi + 0xdc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40d5e9
mov ecx, dword [esi + 0xd8]
mov ebp, dword [edi]
push ecx
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x8000
push ebx
push ebp
push eax
mov dword [esi + 0xdc], eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp dword [esp + 0x98], ebx
je 0x40d599
push 0x40005
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0x8a
call dword [sym.imp.WINMM.dll_PlaySoundW]
mov edx, dword [esp + 0x20]
mov esi, 0x10
cmp dword [esp + 0x78], esi
mov dword [edi], ebx
mov dword [edx], ebx
jb 0x40d5b9
mov eax, dword [esp + 0x64]
push eax
call fcn.00417eb0
add esp, 4
cmp dword [esp + 0x94], esi
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
jb 0x40d5e2
mov ecx, dword [esp + 0x80]
push ecx
call fcn.00417eb0
add esp, 4
mov eax, 1
jmp 0x40d643
mov edx, dword [esi + 0x8c]
mov eax, dword [esi + 0xb4]
push 0x30
push edx
push eax
mov ecx, esi
call fcn.0041f061
mov esi, 0x10
cmp dword [esp + 0x78], esi
jb 0x40d618
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00417eb0
add esp, 4
cmp dword [esp + 0x94], esi
mov byte [esp + 0x64], bl
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], 0xf
jb 0x40d641
mov edx, dword [esp + 0x80]
push edx
call fcn.00417eb0
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 0x44