Function at 0x40d190
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c60df
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x4f4de0]
xor eax, esp
mov dword [esp + 0xc0], eax
push ebx
push esi
push edi
mov eax, dword [0x4f4de0]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
xor edi, edi
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], eax
cmp esi, edi
je 0x40d5c4
cmp eax, edi
je 0x40d5c4
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x28], edi
call fcn.00404050
lea ecx, [esp + 0x14]
mov dword [esp + 0xe0], edi
call fcn.004050f0
push esi
lea ecx, [esp + 0xb8]
call fcn.004068d0
mov byte [esp + 0xe0], 1
mov ecx, dword [esp + 0xcc]
mov edx, dword [esp + 0xb8]
mov dword [esp + 0x20], 0x22
mov eax, edx
cmp ecx, 8
jae 0x40d24a
lea eax, [esp + 0xb8]
mov ebx, dword [esp + 0xc8]
lea esi, [eax + ebx*2]
mov dword [esp + 0x44], esi
cmp esi, edi
je 0x40d283
mov eax, edx
cmp ecx, 8
jae 0x40d26a
lea eax, [esp + 0xb8]
cmp eax, esi
ja 0x40d283
mov eax, edx
cmp ecx, 8
jae 0x40d27c
lea eax, [esp + 0xb8]
lea eax, [eax + ebx*2]
cmp esi, eax
jbe 0x40d29d
call fcn.00497857
mov ecx, dword [esp + 0xcc]
mov edx, dword [esp + 0xb8]
mov ebx, dword [esp + 0xc8]
mov eax, edx
cmp ecx, 8
jae 0x40d2ab
lea eax, [esp + 0xb8]
lea edi, [eax + ebx*2]
test edi, edi
je 0x40d2d9
mov eax, edx
cmp ecx, 8
jae 0x40d2c0
lea eax, [esp + 0xb8]
cmp eax, edi
ja 0x40d2d9
mov eax, edx
cmp ecx, 8
jae 0x40d2d2
lea eax, [esp + 0xb8]
lea eax, [eax + ebx*2]
cmp edi, eax
jbe 0x40d2ec
call fcn.00497857
mov ecx, dword [esp + 0xcc]
mov edx, dword [esp + 0xb8]
lea ebx, [esp + 0xb4]
cmp ecx, 8
jb 0x40d3c2
mov esi, edx
test edx, edx
je 0x40d330
mov eax, edx
cmp ecx, 8
jae 0x40d310
lea eax, [esp + 0xb8]
cmp eax, esi
ja 0x40d330
mov eax, edx
cmp ecx, 8
jae 0x40d322
lea eax, [esp + 0xb8]
mov ecx, dword [esp + 0xc8]
lea edx, [eax + ecx*2]
cmp esi, edx
jbe 0x40d335
call fcn.00497857
push edi
push ebx
push esi
lea eax, [esp + 0xc0]
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x78]
push ecx
call fcn.00413ed0
mov edx, dword [esp + 0x5c]
add esp, 0x18
push edx
mov edx, dword [eax]
lea ecx, [esp + 0xb8]
push ecx
mov ecx, dword [eax + 4]
push ecx
push edx
lea eax, [esp + 0x54]
push eax
lea edi, [esp + 0xc8]
call fcn.00409860
cmp dword [esp + 0xcc], 8
mov ebx, dword [esp + 0xb8]
jae 0x40d38f
lea ebx, [esp + 0xb8]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
test eax, eax
jl 0x40d3ce
push str.launchwinapp.exe
push ecx
call fcn.00498dc6
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x40d3ce
sub eax, ecx
sar eax, 1
test eax, eax
jle 0x40d3ce
mov edi, 2
jmp 0x40d5ee
lea esi, [esp + 0xb8]
jmp 0x40d302
cmp dword [ecx - 0xc], 0
jl 0x40d5ea
push str.360chrome.exe
push ecx
call fcn.00498dc6
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x40d400
sub eax, ecx
sar eax, 1
test eax, eax
jle 0x40d400
mov edx, 5
jmp 0x40d57d
cmp dword [ecx - 0xc], 0
jl 0x40d5ea
push str.chrome.exe
push ecx
call fcn.00498dc6
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x40d435
sub eax, ecx
sar eax, 1
test eax, eax
jle 0x40d435
mov edi, 2
lea edx, [edi - 1]
jmp 0x40d582
cmp dword [ecx - 0xc], 0
jl 0x40d5ea
push str.360se.exe
push ecx
call fcn.00498dc6
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x40d46a
sub eax, ecx
sar eax, 1
test eax, eax
jle 0x40d46a
mov edi, 2
lea edx, [edi + 3]
jmp 0x40d582
cmp dword [ecx - 0xc], 0
jl 0x40d5ea
push str.iexplore.exe
push ecx
call fcn.00498dc6
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x40d49c
sub eax, ecx
sar eax, 1
test eax, eax
jle 0x40d49c
mov edi, 2
jmp 0x40d5ee
cmp dword [ecx - 0xc], 0
jl 0x40d5ea
push str.360browser.exe
push ecx
call fcn.00498dc6
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x40d4d6
sub eax, ecx
sar eax, 1
test eax, eax
jle 0x40d4d6
mov dword [esp + 0x24], str.360browser.exe
mov edx, 5
jmp 0x40d57d
cmp dword [ecx - 0xc], 0
jl 0x40d5ea
push str.browser.exe
push ecx
call fcn.00498dc6
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x40d50f
sub eax, ecx
sar eax, 1
test eax, eax
jle 0x40d50f
mov edi, 3
mov dword [esp + 0x24], str.browser.exe
mov edx, edi
jmp 0x40d582
cmp dword [ecx - 0xc], 0
jl 0x40d5ea
push str.launcher.exe
push ecx
call fcn.00498dc6
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x40d546
sub eax, ecx
sar eax, 1
test eax, eax
jle 0x40d546
mov dword [esp + 0x24], str.opera.exe
mov edx, 2
jmp 0x40d57d
cmp dword [ecx - 0xc], 0
jl 0x40d5ea
push str.firefox.exe
push ecx
call fcn.00498dc6
add esp, 8
test eax, eax
je 0x40d5ea
sub eax, dword [esp + 0x14]
sar eax, 1
test eax, eax
jle 0x40d5ea
mov dword [esp + 0x24], str.firefox.exe
mov edx, 6
mov edi, 3
mov ecx, ebx
call fcn.0040cb80
test al, al
jne 0x40d5ee
lea ecx, [esp + 0xb4]
call fcn.00405450
mov dword [esp + 0xe0], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d5c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.00497941
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
push esi
lea ecx, [esp + 0x1c]
call fcn.00404050
mov byte [esp + 0xe0], 2
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x40d622
push esi
lea edx, [esp + 0x1c]
push str.__s_
push edx
call fcn.004048a0
add esp, 0xc
call fcn.004075b0
test al, al
jne 0x40d68b
mov eax, dword [esp + 0x18]
push 1
push 0
push eax
push ebx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
lea ecx, [esp + 0x18]
jle 0x40d66c
call fcn.00404550
lea ecx, [esp + 0xb4]
call fcn.00405450
lea ecx, [esp + 0x14]
call fcn.00404550
mov al, 1
jmp 0x40d5c6
call fcn.00404550
lea ecx, [esp + 0xb4]
call fcn.00405450
lea ecx, [esp + 0x14]
call fcn.00404550
jmp 0x40d5c4
xor eax, eax
push 0x40
push eax
lea ecx, [esp + 0x78]
push ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x78], eax
call fcn.00497680
mov edx, dword [0x4fc0d8]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x4fc0d8
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x40]
mov byte [esp + 0xe0], 3
cmp word [eax], 0x22
push eax
je 0x40d6e7
push str.__s_
lea ecx, [esp + 0x28]
push ecx
jmp 0x40d6f1
push 0x4d7498
lea edx, [esp + 0x28]
push edx
call fcn.004048a0
mov eax, dword [0x4fc0d8]
mov edx, dword [eax + 0xc]
add esp, 0xc
mov ecx, 0x4fc0d8
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0xe0], 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push eax
push ecx
lea edx, [esp + 0x24]
push str._s__s
push edx
call fcn.004048a0
add esp, 0x10
lea ecx, [esp + 0x1c]
call fcn.00409990
mov ecx, eax
call fcn.004099e0
mov ecx, eax
call fcn.00404370
mov esi, eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.00498625
add esp, 8
test eax, eax
jl 0x40d8e9
mov ecx, dword [esp + 0x1c]
cmp eax, dword [ecx - 8]
jg 0x40d8e9
mov dword [ecx - 0xc], eax
mov edx, dword [esp + 0x1c]
xor ecx, ecx
mov word [edx + eax*2], cx
cmp edi, 1
jne 0x40d7fc
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x70]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40d7b6
push eax
call edi
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40d7c1
push eax
call edi
lea ecx, [esp + 0x1c]
call fcn.00404550
lea ecx, [esp + 0x20]
call fcn.00404550
lea ecx, [esp + 0x18]
call fcn.00404550
lea ecx, [esp + 0xb4]
call fcn.00405450
lea ecx, [esp + 0x14]
call fcn.00404550
cmp esi, 1
sete al
jmp 0x40d5c6
cmp edi, 2
jne 0x40d847
push esi
call fcn.00408df0
add esp, 4
cmp eax, 1
sete bl
lea ecx, [esp + 0x1c]
call fcn.00404550
lea ecx, [esp + 0x20]
call fcn.00404550
lea ecx, [esp + 0x18]
call fcn.00404550
lea ecx, [esp + 0xb4]
call fcn.00405450
lea ecx, [esp + 0x14]
call fcn.00404550
mov al, bl
jmp 0x40d5c6
cmp edi, 3
jne 0x40d801
lea ecx, [esp + 0x4c]
call fcn.00410520
mov edx, dword [esp + 0x24]
push edx
lea ecx, [esp + 0x50]
mov byte [esp + 0xe4], 5
call fcn.00408ae0
add esp, 4
test eax, eax
je 0x40d8cc
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x58]
test eax, 0xfffffffc
je 0x40d8cc
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x70]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40d8b3
push eax
call edi
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40d8be
push eax
call edi
lea ecx, [esp + 0x4c]
call fcn.00409650
jmp 0x40d7c1
push esi
call fcn.00408df0
add esp, 4
cmp eax, 1
lea ecx, [esp + 0x4c]
sete bl
call fcn.00409650
jmp 0x40d810
push 0x80070057
call fcn.00404ce0
int3