Function at 0x467833
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4ff058
call fcn.004c13fc
sub esp, 0x2a0
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x467b6c
mov eax, dword [ebp + 0xc]
push esi
push 0x800
mov dword [ebp - 0x2c], eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x28], ebx
push eax
call fcn.004673e0
mov esi, 0x100
lea eax, [ebp - 0x18c]
push esi
push ebx
push eax
call fcn.004c1810
movsx eax, word [edi + 8]
add esp, 0x18
dec eax
je 0x4678d0
dec eax
je 0x4678c0
call fcn.004f02b8
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x18c]
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x18c]
push 0x5c
push eax
call fcn.004c3a30
pop ecx
cmp eax, ebx
pop ecx
je 0x4678de
and byte [eax + 1], bl
jmp 0x4678de
lea eax, [ebp - 0x18c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x4678de
lea eax, [ebp - 0x18c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x18c]
push eax
call fcn.004c2130
cmp byte [ebp + eax - 0x18d], 0x5c
pop ecx
je 0x467908
lea eax, [ebp - 0x18c]
push 0x539b00
push eax
call fcn.004c23f0
pop ecx
pop ecx
lea eax, [ebp - 0x18c]
lea ecx, [ebp - 0x14]
push eax
call fcn.004dae80
mov esi, 0x90
lea eax, [ebp - 0x21c]
push esi
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004c1810
lea ecx, [ebp - 0x21c]
lea eax, [edi + 0x90]
push ecx
mov dword [ebp - 0x24], eax
push dword [edi + 0x8c]
push eax
call fcn.00493f6a
add esp, 0x18
test eax, eax
je 0x4679a7
push esi
lea eax, [ebp - 0x2ac]
push ebx
push eax
call fcn.004c1810
lea eax, [ebp - 0x2ac]
push eax
push ebx
push ebx
call fcn.00493f6a
lea eax, [ebp - 0x22c]
push 3
push eax
lea eax, [ebp - 0x19c]
push eax
call fcn.004c1b80
add esp, 0x24
test eax, eax
jne 0x4679a7
call fcn.004f02b8
mov eax, dword [eax + 4]
push dword [eax + 0x88]
lea eax, [edi + 0xc]
push str._s.exe
push eax
call fcn.004c1941
add esp, 0xc
lea eax, [edi + 0xc]
lea ecx, [ebp - 0x14]
push eax
mov dword [ebp - 0x18], eax
call fcn.004db1ee
mov esi, str..old
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004db0a7
push ebx
push dword [ebp - 0x10]
call fcn.004c24d0
pop ecx
test eax, eax
pop ecx
jne 0x4679e1
push dword [ebp - 0x10]
call fcn.004c2f4f
pop ecx
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.004c49f0
mov ebx, 0x539a94
push 0x40
push ebx
push dword [ebp - 0x14]
call fcn.004c2a13
add esp, 0x14
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x467b0c
mov eax, dword [0x542d10]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004daf9b
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004db0a7
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004daf4b
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004dae12
push dword [ebp - 0x10]
mov edi, str.rename__s__s__r_n
lea eax, [ebp - 0x1c]
push dword [ebp - 0x14]
push edi
push eax
call fcn.004d261f
add esp, 0x10
lea eax, [ebp - 0x1c]
mov esi, 0x548bd0
push eax
mov ecx, esi
call fcn.004db22a
lea eax, [ebp - 0x14]
push str..new
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004db0a7
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.004daf4b
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004dae12
push dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x10]
push edi
push eax
call fcn.004d261f
add esp, 0x10
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.004db22a
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004db11b
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.004daf4b
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004dae12
push 0x40
push ebx
push dword [ebp - 0x10]
call fcn.004c2a13
add esp, 0xc
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.004dae12
cmp dword [ebp - 0x20], 0
je 0x467b2a
mov edi, dword [ebp + 8]
push dword [ebp - 0x20]
push 1
push dword [edi + 0x8c]
push dword [ebp - 0x24]
call fcn.004c2797
push dword [ebp - 0x20]
call fcn.004c2516
add esp, 0x14
mov eax, dword [ebp + 0xc]
pop esi
cmp dword [ebp - 0x28], eax
jge 0x467b4a
push 0
mov dword [ebp - 0x28], eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x8c]
push eax
call fcn.004673e0
add esp, 0xc
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
mov dword [0x5494d8], 1
call fcn.004dae12
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004dae12
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret