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

Disassembly:
push 0xffffffffffffffff
push 0x4c6980
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x509354]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x509354]
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 0x44f5ee
cmp word [ebp], bx
je 0x44f5ee
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 0x44f5df
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.0040d1c3
mov eax, dword [esp + 0x78]
mov esi, 8
cmp dword [esp + 0x8c], esi
jae 0x44f487
lea eax, [esp + 0x78]
push eax
mov eax, dword [esp + 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, ebx
je 0x44f653
cmp eax, dword [esp + 0x88]
ja 0x44f653
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.0040d1c3
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x70], esi
jae 0x44f4df
lea eax, [esp + 0x5c]
mov edx, dword [esp + 0x6c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
je 0x44f617
cmp eax, dword [esp + 0x6c]
ja 0x44f617
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x70], esi
jae 0x44f50b
lea eax, [esp + 0x5c]
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push eax
call edi
test eax, eax
jne 0x44f531
lea ecx, [esp + 0x58]
call fcn.0040198e
lea ecx, [esp + 0x74]
call fcn.0040198e
xor al, al
jmp 0x44f5f2
push 0x3c
lea eax, [esp + 0x20]
push ebx
push eax
call fcn.0048e760
add esp, 0xc
mov dword [esp + 0x1c], 0x3c
mov dword [esp + 0x20], 0x503
mov dword [esp + 0x2c], ebp
cmp dword [esp + 0x70], esi
jb 0x44f565
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x34], ecx
jmp 0x44f56d
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 0x44f5a0
lea eax, [esp + 0x78]
push eax
call edi
cmp dword [esp + 0x70], esi
jb 0x44f5b6
mov edx, dword [esp + 0x5c]
push edx
call fcn.0048e006
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 0x44f5df
mov ecx, dword [esp + 0x78]
push ecx
call fcn.0048e006
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x44f5ee
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.0048e25d
add esp, 0x8c
ret
cmp dword [esp + 0x70], esi
jb 0x44f62a
mov edx, dword [esp + 0x5c]
push edx
call fcn.0048e006
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 0x44f669
mov ecx, dword [esp + 0x78]
push ecx
call fcn.0048e006
add esp, 4
xor al, al
jmp 0x44f5f2
cmp dword [esp + 0x8c], esi
jb 0x44f669
mov edx, dword [esp + 0x78]
push edx
call fcn.0048e006
add esp, 4
xor al, al
jmp 0x44f5f2