Function at 0x402a00
Capabilities:
Get common file path

Disassembly:
sub esp, 0x4ac
mov eax, dword [0x42ac1c]
xor eax, esp
mov dword [esp + 0x4a8], eax
push esi
lea eax, [esp + 0x10]
push eax
mov esi, ecx
mov byte [esp + 0xb], 0
mov dword [esp + 0xc], 0
call fcn.004047b0
add esp, 4
cmp byte [esi + 0x64cc], 0
je 0x402c23
mov ecx, dword [esp + 0x4b4]
mov edx, dword [esp + 0x4b8]
imul ecx, ecx, 0xf4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
lea eax, [ecx + edx]
push edi
mov edi, dword [esp + 0x4c8]
mov dword [esp + 0x18], eax
lea ebp, [esi + eax*4 + 0x18c0]
push 0x80
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, dword [esi + 0x64c4]
push ecx
lea eax, [esi + 0x64cc]
push eax
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0xc4]
push str._s_rundll32.exe___s__Module__ld._n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esp + 0x2c]
lea eax, [esi + ecx*4 + 0x18e8]
push eax
push ebp
push 0
lea edx, [esp + 0xd8]
push edi
push edx
call fcn.00404830
add esp, 0x28
test al, al
je 0x402bc6
mov eax, dword [ebp]
push eax
push str._ExtMod__New_process_created_PID__d_
call fcn.00409f90
add esp, 8
cmp byte [esp + 0x4cc], 0
je 0x402b5f
mov ecx, dword [esi + 0x64c8]
push 0x2710
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x402b25
mov edx, dword [ebp]
push edx
push str._ExtMod__Response_received_from_PID__d_
call fcn.00409f90
mov eax, dword [esp + 0x20]
add esp, 8
mov dword [esi + eax*4 + 0x1898], edi
mov byte [esp + 0x13], 1
jmp 0x402bd3
mov ecx, dword [ebp]
push ecx
push str._ExtMod__Response_not_received_from_PID__d_
call fcn.00409f90
mov eax, dword [ebp]
add esp, 8
push 0
push 0xc
lea edx, [esp + 0x34]
push edx
push 2
push eax
lea ecx, [esi + 0x2c]
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 1
call fcn.00407350
jmp 0x402bd3
push 0x1388
call ebx
mov ecx, dword [esp + 0x4c0]
push 0
push 0
push 1
push 0
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x65d4]
push 0x465
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov ecx, dword [esp + 0x20]
push 0x7530
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x402bb9
mov byte [esp + 0x13], 1
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402bd3
push str._ExtMod__Failed_creating_new_process
call fcn.00409f90
add esp, 4
add dword [esp + 0x14], 1
cmp byte [esp + 0x13], 0
jne 0x402c08
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str._ExtMod__Failed_creating_new_process_in_session__ld___ld_
call fcn.00409f90
add esp, 0xc
push 0x7d0
call ebx
cmp dword [esp + 0x14], 3
jl 0x402a70
jmp 0x402c20
mov eax, dword [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str._ExtMod___PID:_ld__Process_successfully_created__PID:_ld_.
call fcn.00409f90
add esp, 0xc
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004047f0
mov ecx, dword [esp + 0x4b0]
mov al, byte [esp + 0xb]
add esp, 4
pop esi
xor ecx, esp
call fcn.0040a1eb
add esp, 0x4ac
ret 0x10