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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x401680
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
mov ecx, dword [edx + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x2c], ecx
push ecx
mov dword [ebp - 0x28], eax
push eax
call fcn.00401690
add esp, 8
mov dword [ebp - 0x20], eax
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
call fcn.00401850
add esp, 8
push 0x40
push 0x1000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
push dword [ebp - 0x20]
mov esi, dword [ebp - 0x28]
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esi + 0x3c]
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], edi
cmp dword [eax + esi], 0x4550
lea ecx, [eax + esi]
mov esi, 0
cmove esi, ecx
test ebx, ebx
je 0x4014e4
js 0x40164b
push 1
push ebx
call fcn.00401390
add esp, 8
test eax, eax
jne 0x4014e9
push 1
push ebx
call fcn.00420310
add esp, 8
jmp 0x401650
mov eax, 1
mov dword [ebp - 0x30], eax
push ebx
push dword [ebp - 0x28]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x24], esi
movzx esi, word [esi + 6]
mov edi, ebx
test si, si
je 0x401558
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov eax, dword [eax + 0x3c]
lea ebx, [ecx + eax + 0x10c]
nop word [eax + eax]
mov eax, dword [ebx - 4]
mov ecx, dword [ebx]
lea edx, [eax + ecx]
cmp edx, edi
mov edx, dword [ebp - 0x30]
mov edi, 0x421454
lea edx, [edx + ecx]
cmova edx, edi
add ecx, eax
mov ecx, dword [ebx - 8]
cmovb edx, edi
mov edi, dword [ebp - 0x2c]
add ecx, dword [ebp - 0x20]
push eax
push edx
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add ebx, 0x28
dec si
jne 0x401520
mov eax, dword [ebp - 0x30]
test edi, edi
je 0x401574
mov esi, edi
push 1
push edi
push eax
call fcn.004013a0
add esp, 0xc
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x10], 0
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call fcn.004019f0
add esp, 8
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0xa4], 0
je 0x401611
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov eax, dword [eax + 0xa0]
mov edi, dword [eax + ecx + 4]
test edi, edi
je 0x401611
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
mov ecx, edx
lea ebx, [eax + edx + 4]
add eax, edx
sub ecx, dword [esi + 0x34]
jmp 0x4015d6
mov edx, dword [ebp - 0x2c]
mov edi, dword [edx]
lea esi, [eax + edi]
lea ebx, [eax + edi + 4]
mov edi, dword [eax + edi + 4]
mov eax, esi
test edi, edi
je 0x401611
lea esi, [edi - 8]
cmp esi, 2
jb 0x4015c5
shr esi, 1
lea edi, [eax + 8]
mov dword [ebp - 0x2c], ebx
jmp 0x4015f6
add edi, 2
dec esi
je 0x4015c0
movzx ebx, word [edi]
cmp ebx, 0xfff
jbe 0x4015f0
and ebx, 0xfff
mov edx, dword [eax]
add ebx, dword [ebp - 0x20]
add dword [edx + ebx], ecx
jmp 0x4015f0
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x28]
mov dword [ebp - 0x10], 0
add ecx, dword [ebp - 0x20]
call ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
je 0x40163a
push 1
push eax
push dword [ebp - 0x28]
call fcn.004013a0
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00418130
ud2