Function at 0x491520
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
push 0x100
call fcn.00495d70
add esp, 4
test eax, eax
je 0x49155e
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
setg al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 6
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x4918e7
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 0
push eax
push 0x4fadfc
push 4
push 0
push 0x500050
mov dword [ebp - 0x14], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x49166a
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x491677
lea edx, [ebp - 4]
mov dword [ebp - 0x18], 0
push edx
push 1
xor eax, eax
lea edx, [ebp - 0x18]
push edx
push 8
lea edx, [ebp - 0x58]
mov dword [ebp - 0x58], eax
push edx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], eax
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x3c]
test eax, eax
mov eax, dword [ebp - 4]
jne 0x49165b
test eax, eax
je 0x49165b
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push ecx
push 0x4fadcc
push 0x500040
push eax
call dword [sym.imp.SHLWAPI.dll_IUnknown_QueryService]
mov esi, eax
test esi, esi
js 0x491649
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x491656
mov dword [ebp - 0xc], 0
lea edx, [ebp - 0xc]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x3c]
mov esi, eax
test esi, esi
js 0x49163c
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x491649
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x4fadec
push eax
call dword [ecx]
mov esi, eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x491649
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x491656
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
jmp 0x491660
mov esi, 0x80004005
test eax, eax
je 0x49166a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x491677
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
js 0x4918d4
mov eax, dword [ebp - 8]
test eax, eax
je 0x4918d4
lea edx, [ebp - 0xc]
mov dword [ebp - 4], 0
mov ecx, dword [eax]
push edx
push 0x4fada4
push 0
push eax
mov dword [ebp - 0xc], 0
call dword [ecx + 0x3c]
mov esi, eax
test esi, esi
js 0x491720
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x49172d
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov eax, dword [ecx]
push edx
push 0x4faddc
push ecx
call dword [eax]
mov esi, eax
test esi, esi
js 0x491713
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x491720
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
js 0x491706
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x491713
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x4faf8c
push eax
call dword [ecx]
mov esi, eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x491713
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x491720
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x49172d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
js 0x4918c7
cmp dword [ebp - 4], 0
je 0x4918d4
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00490420
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.00490420
push dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
call fcn.00490420
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
call fcn.00490420
cmp dword [ebp - 0x14], 0
je 0x4918ae
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantClear]
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x28]
push eax
call ebx
mov eax, dword [ebp - 0x10]
mov esi, 8
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x48]
push eax
mov word [ebp - 0x28], si
call ebx
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x38]
push eax
mov word [ebp - 0x48], si
mov dword [ebp - 0x40], edi
call ebx
lea eax, [ebp - 0x58]
mov word [ebp - 0x38], si
mov esi, dword [ebp - 0xc]
push eax
mov dword [ebp - 0x30], esi
call ebx
mov ebx, dword [ebp + 0x18]
sub esp, 0x10
mov edx, esp
mov dword [ebp - 0x50], ebx
mov eax, 3
sub esp, 0x10
mov word [ebp - 0x58], ax
mov ecx, dword [ebp - 0x58]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x54]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x4c]
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ecx
mov edx, esp
mov ecx, dword [ebp - 0x28]
sub esp, 0x10
mov eax, dword [ebp - 4]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x24]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x20]
mov dword [edx + 8], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [edx + 0xc], ecx
mov edx, esp
mov ecx, dword [ebp - 0x38]
sub esp, 0x10
mov dword [edx], ecx
mov ecx, dword [ebp - 0x34]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x30]
mov dword [edx + 8], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [edx + 0xc], ecx
mov edx, esp
mov ecx, dword [ebp - 0x48]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x44]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x40]
push dword [ebp - 0x14]
mov dword [edx + 8], ecx
mov ecx, dword [ebp - 0x3c]
push eax
mov eax, dword [eax]
mov dword [edx + 0xc], ecx
call dword [eax + 0x7c]
test eax, eax
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
setns bl
call esi
push edi
call esi
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x491898
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x4918a5
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0xc]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x18]
call esi
push 0
call esi
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x4918d4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 8]
test eax, eax
je 0x4918e7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret