Function at 0x487240
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6520d0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x6dc0b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.00487ec0
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 1
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
or edi, 0xffffffff
test eax, eax
jne 0x4872ea
push 0x5c
push esi
call fcn.005e015b
add esp, 8
test eax, eax
jne 0x4872ab
or eax, edi
jmp 0x4872af
sub eax, esi
sar eax, 1
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x10]
call fcn.00487cd0
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00487e20
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4872e7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
je 0x4873db
cmp byte [0x6dcd10], 0
je 0x48732a
push str.shell32.dll
mov byte [0x6dcd10], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4873db
push str.SHOpenFolderAndSelectItems
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x6f5bd4], eax
jmp 0x48732f
mov eax, dword [0x6f5bd4]
test eax, eax
jne 0x487349
push 5
push eax
push eax
push esi
push 0x6add70
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x4873db
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
js 0x4873ca
cmp dword [esi - 4], 1
mov ebx, dword [ebp - 0x14]
jle 0x487379
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00488820
mov esi, dword [ebp - 0x10]
mov eax, dword [ebx]
lea ecx, [ebp - 0x18]
push 0
push ecx
push 0
push esi
push 0
push 0
push ebx
call dword [eax + 0xc]
test eax, eax
js 0x4873ca
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0x14]
cmp dword [eax - 4], 1
jle 0x4873aa
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00488820
mov eax, dword [ebp + 8]
mov ecx, dword [ebx]
lea edx, [ebp - 0x1c]
push 0
push edx
push 0
push eax
push 0
push 0
push ebx
call dword [ecx + 0xc]
test eax, eax
jns 0x487427
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4873db
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4873f6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x487415
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1c]
push 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push 1
push dword [ebp - 0x18]
call dword [0x6f5bd4]
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
test eax, eax
je 0x48744e
push eax
call esi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x487458
push eax
call esi
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x487469
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x10]
call fcn.00487d40
jmp 0x4873f6