Function at 0x40cfe0
Capabilities:
Create process on windows

Disassembly:
jmp 0x40cfe0
mov eax, 0x15c8
call fcn.0041be90
mov eax, dword [0x44e1b4]
xor eax, esp
mov dword [esp + 0x15c4], eax
push esi
mov esi, dword [esp + 0x15d0]
push 0x400
lea eax, [esp + 0xd1c]
push 0
push eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], esi
call fcn.0041be10
push 0x400
lea ecx, [esp + 0x928]
push 0
push ecx
call fcn.0041be10
push 0x200
lea edx, [esp + 0x7c]
push 0
push edx
call fcn.0041be10
push 0x208
lea eax, [esp + 0x288]
push 0
push eax
call fcn.0041be10
push 0x4b0
lea ecx, [esp + 0x49c]
push 0
push ecx
call fcn.0041be10
push 0x4b0
lea edx, [esp + 0x1158]
push 0
push edx
call fcn.0041be10
xor eax, eax
add esp, 0x48
push 0x44
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
push eax
call fcn.0041be10
add esp, 0xc
test esi, esi
jne 0x40d13b
lea ecx, [esp + 8]
push ecx
push str.setup.ini
call fcn.004010e1
add esp, 8
test eax, eax
mov dword [esp + 4], eax
jne 0x40d12c
mov eax, dword [0x486304]
push 0x100
lea edx, [esp + 0xd1c]
push edx
push 0x452
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
push str.setup.ini
lea ecx, [esp + 0xd1c]
push ecx
lea edx, [esp + 0x920]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
push esi
lea eax, [esp + 0x928]
push eax
push esi
call fcn.004010be
add esp, 0x18
lea eax, [esi + 1]
pop esi
mov ecx, dword [esp + 0x15c4]
xor ecx, esp
call fcn.0041bdf4
add esp, 0x15c8
ret
mov eax, dword [esp + 8]
test eax, eax
je 0x40d13b
mov dword [esp + 0x15d4], eax
mov ecx, dword [esp + 0x15d4]
push ebx
push ebp
push edi
mov edi, dword [esp + 0x10]
push str.StartCom
push ecx
push edi
call fcn.0040120d
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40d2e8
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x6c]
push edx
push esi
call fcn.00401023
lea eax, [esp + 0x74]
push 0x435be4
push eax
call fcn.0041bd96
add esp, 0x10
test eax, eax
je 0x40d233
mov eax, 0x44f818
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d195
sub eax, edx
sar eax, 1
lea ecx, [eax*2 + 0x44f816]
push ecx
push 0x44f818
call fcn.00401113
lea edx, [esp + 0x74]
mov edi, eax
push edx
mov eax, edx
push eax
call fcn.00401113
mov ebx, eax
mov ecx, ebx
add esp, 0x10
or ecx, edi
je 0x40d1f4
push 0x4358cc
lea edx, [esp + 0x270]
push 0x104
push edx
call fcn.0041c22f
add esp, 0xc
cmp edi, ebx
jne 0x40d20e
lea eax, [esp + 0x6e]
jmp 0x40d212
push 0x4358d8
lea eax, [esp + 0x270]
push 0x104
push eax
call fcn.0041c22f
add esp, 0xc
lea eax, [esp + 0x6c]
push eax
push 0x44f818
lea ecx, [esp + 0x274]
push ecx
lea edx, [esp + 0x480]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x40d24d
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x478]
push 0x258
push ecx
call fcn.0041c22f
add esp, 0xc
lea edx, [esp + 0x1124]
push edx
push 0x44f400
lea eax, [esp + 0x47c]
push str._InsFolder_
push eax
call fcn.00401203
add esp, 0x10
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0
push 0
push 0x20
push 0
push 0
push 0
lea eax, [esp + 0x1144]
push eax
push 0
mov dword [esp + 0x50], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40d30f
mov ecx, dword [esp + 0x1c]
push ecx
call ebp
mov edx, dword [esp + 0x18]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x18]
push eax
call ebp
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x15e0]
mov ecx, esi
sub ecx, edi
sar ecx, 1
push str.StartCom
sub edx, ecx
push edx
push esi
call fcn.0040120d
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40d168
push edi
call fcn.004012bc
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x15d4]
pop edi
pop ebp
pop ebx
pop esi
xor ecx, esp
call fcn.0041bdf4
add esp, 0x15c8
ret
xor eax, eax
jmp 0x40d2f6