Function at 0x427f30
Capabilities:
Get common file path

Disassembly:
sub esp, 0x30c
mov al, byte [0x4571f0]
push ebx
push ebp
push esi
push edi
mov byte [esp + 0x10], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
xor ebp, ebp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x320]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x4281c0
lea ecx, [esp + 0x10]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [esp + eax + 0xf]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp cl, 0x5c
je 0x427fa3
lea eax, [esp + 0x10]
push 0x446350
push eax
call ebx
lea ecx, [esp + 0x10]
push edi
push ecx
call ebx
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x4281c0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebp, eax
lea eax, [esp + 0x10]
push ebp
push eax
lea ecx, [esp + 0x11c]
push 0x4524fc
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
call edi
lea edx, [esp + 0x114]
push eax
push edx
call fcn.00424580
lea eax, [esp + 0x18]
push 0x104
push eax
mov byte [esp + 0x20], 0
call fcn.00427eb0
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 0xf], 0x5c
je 0x42802b
lea edx, [esp + 0x10]
push 0x446350
push edx
call ebx
mov eax, dword [esp + 0x320]
lea ecx, [esp + 0x10]
push eax
push ecx
call ebx
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x4281c0
call edi
mov ebp, eax
lea eax, [esp + 0x10]
push ebp
push eax
lea ecx, [esp + 0x11c]
push 0x4524c8
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
call edi
lea edx, [esp + 0x114]
push eax
push edx
call fcn.00424580
push esi
call fcn.004281e0
add esp, 0xc
test eax, eax
je 0x4281c0
mov eax, dword [esp + 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x4281b6
call edi
lea ecx, [esp + 0x10]
push 0x104
push ecx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 0xf], 0x5c
je 0x4280da
lea eax, [esp + 0x10]
push 0x446350
push eax
call ebx
mov ecx, dword [esp + 0x320]
lea edx, [esp + 0x10]
push ecx
push edx
call ebx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x4281b6
call edi
mov ebp, eax
lea ecx, [esp + 0x10]
push ebp
push ecx
lea edx, [esp + 0x11c]
push 0x452478
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
call edi
push eax
lea eax, [esp + 0x118]
push eax
call fcn.00424580
lea ecx, [esp + 0x18]
push 0x104
push ecx
mov byte [esp + 0x20], 0
call fcn.00427eb0
add esp, 0x10
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 0xf], 0x5c
je 0x428163
lea eax, [esp + 0x10]
push 0x446350
push eax
call ebx
mov ecx, dword [esp + 0x320]
lea edx, [esp + 0x10]
push ecx
push edx
call ebx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x4281b6
call edi
mov ebp, eax
lea ecx, [esp + 0x10]
push ebp
push ecx
lea edx, [esp + 0x11c]
push 0x452444
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
call edi
push eax
lea eax, [esp + 0x118]
push eax
call fcn.00424580
add esp, 8
push 1
call fcn.004281e0
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30c
ret