Function at 0x5083a0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
push edi
call fcn.004014c0
test al, al
jne 0x5083d6
mov eax, dword [esp + 0x54]
xor ebp, ebp
push ebp
push ebp
push ebp
push eax
push str.startpin
push ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
setg al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 4
call fcn.004014c0
test al, al
je 0x5083f4
call fcn.00496630
test al, al
jne 0x5083f4
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 4
lea ecx, [esp + 0x10]
push ecx
push 0x6b90dc
push 0x17
xor ebp, ebp
push ebp
push 0x6b90cc
mov dword [esp + 0x24], ebp
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp dword [esp + 0x10], ebp
je 0x5084a4
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x18], ebp
call edi
cmp eax, ebp
jge 0x50844a
push eax
call fcn.006b1ad0
lea ecx, [esp + 0x40]
push ecx
call edi
cmp eax, ebp
jge 0x50845b
push eax
call fcn.006b1ad0
mov edx, dword [esi]
mov edx, dword [edx + 0x3c]
lea eax, [esp + 0x14]
push eax
push 1
lea ecx, [esp + 0x3c]
push ecx
push 8
lea eax, [esp + 0x50]
push eax
mov ecx, eax
push ecx
push esi
call edx
test eax, eax
je 0x5084b0
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x50848d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x40]
push eax
call edi
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x5084a4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 4
cmp dword [esp + 0x34], ebp
je 0x50847d
cmp dword [esp + 0x14], ebp
je 0x50848d
push str.shlwapi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebp
mov dword [esp + 0x30], esi
jne 0x5084da
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x50847d
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x3c], ebp
call fcn.00575790
test al, al
jne 0x5084f9
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x50847d
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push 0x6b8fdc
push 0x6b8fcc
push ecx
mov dword [esp + 0x28], ebp
call dword [esp + 0x48]
mov eax, dword [esp + 0x18]
cmp eax, ebp
jne 0x50855b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x508534
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x40]
push ecx
call edi
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x5084a4
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 4
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebp
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x3c]
call eax
mov eax, dword [esp + 0x20]
cmp eax, ebp
jne 0x508590
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x508584
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x50847d
lea edx, [esp + 0x1c]
push edx
push 0x6b908c
mov dword [esp + 0x24], ebp
mov ecx, dword [eax]
push ebp
push eax
mov eax, dword [ecx + 0x3c]
call eax
cmp dword [esp + 0x1c], ebp
jne 0x5085d9
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x5085bd
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x508584
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x50847d
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x3c]
push eax
push ecx
mov dword [esp + 0x44], ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x508600
mov eax, dword [esp + 0x3c]
cmp eax, ebp
je 0x508600
push eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], ebp
mov edx, dword [eax]
mov edx, dword [edx]
push 0x6b90fc
push eax
call edx
mov eax, dword [esp + 0x24]
cmp eax, ebp
jne 0x508636
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x5085ad
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x5085ad
mov dword [esp + 0x2c], ebp
mov edi, dword [eax]
lea esi, [esp + 0x2c]
mov ebx, eax
add edi, 0x1c
call fcn.00685df0
push eax
mov eax, dword [edi]
push ebx
call eax
mov eax, dword [esp + 0x2c]
cmp eax, ebp
jne 0x5086c3
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x508668
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x508678
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x508688
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x508698
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x5086b3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x508494
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], ebp
mov ecx, dword [eax]
push 0x6b90ec
push eax
mov eax, dword [ecx]
call eax
cmp dword [esp + 0x28], ebp
jne 0x5086f7
mov eax, dword [esp + 0x2c]
cmp eax, ebp
je 0x508658
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x508658
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x28]
push eax
push ecx
call fcn.00507f50
mov bl, al
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x508718
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x2c]
cmp eax, ebp
je 0x508728
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x508738
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x508748
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x508758
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x508768
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x508783
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x50879e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x40
ret 4