Function at 0x401c70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x378
mov eax, dword [0x426004]
xor eax, esp
mov dword [esp + 0x374], eax
push esi
push edi
call fcn.0040be15
cmp dword [eax], 3
jge 0x401d20
call fcn.00401a20
cmp eax, 2
jne 0x401fe9
push 0x104
lea eax, [esp + 0x274]
push 0
push eax
call fcn.00406ca0
add esp, 0xc
lea eax, [esp + 0x270]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x401fee
push 0x38
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 0x3c
push 0
push eax
call fcn.00406ca0
add esp, 0xc
mov dword [esp + 0x18], str.runas
lea eax, [esp + 0x270]
mov dword [esp + 0x28], 1
mov dword [esp + 0x1c], eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
jmp 0x401fee
call fcn.0040be1b
push 0x2e
mov eax, dword [eax]
push dword [eax + 4]
call fcn.0040be21
add esp, 8
test eax, eax
je 0x401fe9
inc eax
push 0x4239c8
push eax
call fcn.0040c013
add esp, 8
test eax, eax
jne 0x401fe9
call fcn.0040be1b
lea ecx, [esp + 0x60]
mov dword [esp + 0x60], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0xf
mov eax, dword [eax]
push dword [eax + 8]
call fcn.00402100
call fcn.0040be1b
lea ecx, [esp + 0x48]
mov eax, dword [eax]
mov eax, dword [eax + 4]
push eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0xf
call fcn.00402100
lea edx, [esp + 0x60]
lea ecx, [esp + 0x48]
call fcn.00401270
mov edx, dword [esp + 0x5c]
mov esi, eax
cmp edx, 0x10
jb 0x401def
mov ecx, dword [esp + 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401de5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402007
push edx
push ecx
call fcn.0040584d
add esp, 8
mov edx, dword [esp + 0x74]
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0xf
mov byte [esp + 0x48], 0
cmp edx, 0x10
jb 0x401e3a
mov ecx, dword [esp + 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401e30
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402007
push edx
push ecx
call fcn.0040584d
add esp, 8
test esi, esi
je 0x401fe9
call fcn.0040be1b
push 0x103
mov eax, dword [eax]
mov eax, dword [eax + 4]
push eax
lea eax, [esp + 0x170]
mov byte [esp + 0x273], 0
push eax
call fcn.0040bd16
add esp, 0xc
lea eax, [esp + 0x168]
push 0x2e
push eax
call fcn.0040be21
add esp, 8
test eax, eax
je 0x401e83
mov byte [eax], 0
push 0x103
lea eax, [esp + 0x16c]
push 0x423a30
push eax
call fcn.0040becf
add esp, 0xc
lea eax, [esp + 0x168]
push 0x103
push 0x4239c4
push eax
call fcn.0040becf
add esp, 0xc
mov dword [esp + 8], 0
lea eax, [esp + 0x168]
push 0x423b6c
push eax
lea eax, [esp + 0x10]
push eax
call fcn.004088de
add esp, 0xc
test eax, eax
je 0x401f16
mov dword [esi + 0x3c], 0
lea eax, [esp + 0x168]
mov dword [esi + 0x38], eax
mov ecx, esi
mov eax, dword [esi]
push 1
mov dword [esi + 0x30], 4
call dword [eax + 0x3c]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x374]
xor ecx, esp
call fcn.0040583f
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [esp + 8]
mov dword [esi + 0x3c], 0
test edi, edi
jne 0x401f57
lea eax, [esp + 0x168]
mov dword [esi + 0x30], 4
mov dword [esi + 0x38], eax
mov ecx, esi
mov eax, dword [esi]
push 1
call dword [eax + 0x3c]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x374]
xor ecx, esp
call fcn.0040583f
mov esp, ebp
pop ebp
ret 0x10
sub esp, 8
mov dword [esi + 0x30], 0
lea ecx, [esp + 0x80]
mov dword [esi + 0x38], 0
push edi
call fcn.00404420
mov eax, dword [esi]
lea ecx, [esp + 0x78]
push ecx
mov ecx, esi
call dword [eax + 0x38]
mov eax, dword [esp + 0x148]
lea ecx, [esp + 0x14c]
mov dword [esp + 0x78], vtable.tinyxml2::XMLPrinter.0
cmp eax, ecx
je 0x401fa4
push eax
call fcn.0041b761
add esp, 4
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x84]
cmp eax, ecx
je 0x401fbf
push eax
call fcn.0041b761
add esp, 4
push edi
call fcn.00408c7a
mov eax, dword [esi]
add esp, 4
mov ecx, esi
push 1
call dword [eax + 0x3c]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x374]
xor ecx, esp
call fcn.0040583f
mov esp, ebp
pop ebp
ret 0x10
call fcn.00401950
mov ecx, dword [esp + 0x37c]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.0040583f
mov esp, ebp
pop ebp
ret 0x10
call fcn.0040c401
int3