Function at 0x46d270
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508a1b
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x556620]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x24]
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x28]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], 0
mov byte [ebp - 0x9d], 0
test edi, edi
je 0x46d2e6
mov dword [edi], 0
test esi, esi
je 0x46d2f0
mov dword [esi], 0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0xa4], eax
test ebx, ebx
je 0x46d5f6
cmp word [ebx], 0
je 0x46d5f6
mov eax, dword [ebp - 0xa8]
test eax, eax
je 0x46d5f6
cmp word [eax], 0
je 0x46d5f6
mov ecx, ebx
mov dword [ebp - 0xb8], 7
xor eax, eax
mov dword [ebp - 0xbc], 0
mov word [ebp - 0xcc], ax
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46d350
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0xcc]
call fcn.004073d0
lea eax, [ebp - 0xcc]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0046bbb0
add esp, 8
cmp dword [ebp - 0xb8], 8
mov byte [ebp - 4], 2
jb 0x46d3a1
push dword [ebp - 0xcc]
call fcn.0040823e
add esp, 4
xor eax, eax
mov dword [ebp - 0xb8], 7
lea ecx, [ebp - 0x60]
mov dword [ebp - 0xbc], 0
mov word [ebp - 0xcc], ax
call fcn.00465210
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
call fcn.0042b0d0
add esp, 4
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 4
call fcn.00465520
test al, al
je 0x46d494
cmp dword [ebp - 0x1c], 0
je 0x46d494
cmp dword [ebp - 0x34], 0
je 0x46d494
push 0x3c
lea eax, [ebp - 0x9c]
push 0
push eax
call fcn.004dead0
mov eax, dword [ebp + 0x1c]
add esp, 0xc
or eax, 0x100
mov dword [ebp - 0x9c], 0x3c
test edi, edi
jne 0x46d42b
test esi, esi
je 0x46d42e
or eax, 0x40
or eax, 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x98], eax
cmp byte [ebp + 0x2c], 0
mov byte [ebp - 4], 5
je 0x46d4f8
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 5
push eax
push 0
push ebx
call dword [sym.imp.SHELL32.dll_SHParseDisplayName]
test eax, eax
mov eax, dword [ebp - 0x14]
js 0x46d47e
test eax, eax
je 0x46d47e
or dword [ebp - 0x98], 0xc
mov dword [ebp - 0x78], eax
jmp 0x46d509
mov byte [ebp - 4], 4
test eax, eax
je 0x46d48d
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x18], 8
jb 0x46d4a5
push dword [ebp - 0x2c]
call fcn.0040823e
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 2
call fcn.00465250
cmp dword [ebp - 0x30], 8
mov dword [ebp - 4], 0xffffffff
jb 0x46d4dd
push dword [ebp - 0x44]
call fcn.0040823e
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov bl, al
mov word [ebp - 0x44], ax
jmp 0x46d5fc
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0xb0]
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
setne bl
test edi, edi
je 0x46d568
mov eax, dword [ebp - 0x7c]
mov dword [edi], eax
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x46d57e
test esi, esi
je 0x46d577
mov dword [esi], eax
jmp 0x46d57e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 4
test eax, eax
je 0x46d590
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x14], 0
jb 0x46d5a8
push dword [ebp - 0x2c]
call fcn.0040823e
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 2
call fcn.00465250
cmp dword [ebp - 0x30], 8
mov dword [ebp - 4], 0xffffffff
jb 0x46d5e0
push dword [ebp - 0x44]
call fcn.0040823e
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
jmp 0x46d5fc
mov bl, byte [ebp - 0x9d]
cmp dword [ebp - 0xa4], 0
jl 0x46d60b
call dword [sym.imp.ole32.dll_CoUninitialize]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401580
mov esp, ebp
pop ebp
ret