Function at 0x496190
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x213c
call fcn.0049ebb0
mov eax, dword [0x4c03a0]
xor eax, esp
mov dword [esp + 0x2138], eax
mov eax, dword [esp + 0x214c]
mov ecx, dword [esp + 0x2150]
mov edx, dword [esp + 0x2158]
push ebx
mov ebx, dword [esp + 0x214c]
push ebp
mov ebp, dword [esp + 0x214c]
push esi
mov esi, dword [esp + 0x2168]
push edi
mov edi, dword [esp + 0x2150]
push 0x3c
mov dword [esp + 0x18], eax
lea eax, [esp + 0x20]
push 0
push eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], edx
call fcn.0049ebe0
add esp, 0xc
cmp byte [esp + 0x2164], 0
mov dword [esp + 0x1c], 0x3c
mov dword [esp + 0x20], 0x500
jne 0x49621c
mov dword [esp + 0x20], 0x540
mov dword [esp + 0x2c], edi
test esi, esi
je 0x49622a
mov dword [esp + 0x28], esi
jmp 0x496245
push 0x50
push edi
lea esi, [esp + 0x60]
call fcn.004953d0
movzx ecx, al
neg ecx
sbb ecx, ecx
mov edx, esi
and ecx, edx
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x14]
push edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], eax
call fcn.0044daf0
cmp eax, edi
jne 0x49627c
push edi
lea ecx, [esp + 0x114c]
push str.._s
push ecx
call fcn.0049e635
lea edx, [esp + 0x1154]
add esp, 0xc
mov dword [esp + 0x2c], edx
mov dword [esp + 0x38], 1
call fcn.0043cdb0
test eax, eax
je 0x496370
push ebp
call fcn.00465030
cmp word [eax], 0
jne 0x4962a8
cmp dword [esp + 0x10], 0
je 0x496370
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x496444
push str.ShellExecuteExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x496444
lea eax, [esp + 0x948]
push eax
push ebp
push edi
call fcn.0044dab0
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x49630a
push 0x1000000
lea ecx, [esp + 0xac]
push ecx
push eax
call fcn.0046d830
lea edx, [esp + 0xa8]
mov dword [esp + 0x28], edx
test ebx, ebx
je 0x49632c
push 0x1000000
lea eax, [esp + 0x14c]
push eax
push ebx
call fcn.0046d830
lea ecx, [esp + 0x148]
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x49633a
cmp dword [esp + 0x10], eax
je 0x496351
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1948]
push edx
push ecx
push eax
call fcn.0044dab0
mov dword [esp + 0x30], eax
lea edx, [esp + 0x1c]
push edx
mov byte [0x4dbcad], 1
call esi
test eax, eax
jne 0x49639d
cmp dword [esp + 0x28], eax
je 0x49639d
lea eax, [esp + 0x1c]
push eax
jmp 0x496393
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteExA]
lea ecx, [esp + 0x1c]
push ecx
mov byte [0x4dbcad], 1
call esi
test eax, eax
jne 0x49639d
cmp dword [esp + 0x28], eax
je 0x49639d
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x2c], 0
call esi
mov byte [0x4dbcad], 0
test eax, eax
je 0x496444
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x483
je 0x496444
cmp byte [esp + 0x2164], 0
jne 0x496440
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x4963fa
mov eax, dword [0x4f9ef0]
mov edx, dword [esp + 0x3c]
mov dword [eax*4 + 0x4f9eb0], ecx
mov dword [eax*4 + 0x4f9e70], edx
inc eax
and eax, 0x8000000f
jns 0x4963f3
dec eax
or eax, 0xfffffff0
inc eax
mov dword [0x4f9ef0], eax
jmp 0x496436
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor esi, esi
mov eax, dword [esi + 0x4f9e70]
cmp eax, dword [esp + 0x3c]
jne 0x49642a
mov ecx, dword [esi + 0x4f9eb0]
push 0
push ecx
call edi
cmp eax, 0x102
jne 0x49642a
mov edx, dword [esi + 0x4f9eb0]
mov dword [esp + 0x54], edx
add esi, 4
cmp esi, 0x40
jl 0x496402
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x496440
mov dword [eax], ecx
mov al, 1
jmp 0x496446
xor al, al
mov ecx, dword [esp + 0x2148]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049e626
add esp, 0x213c
ret 0x20