Function at 0x476080
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5395f1
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x102b0
call fcn.00502a70
mov eax, dword [0x57d54c]
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.00408060
mov dword [ebp - 4], 0
push 0x20a
push 0
lea eax, [ebp - 0x240]
push eax
call fcn.00504c70
add esp, 0xc
call fcn.00407680
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x476117
movaps xmm0, xmmword [0x565ac0]
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 0x476191
lea ecx, [ebp - 0x240]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x476137
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jbe 0x476191
push ecx
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x258]
call fcn.0040aad0
push 1
push 0x55fb5c
lea ecx, [ebp - 0x258]
call fcn.0040ac20
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x476175
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x258]
call fcn.0040ac20
lea ebx, [ebp - 0x258]
cmp dword [ebp - 0x244], 8
cmovae ebx, dword [ebp - 0x258]
call fcn.00407550
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x4761cc
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 0x476488
lea ecx, [ebp - 0x270]
call fcn.004082f0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x270]
lea ecx, [ebp - 0x258]
call fcn.0047b150
test eax, eax
je 0x476479
push 0x10044
push 0
lea eax, [ebp - 0x102b8]
push eax
call fcn.00504c70
add esp, 0xc
lea ecx, [ebp - 0x102b8]
call fcn.00477490
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.00477670
mov dword [ebp - 4], 2
sub esp, 8
push str.InsLog
lea ecx, [ebp - 0x102b8]
call fcn.00477570
test eax, eax
jne 0x4762be
mov byte [ebp - 4], 8
lea eax, [ebp - 0x1027c]
mov edx, dword [ebp - 0x10288]
cmp edx, eax
je 0x47644e
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 0x47629c
push edx
call eax
jmp 0x4762a2
push ecx
call fcn.00502435
add esp, 4
mov edx, esi
mov dword [ebp - 0x10288], edx
mov ecx, esi
lea eax, [ebp - 0x1027c]
cmp esi, eax
jne 0x476283
jmp 0x47644e
sub esp, 8
push str.Item
mov ecx, eax
call fcn.00477570
mov ebx, eax
test ebx, ebx
je 0x476349
xor esi, esi
mov dword [ebp - 0x102bc], esi
test ebx, ebx
je 0x476310
sub esp, 8
push str.labelid
mov ecx, ebx
call fcn.00477a60
test eax, eax
je 0x476310
mov eax, dword [eax + 4]
mov ecx, 0x581b24
test eax, eax
cmovne ecx, eax
push ecx
call fcn.0050ed72
add esp, 4
mov esi, eax
mov dword [ebp - 0x102bc], esi
mov eax, dword [edi + 4]
cmp dword [edi + 8], eax
je 0x476320
mov dword [eax], esi
add dword [edi + 4], 4
jmp 0x47632f
lea ecx, [ebp - 0x102bc]
push ecx
push eax
mov ecx, edi
call fcn.004777f0
mov esi, dword [edi + 4]
sub esp, 8
push str.Item
mov ecx, ebx
call fcn.004774f0
mov ebx, eax
test ebx, ebx
jne 0x4762d3
jmp 0x47634c
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 0x4763a6
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 0x476389
push edx
call eax
jmp 0x47638f
push ecx
call fcn.00502435
add esp, 4
mov edx, esi
mov dword [ebp - 0x10288], edx
mov ecx, esi
lea eax, [ebp - 0x1027c]
cmp esi, eax
jne 0x476370
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.004081f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x258]
call fcn.00407f10
mov eax, ebx
jmp 0x47649c
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.004081f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x258]
call fcn.00407f10
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.00501e95
mov esp, ebp
pop ebp
ret