Function at 0x4505d0
Capabilities:
Create process on windows
Get common file path
Hide graphical window
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0954
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x513b94]
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 ebx, dword [ebp + 8]
mov dword [ebp - 0x22c], ebx
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0
call fcn.0049c770
test eax, eax
jne 0x450632
push 0x30
push 0x4de0b8
push 0x4e5d70
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x450b1b
mov dword [ebp - 0x224], 0
xor eax, eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x21c], eax
xor edi, edi
nop word [eax + eax]
mov ebx, dword [edi + 0x4e5c78]
mov esi, ebx
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x450660
sub esi, ecx
lea ecx, [ebp + 0xc]
sar esi, 1
call fcn.0049c120
push esi
push ebx
push eax
call fcn.004b5428
add esp, 0xc
test eax, eax
je 0x450699
inc dword [ebp - 0x21c]
add edi, 0xc
cmp edi, 0x3c
jb 0x450650
jmp 0x45083a
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x220], 0
call fcn.0049c120
lea edi, [eax + esi*2]
mov eax, dword [ebp - 0x21c]
lea esi, [eax + eax*2]
lea eax, [ebp - 0x220]
push eax
lea eax, [edi + 2]
push eax
push dword [esi*4 + 0x4e5c80]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, dword [esi*4 + 0x4e5c7c]
mov ebx, eax
push esi
call fcn.0049c580
push eax
push esi
call fcn.0049c710
mov dword [ebp - 0x21c], eax
push edi
mov byte [ebp - 4], 3
call fcn.0049c580
push eax
push edi
call fcn.0049c710
add esp, 0x18
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0049c250
mov esi, eax
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 5
test ecx, ecx
je 0x450734
call fcn.0049c750
mov ecx, dword [esi]
mov dword [ebp + 0xc], ecx
test ecx, ecx
je 0x450742
call fcn.0049c480
mov ecx, dword [ebp - 0x230]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x450755
call fcn.0049c750
mov ecx, dword [ebp - 0x228]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x450768
call fcn.0049c750
mov ecx, dword [ebp - 0x21c]
mov byte [ebp - 4], 8
test ecx, ecx
je 0x45077b
call fcn.0049c750
mov byte [ebp - 4], 2
test ebx, ebx
jne 0x4507a1
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x4e42a4
lea ecx, [ebp + 0xc]
call fcn.0049c3f0
jmp 0x45083a
push 0x5c
lea ecx, [ebp + 0xc]
call fcn.0049c120
push eax
call fcn.004a500e
add esp, 8
lea ecx, [ebp - 0x224]
add eax, 2
push eax
call fcn.0049c0a0
lea ecx, [ebp - 0x224]
call fcn.0049c770
or esi, 0xffffffff
lea ecx, [ebp + 0xc]
sub esi, eax
call fcn.0049c770
lea ecx, [ebp + 0xc]
add esi, eax
call fcn.0049c120
mov ecx, esi
neg ecx
sbb ecx, ecx
and ecx, 2
push ecx
push 0x4dd79c
lea ecx, [esi + esi]
push ecx
push eax
call fcn.0049c6b0
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x230], esi
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 9
test ecx, ecx
je 0x450819
call fcn.0049c750
mov dword [ebp + 0xc], esi
test esi, esi
je 0x450827
mov ecx, esi
call fcn.0049c480
mov byte [ebp - 4], 0xa
test esi, esi
je 0x450836
mov ecx, esi
call fcn.0049c750
mov byte [ebp - 4], 2
push 0x3c
lea eax, [ebp - 0x26c]
push 0
push eax
call fcn.004a3e00
mov ebx, dword [sym.imp.USER32.dll_FindWindowW]
add esp, 0xc
push 0
push 0x4e5dec
call ebx
mov edi, dword [sym.imp.USER32.dll_WaitForInputIdle]
mov esi, eax
mov dword [ebp - 0x21c], esi
test esi, esi
jne 0x450910
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], 0x3c
push eax
mov dword [ebp - 0x268], 0x40
mov dword [ebp - 0x260], 0x4dded0
mov dword [ebp - 0x25c], 0x4e5e0c
mov dword [ebp - 0x250], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0xffffffffffffffff
push dword [ebp - 0x234]
call edi
push 0
push 0x4e5dec
call ebx
mov esi, eax
mov dword [ebp - 0x21c], eax
test esi, esi
jne 0x450934
push 0x10
push 0x4de0b8
push 0x4e5e28
push dword [ebp - 0x22c]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp - 4], 0xb
jmp 0x450b0c
lea eax, [ebp - 0x22c]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x22c]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x234], eax
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x450943
push 1
jmp 0x450945
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push 0x4ddd48
push 0
push esi
call dword [sym.imp.USER32.dll_FindWindowExW]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
push 0xffffffffffffffff
push dword [ebp - 0x234]
call edi
push 0
push 0x10288
push 0x111
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
call esi
push 0xffffffffffffffff
push dword [ebp - 0x234]
call edi
mov dword [ebp - 0x220], 0x1e
push 0
push 0x25
push 0x100
push ebx
call esi
push 0xffffffffffffffff
push dword [ebp - 0x234]
call edi
sub dword [ebp - 0x220], 1
jne 0x4509a6
lea ecx, [ebp + 0xc]
call fcn.0049c120
mov dword [ebp - 0x220], eax
movzx eax, word [eax]
test ax, ax
je 0x450a2b
mov ecx, eax
nop dword [eax]
cmp cx, 0x5c
jne 0x4509f1
push 0
push 0x27
push 0x100
jmp 0x450a05
movzx eax, cx
push eax
call fcn.004b5850
add esp, 4
push 0
push eax
push 0x102
push ebx
call esi
push 0xffffffffffffffff
push dword [ebp - 0x234]
call edi
mov ecx, dword [ebp - 0x220]
add ecx, 2
mov dword [ebp - 0x220], ecx
movzx eax, word [ecx]
mov ecx, eax
test ax, ax
jne 0x4509e0
push 0xffffffffffffffff
push dword [ebp - 0x234]
call edi
lea ecx, [ebp - 0x224]
call fcn.0049c770
mov ebx, dword [ebp - 0x21c]
test eax, eax
je 0x450afa
push 0
push 0x4dd7d8
push 0
push ebx
call dword [sym.imp.USER32.dll_FindWindowExW]
push eax
mov dword [ebp - 0x228], eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push dword [ebp - 0x228]
call dword [sym.imp.USER32.dll_SetFocus]
push 0xffffffffffffffff
push dword [ebp - 0x234]
call edi
push 0
push 0x24
push 0x100
push dword [ebp - 0x228]
call esi
push 0xffffffffffffffff
push dword [ebp - 0x234]
call edi
lea ecx, [ebp - 0x224]
call fcn.0049c120
mov dword [ebp - 0x22c], eax
movzx eax, word [eax]
test ax, ax
je 0x450afa
mov ebx, dword [ebp - 0x22c]
mov ecx, eax
nop dword [eax]
movzx ecx, cx
push ecx
call fcn.004b5850
add esp, 4
push 0
push eax
push 0x102
push dword [ebp - 0x228]
call esi
push 0xffffffffffffffff
push dword [ebp - 0x234]
call edi
movzx eax, word [ebx + 2]
lea ebx, [ebx + 2]
mov ecx, eax
test ax, ax
jne 0x450ac0
mov ebx, dword [ebp - 0x21c]
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x224]
test ecx, ecx
je 0x450b1b
call fcn.0049c750
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], 0xe
test ecx, ecx
je 0x450b2e
call fcn.0049c750
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.004a0e13
mov esp, ebp
pop ebp
ret