Function at 0x52c7c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65c205
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
push ebx
mov ebx, ecx
push esi
lea esi, [ebx + 0x618]
push edi
mov ecx, 0x700724
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], esi
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 1
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
add esi, 4
mov ecx, 0x700724
mov dword [ebp - 0x20], esi
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 4
lea ecx, [ebx + 0x640]
call fcn.004d6f40
mov byte [ebp - 4], 5
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
lea esi, [ebx + 0x654]
mov ecx, 0x700724
mov dword [ebp - 0x20], esi
call edx
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 8
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
lea esi, [ebx + 0x658]
mov ecx, 0x700724
mov dword [ebp - 0x20], esi
call edx
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0xb
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
lea esi, [ebx + 0x65c]
mov ecx, 0x700724
mov dword [ebp - 0x20], esi
call edx
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0xd
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
lea edi, [esi + 4]
mov ecx, 0x700724
mov dword [ebp - 0x1c], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0xf
add esi, 8
mov dword [ebp - 0x1c], esi
mov ecx, 0x700724
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
call edx
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0x12
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
lea esi, [ebx + 0x688]
mov ecx, 0x700724
mov dword [ebp - 0x20], esi
call edx
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0x15
push 0x208
push 0
push ebx
call fcn.006100a0
push 0x208
lea eax, [ebx + 0x410]
push 0
push eax
call fcn.006100a0
mov edx, dword [0x700724]
mov eax, dword [edx + 0xc]
add esp, 0x18
mov ecx, 0x700724
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x14]
push ecx
call fcn.005bd6c0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
add esp, 4
or eax, ecx
jge 0x52c964
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00401400
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
push 0x104
push esi
push str.LogsDir
push edx
call fcn.005bd4f0
add esp, 0x10
test eax, eax
jne 0x52c9de
push ebx
push eax
push eax
push 0x1a
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea edi, [ebx - 2]
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x52c990
mov eax, dword [0x66ea40]
mov dword [edi], eax
mov eax, 0x67a458
mov edx, eax
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x52c9b0
sub eax, edx
lea edi, [ebx - 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x52c9c0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x52ca2f
test esi, esi
jne 0x52c9e6
xor eax, eax
jmp 0x52ca05
mov eax, esi
lea edx, [eax + 2]
jmp 0x52c9f0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x52c9f0
sub eax, edx
sar eax, 1
js 0x52caa8
cmp eax, dword [esi - 8]
jg 0x52caa8
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov ecx, ebx
sub ecx, esi
jmp 0x52ca20
movzx eax, word [esi]
mov word [ecx + esi], ax
add esi, 2
test ax, ax
jne 0x52ca20
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
lea edi, [ebx + 0x208]
push ebx
push edi
call fcn.006125de
add esp, 0xc
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x52ca51
mov ecx, 9
mov esi, str.LogMacParser.log
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52ca8e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004011d0
int3