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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427ecb
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x120
mov eax, dword [0x439014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xec], ecx
mov eax, dword [ebx + 8]
mov dword [ebp - 0xf4], eax
mov dword [ebp - 4], 1
xor edi, edi
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0xc]
sub edx, eax
sar edx, 2
mov dword [ebp - 0xf0], edi
test edx, edx
je 0x406050
lea eax, [ecx + 0xc8]
mov dword [ebp - 0xfc], eax
nop
push 0xd0
lea eax, [ebp - 0xe8]
push 0
push eax
call fcn.0040dea0
add esp, 8
lea ecx, [ebp - 0xe8]
call fcn.004012e0
push 0x40
push 0x1000
push 0x38
push 0
mov dword [ebp - 0xe8], vtable.TControl.0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
xorps xmm0, xmm0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0xe8], vtable.TCheckBox.0
movups xmmword [ebp - 0x28], xmm0
push 0xd0
mov byte [ebp - 4], 2
call fcn.0040c3fe
mov esi, eax
add esp, 4
mov dword [ebp - 0x100], esi
push 0xd0
push 0
push esi
mov byte [ebp - 4], 3
call fcn.0040dea0
add esp, 8
mov ecx, esi
call fcn.004012e0
push 0x40
push 0x1000
push 0x38
push 0
mov dword [esi], vtable.TControl.0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp - 0xec]
mov dword [esi + 0xb8], eax
lea eax, [edi*4]
mov dword [ebp - 0xf8], eax
mov dword [esi], vtable.TCheckBox.0
mov dword [esi + 0xc0], 0
lea ecx, [ecx + 0xe8]
mov dword [esi + 0xc4], 0
mov dword [esi + 0xc8], 0
mov dword [esi + 0xcc], 0
mov byte [ebp - 4], 2
mov eax, dword [ebx + 0xc]
lea eax, [eax + edi*4]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004062b0
mov eax, dword [eax]
mov ecx, dword [eax + 0xc]
mov dword [eax + 0xc], esi
test ecx, ecx
je 0x405f02
mov eax, dword [ecx]
push 1
call dword [eax + 0x1c]
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0xec]
lea esi, [eax + edi*4]
push esi
lea eax, [ebp - 0x110]
push eax
lea ecx, [ecx + 0xe8]
call fcn.004062b0
push dword [esi]
push dword [ebp - 0xf4]
mov eax, dword [eax]
mov edi, dword [eax + 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, edi
mov dword [edi + 0x38], eax
mov dword [edi + 0x30], esi
call fcn.00405a30
mov ecx, dword [ebx + 0x18]
mov edi, dword [ebp - 0xf8]
mov eax, dword [ebx + 0xc]
add eax, edi
push eax
mov esi, dword [ecx + edi]
lea eax, [ebp - 0x118]
mov ecx, dword [ebp - 0xec]
push eax
lea ecx, [ecx + 0xe8]
call fcn.004062b0
mov ecx, dword [ebp - 0xec]
mov eax, dword [eax]
lea ecx, [ecx + 0xe8]
mov dword [eax + 0x10], esi
mov eax, dword [ebx + 0xc]
add eax, edi
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.004062b0
push 0xfffffffffffffff0
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
push dword [esi + 0x30]
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xfffffff6
push eax
push 0xfffffffffffffff0
push dword [esi + 0x30]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0xec]
add eax, edi
push eax
lea eax, [ebp - 0x128]
push eax
lea ecx, [ecx + 0xe8]
call fcn.004062b0
push 0xfffffffffffffff0
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
push dword [esi + 0x30]
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 4
push eax
push 0xfffffffffffffff0
push dword [esi + 0x30]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0xfc]
add eax, edi
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.00406550
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x406025
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
lea ecx, [ebp - 0xe8]
call fcn.004069b0
mov ecx, dword [ebx + 0x10]
mov edi, dword [ebp - 0xf0]
mov eax, dword [ebx + 0xc]
inc edi
sub ecx, eax
mov dword [ebp - 0xf0], edi
sar ecx, 2
cmp edi, ecx
jb 0x405df0
test eax, eax
je 0x406095
mov edx, dword [ebx + 0x14]
mov ecx, eax
sub edx, eax
and edx, 0xfffffffc
cmp edx, 0x1000
jb 0x406076
mov eax, dword [eax - 4]
add edx, 0x23
sub ecx, eax
add ecx, 0xfffffffc
cmp ecx, 0x1f
ja 0x4060e8
push edx
push eax
call fcn.0040c67f
add esp, 8
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov edx, dword [ebx + 0x18]
test edx, edx
je 0x4060c8
mov ecx, dword [ebx + 0x20]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x4060be
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4060e8
push ecx
push edx
call fcn.0040c67f
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040c3e8
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x1c
call fcn.00410dc5
int3