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

Disassembly:
sub esp, 0x368
mov dl, byte [0x481910]
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x271]
mov byte [esp + 0x270], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x16d]
mov byte [esp + 0x16c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x378]
xor edi, edi
cmp eax, 0xffffffff
mov dword [esp + 0x10], edi
jne 0x431624
lea eax, [esp + 0x378]
push eax
call fcn.0042fcd0
add esp, 4
test eax, eax
jne 0x431604
push ebp
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
push 0x475428
call fcn.0042b430
mov ebp, eax
add esp, 8
or ebx, 0xffffffff
cmp ebp, edi
je 0x4315f8
push 0x4765dc
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
mov dword [esp + 0x10], eax
je 0x4315f1
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4315d1
mov eax, dword [esp + 0x10]
call eax
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4315f1
push 0
call esi
push 0x1f4
call esi
push 0
call esi
mov ecx, edi
inc edi
cmp ecx, 5
jle 0x4315cd
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
pop ebp
mov dword [esp + 0x378], eax
jmp 0x43160b
mov eax, dword [esp + 0x378]
cmp eax, 0xffffffff
jne 0x431624
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x368
ret
mov edx, dword [0x481b80]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push eax
push edx
lea eax, [esp + 0x174]
push 0x476910
push eax
call ebx
add esp, 0x10
call fcn.0042c280
lea ecx, [esp + 0x68]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 0x67], 0x5c
je 0x431682
push 0x104
lea eax, [esp + 0x6c]
push 0x4695f4
push eax
call fcn.0042f1f0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x6c]
push 0x474ed4
push ecx
call fcn.0042f1f0
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x30]
add esp, 0xc
rep stosd dword es:[edi], eax
lea edx, [esp + 0x14]
lea eax, [esp + 0x24]
push edx
push eax
push 0
push 0
push 0x30
push 0
push 0
lea ecx, [esp + 0x188]
push 0
lea edx, [esp + 0x88]
push ecx
push edx
mov dword [esp + 0x4c], 0x44
mov word [esp + 0x7c], 0xa
mov dword [esp + 0x78], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x43172c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [esp + 0x270]
push esi
push 0x4768e0
push eax
call ebx
lea ecx, [esp + 0x27c]
push esi
push ecx
call fcn.00446e00
add esp, 0x14
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
add esp, 0x368
ret
mov eax, dword [esp + 0x14]
test eax, eax
je 0x431776
cmp eax, 0xffffffff
je 0x431776
push 0xffffffffffffffff
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
call esi
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
add esp, 0x368
ret