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

Disassembly:
push 0xffffffffffffffff
push 0x4c74f0
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x50b384]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50b384]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xa4]
mov eax, dword [esp + 0xa8]
xor ebx, ebx
mov byte [esp + 0x17], bl
mov dword [esp + 0x18], ebx
cmp ebp, ebx
je 0x44f9de
cmp word [ebp], bx
je 0x44f9de
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44f9cf
mov edi, 7
xor edx, edx
mov dword [esp + 0x8c], edi
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], dx
push ebx
push 0x105
lea ecx, [esp + 0x7c]
mov dword [esp + 0xa4], ebx
call fcn.0040d213
mov eax, dword [esp + 0x78]
mov esi, 8
cmp dword [esp + 0x8c], esi
jae 0x44f877
lea eax, [esp + 0x78]
push eax
mov eax, dword [esp + 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, ebx
je 0x44fa43
cmp eax, dword [esp + 0x88]
ja 0x44fa43
xor ecx, ecx
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], cx
push ebx
push 0x105
lea ecx, [esp + 0x60]
mov byte [esp + 0xa4], 1
call fcn.0040d213
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x70], esi
jae 0x44f8cf
lea eax, [esp + 0x5c]
mov edx, dword [esp + 0x6c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
je 0x44fa07
cmp eax, dword [esp + 0x6c]
ja 0x44fa07
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x70], esi
jae 0x44f8fb
lea eax, [esp + 0x5c]
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push eax
call edi
test eax, eax
jne 0x44f921
lea ecx, [esp + 0x58]
call fcn.0040199c
lea ecx, [esp + 0x74]
call fcn.0040199c
xor al, al
jmp 0x44f9e2
push 0x3c
lea eax, [esp + 0x20]
push ebx
push eax
call fcn.0048f0d0
add esp, 0xc
mov dword [esp + 0x1c], 0x3c
mov dword [esp + 0x20], 0x503
mov dword [esp + 0x2c], ebp
cmp dword [esp + 0x70], esi
jb 0x44f955
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x34], ecx
jmp 0x44f95d
lea edx, [esp + 0x5c]
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x3c], 5
mov dword [esp + 0x4c], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
mov eax, dword [esp + 0x78]
setne byte [esp + 0x17]
cmp dword [esp + 0x8c], esi
jae 0x44f990
lea eax, [esp + 0x78]
push eax
call edi
cmp dword [esp + 0x70], esi
jb 0x44f9a6
mov edx, dword [esp + 0x5c]
push edx
call fcn.0048e976
add esp, 4
xor eax, eax
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], ax
cmp dword [esp + 0x8c], esi
jb 0x44f9cf
mov ecx, dword [esp + 0x78]
push ecx
call fcn.0048e976
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x44f9de
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.0048ebcd
add esp, 0x8c
ret
cmp dword [esp + 0x70], esi
jb 0x44fa1a
mov edx, dword [esp + 0x5c]
push edx
call fcn.0048e976
add esp, 4
xor eax, eax
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], ax
cmp dword [esp + 0x8c], esi
jb 0x44fa59
mov ecx, dword [esp + 0x78]
push ecx
call fcn.0048e976
add esp, 4
xor al, al
jmp 0x44f9e2
cmp dword [esp + 0x8c], esi
jb 0x44fa59
mov edx, dword [esp + 0x78]
push edx
call fcn.0048e976
add esp, 4
xor al, al
jmp 0x44f9e2