Function at 0x41f760
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51fd4f
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x58c250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov eax, dword [0x58c214]
mov edx, dword [eax + 0xc]
lea esi, [ebx + 0x618]
mov ecx, 0x58c214
mov dword [ebp - 0x1c], esi
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 1
mov eax, dword [0x58c214]
mov edx, dword [eax + 0xc]
add esi, 4
mov ecx, 0x58c214
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.0045a0e0
mov byte [ebp - 4], 5
mov eax, dword [0x58c214]
mov edx, dword [eax + 0xc]
lea esi, [ebx + 0x654]
mov ecx, 0x58c214
mov dword [ebp - 0x20], esi
call edx
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 8
mov eax, dword [0x58c214]
mov edx, dword [eax + 0xc]
lea esi, [ebx + 0x658]
mov ecx, 0x58c214
mov dword [ebp - 0x20], esi
call edx
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0xb
lea ecx, [ebx + 0x65c]
call fcn.0041f450
mov byte [ebp - 4], 0xc
mov eax, dword [0x58c214]
mov edx, dword [eax + 0xc]
lea esi, [ebx + 0x688]
mov ecx, 0x58c214
mov dword [ebp - 0x20], esi
call edx
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0xf
push 0x208
push 0
push ebx
call fcn.004f0550
push 0x208
lea eax, [ebx + 0x410]
push 0
push eax
call fcn.004f0550
mov edx, dword [0x58c214]
mov eax, dword [edx + 0xc]
add esp, 0x18
mov ecx, 0x58c214
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x14]
push ecx
call fcn.004b45f0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
add esp, 4
or eax, ecx
jge 0x41f8c0
push 0x104
lea ecx, [ebp - 0x10]
call fcn.004018b0
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
push 0x104
push esi
push str.LogsDir
push edx
call fcn.004b4490
add esp, 0x10
test eax, eax
jne 0x41f93e
push ebx
push eax
push eax
push 0x1a
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea edi, [ebx - 2]
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x41f8f0
mov eax, dword [0x53bb00]
mov dword [edi], eax
mov eax, 0x53c398
mov edx, eax
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f910
sub eax, edx
lea edi, [ebx - 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x41f920
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 0x41f98f
test esi, esi
jne 0x41f946
xor eax, eax
jmp 0x41f965
mov eax, esi
lea edx, [eax + 2]
jmp 0x41f950
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f950
sub eax, edx
sar eax, 1
js 0x41fa09
cmp eax, dword [esi - 8]
jg 0x41fa09
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov ecx, ebx
sub ecx, esi
jmp 0x41f980
movzx eax, word [esi]
mov word [ecx + esi], ax
add esi, 2
test ax, ax
jne 0x41f980
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.004f3070
add esp, 0xc
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x41f9b1
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], 0xf
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 0x41f9ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004013f0
int3