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

Disassembly:
sub esp, 0x378
mov eax, dword [0x451178]
mov cx, word [0x45117c]
push esi
push edi
lea edx, [esp + 0x178]
xor edi, edi
push 0x104
push edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], eax
mov word [esp + 0x20], cx
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [esp + eax + 0x177]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp cl, 0x5c
je 0x4216f9
lea ecx, [esp + 0x178]
push 0x446350
push ecx
call esi
lea edx, [esp + 0x178]
push 0x451168
push edx
call esi
push 8
lea eax, [esp + 0x17c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
cmp eax, edi
mov dword [esp + 0x1c], eax
jne 0x421758
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
lea ecx, [esp + 0x78]
push 0x451148
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
call esi
lea edx, [esp + 0x74]
push eax
push edx
call fcn.00424580
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 0x378
ret
push 0x451134
push eax
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
jne 0x4217a3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
lea eax, [esp + 0x78]
push 0x451110
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
call esi
lea ecx, [esp + 0x74]
push eax
push ecx
call fcn.00424580
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 0x378
ret
mov ecx, dword [esp + 0x384]
push ebx
lea edx, [esp + 0xc]
push ebp
push edx
push ecx
call eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, eax
cmp ebx, edi
jne 0x4217f3
mov eax, dword [esp + 0x14]
mov edx, eax
inc eax
cmp edx, 0x14
mov dword [esp + 0x14], eax
jge 0x4217f3
call ebp
mov edi, eax
cmp edi, 0x3f0
jne 0x4217f3
push 0
call esi
push 0x1f4
call esi
push 0
call esi
jmp 0x4217c6
test ebx, ebx
mov dword [esp + 0x14], 0
jne 0x421832
call ebp
mov edi, eax
mov eax, dword [esp + 0x38c]
push edi
push eax
lea ecx, [esp + 0x84]
push 0x4510e0
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
call ebp
lea edx, [esp + 0x7c]
push eax
push edx
call fcn.00424580
add esp, 8
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x42186e
mov eax, dword [esp + 0x38c]
push edi
push eax
lea ecx, [esp + 0x84]
push 0x4510b0
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
call ebp
lea edx, [esp + 0x7c]
push eax
push edx
call fcn.00424580
add esp, 8
jmp 0x4219a4
mov ecx, dword [0x4572fc]
lea eax, [esp + 0x284]
push 0x104
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov eax, dword [0x45b270]
mov dword [esp + 0x38], 0x44
test eax, eax
mov word [esp + 0x68], 0xa
mov dword [esp + 0x64], 1
je 0x4218c6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x45b270], 0
lea edx, [esp + 0x28]
lea eax, [esp + 0x38]
push edx
push eax
mov eax, dword [esp + 0x18]
push 0
mov ebx, dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
push 0
push 0x30
push 0
push 0
lea ecx, [esp + 0x38]
push 0
lea edx, [esp + 0x2a4]
push ecx
push edx
push eax
call ebx
test eax, eax
jne 0x421959
call ebp
mov edi, eax
cmp edi, 0xe9
jne 0x4219cd
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x14
mov dword [esp + 0x14], eax
jge 0x4219cd
push 0
call esi
push 0x1f4
call esi
push 0
call esi
lea ecx, [esp + 0x28]
lea edx, [esp + 0x38]
push ecx
push edx
mov edx, dword [esp + 0x18]
push 0
push 0
push 0x30
push 0
push 0
lea eax, [esp + 0x38]
push 0
lea ecx, [esp + 0x2a4]
push eax
push ecx
push edx
call ebx
test eax, eax
je 0x4218fa
call ebp
push eax
lea edx, [esp + 0x20]
lea eax, [esp + 0x288]
push edx
push eax
lea ecx, [esp + 0x88]
push 0x451078
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
call ebp
lea edx, [esp + 0x7c]
push eax
push edx
call fcn.00424580
mov eax, dword [esp + 0x30]
add esp, 8
test eax, eax
je 0x4219a4
cmp eax, 0xffffffff
je 0x4219a4
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
pop ebp
test eax, eax
pop ebx
je 0x4219c0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
add esp, 0x378
ret
push edi
lea eax, [esp + 0x80]
push 0x451048
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x88]
push edi
push ecx
call fcn.00424580
add esp, 0x14
mov dword [esp + 0x18], 0
jmp 0x4219a4