Function at 0x472d60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537d71
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x102b0
call fcn.00501720
mov eax, dword [0x57c54c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, edx
mov edi, ecx
lea ecx, [ebp - 0x258]
call fcn.004080d0
mov dword [ebp - 4], 0
push 0x20a
push 0
lea eax, [ebp - 0x240]
push eax
call fcn.00503920
add esp, 0xc
call fcn.00407620
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x472df7
movaps xmm0, xmmword [0x5648a0]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x61507265
mov dword [ebp - 0x18], 0x576874
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x20], eax
push 0
push 0x23
lea eax, [ebp - 0x240]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x472e71
lea ecx, [ebp - 0x240]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x472e17
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jbe 0x472e71
push ecx
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x258]
call fcn.0040ab40
push 1
push 0x55eb5c
lea ecx, [ebp - 0x258]
call fcn.0040ac90
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x472e55
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x258]
call fcn.0040ac90
lea ebx, [ebp - 0x258]
cmp dword [ebp - 0x244], 8
cmovae ebx, dword [ebp - 0x258]
call fcn.004074f0
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x472eac
movaps xmm0, xmmword [str.PathFileExistsW]
movups xmmword [ebp - 0x24], xmm0
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x14], eax
push ebx
mov eax, dword [esi + 0x14]
call eax
test eax, eax
je 0x473168
lea ecx, [ebp - 0x270]
call fcn.00408360
mov byte [ebp - 4], 1
lea edx, [ebp - 0x270]
lea ecx, [ebp - 0x258]
call fcn.00477e90
test eax, eax
je 0x473159
push 0x10044
push 0
lea eax, [ebp - 0x102b8]
push eax
call fcn.00503920
add esp, 0xc
lea ecx, [ebp - 0x102b8]
call fcn.004741d0
mov byte [ebp - 4], 2
mov byte [ebp - 4], 3
lea eax, [ebp - 0x270]
cmp dword [ebp - 0x25c], 0x10
cmovae eax, dword [ebp - 0x270]
push eax
lea ecx, [ebp - 0x102b8]
call fcn.004743b0
mov dword [ebp - 4], 2
sub esp, 8
push str.InsLog
lea ecx, [ebp - 0x102b8]
call fcn.004742b0
test eax, eax
jne 0x472f9e
mov byte [ebp - 4], 8
lea eax, [ebp - 0x1027c]
mov edx, dword [ebp - 0x10288]
cmp edx, eax
je 0x47312e
mov ecx, edx
mov eax, ecx
neg eax
and eax, 3
mov esi, dword [ecx + eax]
mov eax, dword [ebp - 0x278]
test eax, eax
je 0x472f7c
push edx
call eax
jmp 0x472f82
push ecx
call fcn.005010e5
add esp, 4
mov edx, esi
mov dword [ebp - 0x10288], edx
mov ecx, esi
lea eax, [ebp - 0x1027c]
cmp esi, eax
jne 0x472f63
jmp 0x47312e
sub esp, 8
push str.Item
mov ecx, eax
call fcn.004742b0
mov ebx, eax
test ebx, ebx
je 0x473029
xor esi, esi
mov dword [ebp - 0x102bc], esi
test ebx, ebx
je 0x472ff0
sub esp, 8
push str.labelid
mov ecx, ebx
call fcn.004747a0
test eax, eax
je 0x472ff0
mov eax, dword [eax + 4]
mov ecx, 0x580a7c
test eax, eax
cmovne ecx, eax
push ecx
call fcn.0050da22
add esp, 4
mov esi, eax
mov dword [ebp - 0x102bc], esi
mov eax, dword [edi + 4]
cmp dword [edi + 8], eax
je 0x473000
mov dword [eax], esi
add dword [edi + 4], 4
jmp 0x47300f
lea ecx, [ebp - 0x102bc]
push ecx
push eax
mov ecx, edi
call fcn.00474530
mov esi, dword [edi + 4]
sub esp, 8
push str.Item
mov ecx, ebx
call fcn.00474230
mov ebx, eax
test ebx, ebx
jne 0x472fb3
jmp 0x47302c
mov esi, dword [edi + 4]
xor ebx, ebx
cmp dword [edi], esi
setne bl
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x1027c]
mov edx, dword [ebp - 0x10288]
cmp edx, eax
je 0x473086
mov ecx, edx
nop dword [eax]
mov eax, ecx
neg eax
and eax, 3
mov esi, dword [eax + ecx]
mov eax, dword [ebp - 0x278]
test eax, eax
je 0x473069
push edx
call eax
jmp 0x47306f
push ecx
call fcn.005010e5
add esp, 4
mov edx, esi
mov dword [ebp - 0x10288], edx
mov ecx, esi
lea eax, [ebp - 0x1027c]
cmp esi, eax
jne 0x473050
lea eax, [ebp - 0x1027c]
mov dword [ebp - 0x10288], eax
neg eax
and eax, 3
lea ecx, [ebp - 0x1027c]
add ecx, eax
mov dword [ebp - 0x10284], ecx
lea eax, [ebp - 0x27c]
mov dword [ebp - 0x10280], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x270]
call fcn.00408260
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x258]
call fcn.00407f80
mov eax, ebx
jmp 0x47317c
lea eax, [ebp - 0x1027c]
mov dword [ebp - 0x10288], eax
neg eax
lea ecx, [ebp - 0x1027c]
and eax, 3
add eax, ecx
mov dword [ebp - 0x10284], eax
lea eax, [ebp - 0x27c]
mov dword [ebp - 0x10280], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x270]
call fcn.00408260
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x258]
call fcn.00407f80
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00500b45
mov esp, ebp
pop ebp
ret