Function at 0x47a600
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ddbf0
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x522638]
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 esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x54], esi
mov byte [ebp - 0x49], bl
mov dword [ebp - 0x50], ebx
cmp esi, ebx
je 0x47a7e3
cmp word [esi], bx
je 0x47a7e3
lea ecx, [ebp - 0x50]
push ecx
push 0x20019
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47a7d5
mov edi, 7
xor edx, edx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
push ebx
push 0x105
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], ebx
call fcn.0040c680
mov eax, dword [ebp - 0x48]
mov esi, 8
cmp dword [ebp - 0x34], esi
jae 0x47a6a0
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, ebx
je 0x47a834
cmp eax, dword [ebp - 0x38]
ja 0x47a834
xor ecx, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
push ebx
push 0x105
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0040c680
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x47a6e5
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
je 0x47a802
cmp eax, dword [ebp - 0x1c]
ja 0x47a802
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x47a70c
lea eax, [ebp - 0x2c]
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push eax
call edi
test eax, eax
jne 0x47a736
cmp dword [ebp - 0x18], esi
jb 0x47a72a
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00406ca9
add esp, 4
mov dword [ebp - 0x18], 7
jmp 0x47a816
push 0x3c
lea eax, [ebp - 0x90]
push ebx
push eax
call fcn.004b8020
mov ecx, dword [ebp - 0x54]
add esp, 0xc
mov dword [ebp - 0x90], 0x3c
mov dword [ebp - 0x8c], 0x503
mov dword [ebp - 0x80], ecx
cmp dword [ebp - 0x18], esi
jb 0x47a76f
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x78], edx
jmp 0x47a775
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x50]
lea edx, [ebp - 0x90]
push edx
mov dword [ebp - 0x74], 5
mov dword [ebp - 0x64], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
mov eax, dword [ebp - 0x48]
setne byte [ebp - 0x49]
cmp dword [ebp - 0x34], esi
jae 0x47a7a0
lea eax, [ebp - 0x48]
push eax
call edi
cmp dword [ebp - 0x18], esi
jb 0x47a7b4
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00406ca9
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x34], esi
jb 0x47a7d5
mov edx, dword [ebp - 0x48]
push edx
call fcn.00406ca9
add esp, 4
mov eax, dword [ebp - 0x50]
cmp eax, ebx
je 0x47a7e3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x49]
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.00401306
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x18], esi
jb 0x47a813
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00406ca9
add esp, 4
mov dword [ebp - 0x18], edi
xor ecx, ecx
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x34], esi
jb 0x47a845
mov edx, dword [ebp - 0x48]
push edx
call fcn.00406ca9
add esp, 4
xor al, al
jmp 0x47a7e6
cmp dword [ebp - 0x34], esi
jb 0x47a845
mov eax, dword [ebp - 0x48]
push eax
call fcn.00406ca9
add esp, 4
xor al, al
jmp 0x47a7e6