Function at 0x429640
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x384
mov eax, dword [0x45016c]
mov cx, word [0x450170]
push esi
push edi
lea edx, [esp + 0x184]
xor edi, edi
push 0x104
push edx
mov dword [esp + 0x1c], eax
mov word [esp + 0x20], cx
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x184]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [esp + eax + 0x183]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp cl, 0x5c
je 0x4296a5
lea ecx, [esp + 0x184]
push 0x445344
push ecx
call esi
lea edx, [esp + 0x184]
push 0x45015c
push edx
call esi
push 8
lea eax, [esp + 0x188]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
cmp eax, edi
mov dword [esp + 0x10], eax
jne 0x429704
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
lea ecx, [esp + 0x40]
push 0x45013c
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
call esi
lea edx, [esp + 0x3c]
push eax
push edx
call fcn.004243e0
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 0x384
ret
push 0x450128
push eax
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
jne 0x42974f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
lea eax, [esp + 0x40]
push 0x450104
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
call esi
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.004243e0
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 0x384
ret
mov ecx, dword [esp + 0x390]
push ebx
lea edx, [esp + 0xc]
push ebp
push edx
push ecx
call eax
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42994d
call esi
mov edx, dword [esp + 0x398]
mov edi, eax
push edi
push edx
lea eax, [esp + 0x4c]
push 0x4500d4
push eax
call ebx
add esp, 0x10
call esi
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.004243e0
add esp, 8
cmp edi, 0x522
jne 0x42994d
mov edx, dword [esp + 0x398]
push edi
push edx
lea eax, [esp + 0x4c]
push 0x451d1c
push eax
call ebx
add esp, 0x10
call esi
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.004243e0
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
add esp, 8
lea edx, [esp + 0x10]
push edx
push 0x28
call ebp
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x429921
call esi
mov edi, eax
mov eax, dword [esp + 0x398]
push edi
push eax
lea ecx, [esp + 0x4c]
push 0x451cec
push ecx
call ebx
add esp, 0x10
call esi
lea edx, [esp + 0x44]
push eax
push edx
call fcn.004243e0
add esp, 8
lea eax, [esp + 0x28]
push eax
push 0x44e900
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x429863
call esi
mov ecx, dword [esp + 0x398]
push eax
push ecx
lea edx, [esp + 0x4c]
push 0x451cb4
push edx
call ebx
add esp, 0x10
call esi
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004243e0
add esp, 8
jmp 0x429a34
mov edx, dword [esp + 0x10]
push 0
push 0
lea ecx, [esp + 0x2c]
push 0
push ecx
push 0
push edx
mov dword [esp + 0x3c], 1
mov dword [esp + 0x48], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x4298be
call esi
push eax
mov eax, dword [esp + 0x39c]
push eax
push 0x451c7c
lea ecx, [esp + 0x50]
push ecx
call ebx
add esp, 0x10
call esi
lea edx, [esp + 0x44]
push eax
push edx
call fcn.004243e0
add esp, 8
jmp 0x429a34
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4298cd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x10]
push eax
push 0x1ab
call ebp
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42994b
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x398]
push 4
push ecx
push 0xc
push edx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x429911
call esi
push eax
mov eax, dword [esp + 0x39c]
push eax
push 0x451c48
jmp 0x429931
mov eax, dword [esp + 0x398]
push edi
push eax
push 0x451c14
jmp 0x429931
call esi
push eax
mov eax, dword [esp + 0x39c]
push eax
push 0x451be4
lea ecx, [esp + 0x50]
push ecx
call ebx
add esp, 0x10
call esi
lea edx, [esp + 0x44]
push eax
push edx
call fcn.004243e0
add esp, 8
xor edi, edi
mov eax, dword [esp + 0x10]
xor ebp, ebp
cmp eax, ebp
jne 0x42996a
mov eax, dword [esp + 0x398]
push edi
push eax
push 0x4500a4
jmp 0x42989f
mov ecx, dword [0x45626c]
lea eax, [esp + 0x290]
push 0x104
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x148]
rep stosd dword es:[edi], eax
mov eax, dword [0x45a1e0]
mov edi, 1
cmp eax, ebp
mov dword [esp + 0x148], 0x44
mov word [esp + 0x178], 0xa
mov dword [esp + 0x174], edi
je 0x4299cb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x45a1e0], ebp
lea edx, [esp + 0x34]
lea eax, [esp + 0x148]
push edx
push eax
mov eax, dword [esp + 0x18]
push ebp
push ebp
push 0x30
push ebp
push ebp
lea ecx, [esp + 0x38]
push ebp
lea edx, [esp + 0x2b0]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x429a23
call esi
push eax
lea ecx, [esp + 0x48]
push 0x45003c
push ecx
call ebx
add esp, 0xc
call esi
lea edx, [esp + 0x44]
push eax
push edx
call fcn.004243e0
add esp, 8
mov dword [esp + 0x14], ebp
jmp 0x429a34
mov eax, dword [esp + 0x34]
cmp eax, ebp
je 0x429a34
cmp eax, 0xffffffff
je 0x429a34
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
pop ebp
test eax, eax
pop ebx
je 0x429a50
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
pop edi
pop esi
add esp, 0x384
ret