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

Disassembly:
sub esp, 0x378
mov eax, dword [0x45016c]
mov cx, word [0x450170]
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 0x421549
lea ecx, [esp + 0x178]
push 0x445344
push ecx
call esi
lea edx, [esp + 0x178]
push 0x45015c
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 0x4215a8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
lea ecx, [esp + 0x78]
push 0x45013c
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
call esi
lea edx, [esp + 0x74]
push eax
push edx
call fcn.004243e0
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 0x378
ret
push 0x450128
push eax
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
jne 0x4215f3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
lea eax, [esp + 0x78]
push 0x450104
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
call esi
lea ecx, [esp + 0x74]
push eax
push ecx
call fcn.004243e0
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 0x421643
mov eax, dword [esp + 0x14]
mov edx, eax
inc eax
cmp edx, 0x14
mov dword [esp + 0x14], eax
jge 0x421643
call ebp
mov edi, eax
cmp edi, 0x3f0
jne 0x421643
push 0
call esi
push 0x1f4
call esi
push 0
call esi
jmp 0x421616
test ebx, ebx
mov dword [esp + 0x14], 0
jne 0x421682
call ebp
mov edi, eax
mov eax, dword [esp + 0x38c]
push edi
push eax
lea ecx, [esp + 0x84]
push 0x4500d4
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
call ebp
lea edx, [esp + 0x7c]
push eax
push edx
call fcn.004243e0
add esp, 8
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4216be
mov eax, dword [esp + 0x38c]
push edi
push eax
lea ecx, [esp + 0x84]
push 0x4500a4
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
call ebp
lea edx, [esp + 0x7c]
push eax
push edx
call fcn.004243e0
add esp, 8
jmp 0x4217f4
mov ecx, dword [0x45626c]
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 [0x45a1e0]
mov dword [esp + 0x38], 0x44
test eax, eax
mov word [esp + 0x68], 0xa
mov dword [esp + 0x64], 1
je 0x421716
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x45a1e0], 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 0x4217a9
call ebp
mov edi, eax
cmp edi, 0xe9
jne 0x42181d
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x14
mov dword [esp + 0x14], eax
jge 0x42181d
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 0x42174a
call ebp
push eax
lea edx, [esp + 0x20]
lea eax, [esp + 0x288]
push edx
push eax
lea ecx, [esp + 0x88]
push 0x45006c
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
call ebp
lea edx, [esp + 0x7c]
push eax
push edx
call fcn.004243e0
mov eax, dword [esp + 0x30]
add esp, 8
test eax, eax
je 0x4217f4
cmp eax, 0xffffffff
je 0x4217f4
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 0x421810
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 0x45003c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x88]
push edi
push ecx
call fcn.004243e0
add esp, 0x14
mov dword [esp + 0x18], 0
jmp 0x4217f4