Function at 0x66226037
Capabilities:
Create process on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x662480dd
mov eax, dword fs:[0]
push eax
sub esp, 0x9b0
mov eax, dword [0x66286018]
xor eax, esp
mov dword [esp + 0x9a8], eax
push ebx
push esi
push edi
mov eax, dword [0x66286018]
xor eax, esp
push eax
lea eax, [esp + 0x9c0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea eax, [esp + 0x398]
push eax
mov dword [esp + 0x5c], ecx
mov esi, edx
call fcn.66237b99
lea eax, [esp + 0x394]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x66226998
xor ebx, ebx
cmp byte [ebp + 0xc], bl
mov dword [esp + 0x44], ebx
je 0x662260b7
mov dword [esp + 0x44], 1
push dword [ebp + 0x10]
lea eax, [esp + 0x398]
push eax
lea eax, [esp + 0x50]
push eax
mov ecx, esi
call fcn.662270e8
mov eax, dword [eax]
mov dword [esp + 0x30], eax
mov dword [esp + 0x9c8], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x9c8], 3
mov edi, dword [sym.imp.GrooveUtil.DLL_public:_void___thiscall_GCIPtrBase::Empty_void_]
lea ecx, [esp + 0x24]
call edi
lea eax, [esp + 0x24]
push eax
push 0x6625b728
push 0x17
push ebx
push 0x6625b768
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x66226125
mov byte [esp + 0x9c8], bl
lea ecx, [esp + 0x24]
call dword [sym.imp.GrooveUtil.DLL_public:_void___thiscall_GCAnyIPtr::destructor_void_]
jmp 0x66226468
mov dword [esp + 0x20], ebx
mov byte [esp + 0x9c8], 8
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.6622de46
mov byte [esp + 0x9c8], 9
cmp dword [eax], ebx
setl byte [esp + 0x13]
mov byte [esp + 0x9c8], 8
lea ecx, [esp + 0x5c]
call dword [sym.imp.GrooveUtil.DLL_public:_void___thiscall_GCError::destructor_void_]
cmp byte [esp + 0x13], bl
je 0x6622617f
mov byte [esp + 0x9c8], 3
lea eax, [esp + 0x20]
push eax
call fcn.661da1c1
jmp 0x6622610f
mov dword [esp + 0x28], ebx
mov byte [esp + 0x9c8], 0xe
mov esi, dword [esp + 0x20]
cmp esi, ebx
je 0x662261b1
lea ecx, [esp + 0x28]
call edi
mov eax, dword [esi]
lea ecx, [esp + 0x28]
push ecx
push 0x6625b738
push esi
call dword [eax]
cmp eax, ebx
sete al
cmp al, bl
jne 0x662261dc
mov byte [esp + 0x9c8], 8
mov esi, dword [sym.imp.GrooveUtil.DLL_public:_void___thiscall_GCAnyIPtr::destructor_void_]
lea ecx, [esp + 0x28]
call esi
mov byte [esp + 0x9c8], 3
lea eax, [esp + 0x20]
push eax
call fcn.661da1c1
jmp 0x6622645b
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.6622de0d
mov byte [esp + 0x9c8], 0x13
cmp dword [eax], ebx
setl byte [esp + 0x13]
mov byte [esp + 0x9c8], 0xe
lea ecx, [esp + 0x5c]
call dword [sym.imp.GrooveUtil.DLL_public:_void___thiscall_GCError::destructor_void_]
cmp byte [esp + 0x13], bl
je 0x66226241
mov byte [esp + 0x9c8], 8
mov esi, dword [sym.imp.GrooveUtil.DLL_public:_void___thiscall_GCAnyIPtr::destructor_void_]
lea ecx, [esp + 0x28]
call esi
mov byte [esp + 0x9c8], 3
lea eax, [esp + 0x20]
push eax
call fcn.661da1c1
jmp 0x6622645b
cmp dword [esp + 0x58], ebx
mov dword [esp + 0x18], ebx
jle 0x66226435
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x9c8], 0x1a
push dword [esp + 0x18]
lea esi, [esp + 0x90]
call fcn.661d7db5
mov byte [esp + 0x9c8], 0x1b
mov ebx, dword [esp + 0x28]
lea ecx, [esp + 0x1c]
push ecx
sub esp, 0x10
mov esi, eax
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x70]
push eax
movsd dword es:[edi], dword [esi]
call fcn.6622dd72
mov byte [esp + 0x9c8], 0x1c
xor ebx, ebx
cmp dword [eax], ebx
setl byte [esp + 0x13]
mov byte [esp + 0x9c8], 0x1b
mov edi, dword [sym.imp.GrooveUtil.DLL_public:_void___thiscall_GCError::destructor_void_]
lea ecx, [esp + 0x5c]
call edi
mov byte [esp + 0x9c8], 0x1a
cmp word [esp + 0x8c], bx
je 0x662262d5
lea ecx, [esp + 0x8c]
call dword [sym.imp.GrooveUtil.DLL_private:_void___thiscall_GCVariant::_Release_void_]
cmp byte [esp + 0x13], bl
jne 0x6622640f
cmp dword [esp + 0x1c], ebx
je 0x6622640f
mov dword [esp + 0x14], ebx
mov byte [esp + 0x9c8], 0x1f
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x662263fd
lea ecx, [esp + 0x14]
call dword [sym.imp.GrooveUtil.DLL_public:_void___thiscall_GCIPtrBase::Empty_void_]
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push ecx
push 0x6625b608
push esi
call dword [eax]
cmp eax, ebx
sete al
cmp al, bl
je 0x662263fd
lea eax, [esp + 0xfc]
push eax
call fcn.661d8535
mov byte [esp + 0x9c8], 0x20
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0xfc]
push eax
call fcn.662388f9
test dword [esp + 0x128], 0x20000000
je 0x662263e8
mov eax, dword [esp + 0x390]
test eax, eax
je 0x662263e8
cmp word [eax], 0
je 0x662263e8
test dword [esp + 0x128], 0x10000000
je 0x662263e8
push eax
lea eax, [esp + 0x5a0]
push eax
call fcn.66237b99
lea eax, [esp + 0x394]
push eax
lea ecx, [esp + 0x5a0]
call fcn.661d102d
test eax, eax
jne 0x662263e8
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.6622dd36
mov byte [esp + 0x9c8], 0x21
cmp dword [eax], 0
setl bl
mov byte [esp + 0x9c8], 0x20
lea ecx, [esp + 0x78]
call edi
test bl, bl
jne 0x662263e8
mov esi, dword [esp + 0x48]
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x662266c4
mov byte [esp + 0x9c8], 0x1f
lea eax, [esp + 0xfc]
push eax
call fcn.661d9940
mov byte [esp + 0x9c8], 0x1a
lea eax, [esp + 0x14]
push eax
call fcn.661da1c1
mov byte [esp + 0x9c8], 0xe
lea eax, [esp + 0x1c]
push eax
call fcn.661da1c1
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
xor ebx, ebx
cmp eax, dword [esp + 0x58]
jl 0x6622624f
mov byte [esp + 0x9c8], 8
mov esi, dword [sym.imp.GrooveUtil.DLL_public:_void___thiscall_GCAnyIPtr::destructor_void_]
lea ecx, [esp + 0x28]
call esi
mov byte [esp + 0x9c8], 3
lea eax, [esp + 0x20]
push eax
call fcn.661da1c1
mov byte [esp + 0x9c8], bl
lea ecx, [esp + 0x24]
call esi
mov esi, 0x105
push esi
lea eax, [esp + 0x7a8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov edi, eax
cmp edi, ebx
jne 0x6622648c
push 0x2e746f6e
call fcn.661d7c75
cmp edi, esi
jbe 0x6622649f
push 0x80004005
push 0x2e6b3474
call fcn.661d7d78
mov dword [esp + 0x34], ebx
mov byte [esp + 0x9c8], 0x30
mov edi, dword [sym.imp.GrooveUtil.DLL_public:_void___thiscall_GCStr::Set_wchar_t_const__]
lea eax, [esp + 0x7a4]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
call edi
mov byte [esp + 0x9c8], 0x31
push dword [esp + 0x18]
mov esi, dword [sym.imp.GrooveUtil.DLL_public:_long_int___cdecl_GCStr::Format_wchar_t_const__]
lea eax, [esp + 0x38]
push str._sExplorer.exe
push eax
call esi
add esp, 0xc
mov byte [esp + 0x9c8], 0x30
cmp dword [esp + 0x18], ebx
je 0x662264fc
lea ecx, [esp + 0x18]
call dword [sym.imp.GrooveUtil.DLL_private:_void___thiscall_GCStr::_Release_void_]
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x9c8], 0x32
lea eax, [esp + 0x394]
push eax
push dword [esp + 0x38]
lea eax, [esp + 0x44]
push str.__s___s
push eax
call esi
add esp, 0x10
lea eax, [esp + 0x48]
push eax
call fcn.6623943f
mov eax, dword [eax]
mov dword [esp + 0x38], eax
mov byte [esp + 0x9c8], 0x33
mov eax, dword [esp + 0x38]
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x9c8], 0x34
push eax
lea esi, [esp + 0x54]
call fcn.661d794f
mov byte [esp + 0x9c8], 0x35
push ebx
lea eax, [esp + 0x50]
call fcn.66220cce
mov byte [esp + 0x9c8], 0x36
mov dword [esp + 0x40], ebx
mov byte [esp + 0x9c8], 0x39
lea ecx, [esp + 0x40]
call dword [sym.imp.GrooveUtil.DLL_public:_void___thiscall_GCIPtrBase::Empty_void_]
lea eax, [esp + 0x40]
push eax
push 0x662518c0
push 0x17
push ebx
push 0x66259228
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
lea eax, [esp + 0x394]
push eax
lea ecx, [esp + 0x30]
setge byte [esp + 0x17]
mov dword [esp + 0x30], ebx
call edi
mov byte [esp + 0x9c8], 0x3a
push dword [esp + 0x54]
push dword [esp + 0x30]
call fcn.662269be
push dword [esp + 0x44]
push dword [esp + 0x30]
call fcn.66226b97
push dword [esp + 0x30]
push dword [esp + 0x30]
call fcn.66226d36
cmp byte [esp + 0x13], bl
je 0x662265f8
push dword [esp + 0x38]
push dword [esp + 0x30]
call fcn.66226f0f
push 0x44
pop esi
push esi
lea eax, [esp + 0xb8]
push ebx
push eax
call sub.MSVCR80.dll_memset
xor eax, eax
lea edi, [esp + 0xb0]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0xa4]
push eax
lea eax, [esp + 0xb8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [esp + 0x5c]
mov dword [esp + 0xd8], esi
push dword [esp + 0x58]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x66226658
push 0x80004005
push 0x2e6b3474
call fcn.661d7d78
mov dword [esp + 0x20], ebx
push ebx
mov ebx, dword [esp + 0xac]
lea esi, [esp + 0x24]
call fcn.661d7c28
mov byte [esp + 0x9c8], 0x3b
mov ebx, dword [esp + 0xa4]
and dword [esp + 0x18], 0
push 1
lea esi, [esp + 0x1c]
call fcn.661d7c28
mov byte [esp + 0x9c8], 0x3c
xor ebx, ebx
cmp byte [esp + 0x13], bl
je 0x662268ca
cmp dword [esp + 0x4c], ebx
jne 0x662266b0
push ebx
lea eax, [esp + 0x50]
call fcn.66220cce
push 0x1770
push dword [esp + 0x50]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x662268d5
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x662266d8
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindowAsync]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push dword [esp + 0x54]
lea esi, [esp + 0x90]
call fcn.661d7d59
mov byte [esp + 0x9c8], 0x22
mov ebx, dword [esp + 0x14]
sub esp, 0x10
mov edi, esp
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x66251184
lea eax, [esp + 0x8c]
push eax
movsd dword es:[edi], dword [esi]
call fcn.6622dca1
mov byte [esp + 0x9c8], 0x22
lea ecx, [esp + 0x78]
call dword [sym.imp.GrooveUtil.DLL_public:_void___thiscall_GCError::destructor_void_]
mov byte [esp + 0x9c8], 0x20
xor esi, esi
cmp word [esp + 0x8c], si
je 0x6622674b
lea ecx, [esp + 0x8c]
call dword [sym.imp.GrooveUtil.DLL_private:_void___thiscall_GCVariant::_Release_void_]
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x70], esi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
cmp word [esp + 0x5c], si
je 0x6622676b
lea ecx, [esp + 0x5c]
call dword [sym.imp.GrooveUtil.DLL_private:_void___thiscall_GCVariant::_Release_void_]
mov eax, dword [esp + 0x44]
mov word [esp + 0x5c], 0x13
mov dword [esp + 0x64], eax
mov byte [esp + 0x9c8], 0x24
mov ebx, dword [esp + 0x14]
sub esp, 0x10
mov edi, esp
lea esi, [esp + 0x6c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x662511c4
lea eax, [esp + 0x8c]
push eax
movsd dword es:[edi], dword [esi]
call fcn.6622dca1
mov byte [esp + 0x9c8], 0x24
lea ecx, [esp + 0x78]
call dword [sym.imp.GrooveUtil.DLL_public:_void___thiscall_GCError::destructor_void_]
mov byte [esp + 0x9c8], 0x20
cmp word [esp + 0x5c], 0
je 0x662267d1
lea ecx, [esp + 0x5c]
call dword [sym.imp.GrooveUtil.DLL_private:_void___thiscall_GCVariant::_Release_void_]
push dword [esp + 0x30]
lea esi, [esp + 0x90]
call fcn.661d7d59
mov byte [esp + 0x9c8], 0x26
mov ebx, dword [esp + 0x14]
sub esp, 0x10
mov edi, esp
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x662511fc
lea eax, [esp + 0x8c]
push eax
movsd dword es:[edi], dword [esi]
call fcn.6622dca1
mov byte [esp + 0x9c8], 0x26
lea ecx, [esp + 0x78]
call dword [sym.imp.GrooveUtil.DLL_public:_void___thiscall_GCError::destructor_void_]
mov byte [esp + 0x9c8], 0x20
xor ebx, ebx
cmp word [esp + 0x8c], bx
je 0x6622683d
lea ecx, [esp + 0x8c]
call dword [sym.imp.GrooveUtil.DLL_private:_void___thiscall_GCVariant::_Release_void_]
mov byte [esp + 0x9c8], 0x1f
lea eax, [esp + 0xfc]
push eax
call fcn.661d9940
mov byte [esp + 0x9c8], 0x1a
lea eax, [esp + 0x14]
push eax
call fcn.661da1c1
mov byte [esp + 0x9c8], 0xe
lea eax, [esp + 0x1c]
push eax
call fcn.661da1c1
mov byte [esp + 0x9c8], 8
mov esi, dword [sym.imp.GrooveUtil.DLL_public:_void___thiscall_GCAnyIPtr::destructor_void_]
lea ecx, [esp + 0x28]
call esi
mov byte [esp + 0x9c8], 3
lea eax, [esp + 0x20]
push eax
call fcn.661da1c1
mov byte [esp + 0x9c8], bl
lea ecx, [esp + 0x24]
call esi
or dword [esp + 0x9c8], 0xffffffff
cmp dword [esp + 0x30], ebx
je 0x66226998
lea ecx, [esp + 0x30]
call dword [sym.imp.GrooveUtil.DLL_private:_void___thiscall_GCStr::_Release_void_]
jmp 0x66226998
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [esp + 0x9c8], 0x3b
cmp dword [esp + 0x18], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x662268f3
push dword [esp + 0x18]
call esi
mov dword [esp + 0x18], ebx
mov byte [esp + 0x9c8], 0x3a
cmp dword [esp + 0x20], ebx
je 0x6622690b
push dword [esp + 0x20]
call esi
mov dword [esp + 0x20], ebx
mov byte [esp + 0x9c8], 0x39
cmp dword [esp + 0x2c], ebx
mov esi, dword [sym.imp.GrooveUtil.DLL_private:_void___thiscall_GCStr::_Release_void_]
je 0x66226925
lea ecx, [esp + 0x2c]
call esi
mov byte [esp + 0x9c8], 0x36
lea eax, [esp + 0x40]
push eax
call fcn.661da1c1
mov byte [esp + 0x9c8], 0x33
lea eax, [esp + 0x4c]
push eax
call fcn.661fb0d1
mov byte [esp + 0x9c8], 0x32
cmp dword [esp + 0x38], ebx
je 0x6622695d
lea ecx, [esp + 0x38]
call esi
mov byte [esp + 0x9c8], 0x30
cmp dword [esp + 0x3c], ebx
je 0x66226971
lea ecx, [esp + 0x3c]
call esi
mov byte [esp + 0x9c8], bl
cmp dword [esp + 0x34], ebx
je 0x66226984
lea ecx, [esp + 0x34]
call esi
or dword [esp + 0x9c8], 0xffffffff
cmp dword [esp + 0x30], ebx
je 0x66226998
lea ecx, [esp + 0x30]
call esi
mov ecx, dword [esp + 0x9c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.6623a9c1
mov esp, ebp
pop ebp
ret 0xc