Function at 0x401dab
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40cb94
mov eax, dword fs:[0]
push eax
mov eax, 0x30b0
call fcn.0040c7e0
mov eax, dword [0x411398]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x3078], eax
mov dword [ebp - 0x3074], ebx
cmp eax, ebx
je 0x402180
cmp byte [eax], bl
je 0x402180
mov esi, 0x40f460
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x40f46c
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
push 0x38
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x30b4]
push ebx
push eax
movsw word es:[edi], word [esi]
mov byte [ebp - 0x306d], 1
mov dword [ebp - 0x30b8], ebx
call fcn.00405470
add esp, 0xc
lea esi, [ebp - 0x306c]
call fcn.00402283
lea esi, [ebp - 0x304c]
mov dword [ebp - 4], ebx
call fcn.00402283
mov eax, dword [ebp - 0x3078]
mov byte [ebp - 4], 1
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401e5a
sub eax, esi
mov esi, eax
lea eax, [esi + 0x14]
mov edi, 0x800
mov dword [ebp - 0x307c], esi
cmp eax, edi
jbe 0x401eb1
lea ecx, [ebp - 0x3030]
call fcn.00402473
push ebx
push 1
lea ecx, [ebp - 0x304c]
call fcn.004017fe
lea ecx, [ebp - 0x3050]
call fcn.00402473
push ebx
push 1
lea ecx, [ebp - 0x306c]
call fcn.004017fe
push 0x6f
pop eax
jmp 0x402182
mov ecx, dword [ebp - 0x3078]
xor eax, eax
mov word [ebp - 0x302c], ax
call fcn.0040199d
test al, al
je 0x401f00
cmp esi, 0x103
jle 0x401f00
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x102c]
push edi
push eax
call fcn.0040467d
lea eax, [ebp - 0x102c]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x401eee
sub eax, edx
sar eax, 1
mov esi, eax
jmp 0x401f02
xor esi, esi
mov eax, edi
sub eax, esi
push eax
lea eax, [ebp + esi*2 - 0x102c]
push eax
push dword [ebp - 0x307c]
push dword [ebp - 0x3078]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x307c]
add esi, eax
xor eax, eax
mov word [ebp + esi*2 - 0x102c], ax
lea eax, [ebp - 0x102c]
cmp word [ebp - 0x102c], bx
je 0x401f64
movzx ecx, word [eax]
push 0x5c
pop edx
cmp dx, cx
je 0x401f57
push 0x2f
pop edx
cmp dx, cx
jne 0x401f5d
push 0x5c
pop ecx
mov word [eax], cx
inc eax
inc eax
cmp word [eax], bx
jne 0x401f44
push dword [ebp - 0x3078]
lea eax, [ebp - 0x304c]
push eax
lea eax, [ebp - 0x306c]
push eax
call fcn.00401a51
add esp, 0xc
cmp dword [ebp - 0x3038], ebx
jne 0x401fc8
call fcn.00401bfc
push 0xffffffffffffffff
mov esi, eax
push ebx
push esi
lea ecx, [ebp - 0x304c]
call fcn.004015fb
mov ecx, dword [ebp - 0x3030]
cmp ecx, dword [esi + 0x1c]
je 0x401fc8
call fcn.00402438
cmp eax, ebx
je 0x401fba
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
mov ecx, dword [esi + 0x1c]
mov dword [ebp - 0x3030], ecx
call fcn.00402410
lea eax, [ebp - 0x304c]
push eax
call fcn.004019ea
pop ecx
lea eax, [ebp - 0x304c]
call fcn.00401cc6
cmp dword [ebp - 0x3038], 0x103
jbe 0x40201b
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x202c]
push edi
push eax
call fcn.0040467d
lea eax, [ebp - 0x202c]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x402009
sub eax, edx
sar eax, 1
mov esi, eax
jmp 0x40201d
xor esi, esi
cmp dword [ebp - 0x3034], 0x10
mov eax, dword [ebp - 0x3048]
jae 0x402032
lea eax, [ebp - 0x3048]
sub edi, esi
push edi
lea ecx, [ebp + esi*2 - 0x202c]
push ecx
push dword [ebp - 0x3038]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x3038]
add eax, esi
xor ecx, ecx
mov word [ebp + eax*2 - 0x202c], cx
call fcn.00401d37
test al, al
jne 0x40206d
mov byte [ebp - 0x306d], bl
movzx eax, byte [ebp - 0x306d]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x2c]
and eax, ecx
mov dword [ebp - 0x30ac], eax
lea eax, [ebp - 0x102c]
mov dword [ebp - 0x30a8], eax
lea eax, [ebp - 0x302c]
mov dword [ebp - 0x30a4], eax
xor edi, edi
push 6
lea eax, [ebp - 0x202c]
inc edi
push ebx
mov dword [ebp - 0x30b8], 0x3c
mov dword [ebp - 0x30b4], 0x40
mov dword [ebp - 0x30b0], ebx
mov dword [ebp - 0x30a0], eax
mov dword [ebp - 0x309c], edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x402146
lea eax, [ebp - 0x30b8]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4020f0
mov dword [ebp - 0x3074], ebx
jmp 0x402100
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3074], eax
cmp eax, ebx
jne 0x40212c
cmp dword [ebp - 0x3080], ebx
je 0x402140
push ebx
push dword [ebp - 0x3080]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40212c
lea eax, [ebp - 0x3074]
push eax
push dword [ebp - 0x3080]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x3080], ebx
je 0x402140
push dword [ebp - 0x3080]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov esi, dword [ebp - 0x3074]
lea ecx, [ebp - 0x3030]
call fcn.00402473
push ebx
push edi
lea ecx, [ebp - 0x304c]
call fcn.004017fe
lea ecx, [ebp - 0x3050]
call fcn.00402473
push ebx
push edi
lea ecx, [ebp - 0x306c]
call fcn.004017fe
mov eax, esi
jmp 0x402182
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00403ce5
leave
ret