Function at 0x41c110
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d046f
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x507254]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x6c], edi
xor eax, eax
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push 0xfffe
mov dword [ebp - 4], eax
call fcn.004a6639
push 0xfffe
mov ebx, eax
push 0
push ebx
call fcn.004a8a30
add esp, 0x10
mov dword [ebp - 0x44], ebx
push ebx
push 0
push 0
push 0x23
push 0
mov byte [ebp - 4], 1
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x41c1f9
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41c1a6
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.00403940
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x41c1e8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x41c1e8
push 1
push 0x4ebc40
lea ecx, [ebp - 0x28]
call fcn.00402df0
push 0x1a
push str.BDLoggingWatchDog_repair_
lea ecx, [ebp - 0x28]
call fcn.00402df0
jmp 0x41c208
push 0x11
push str.c:_tempWatchDog_
lea ecx, [ebp - 0x28]
call fcn.00403940
mov byte [ebp - 0x48], 0
lea eax, [ebp - 0x28]
push dword [ebp - 0x48]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00412720
add esp, 0xc
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x50], 8
cmovae eax, dword [ebp - 0x64]
push eax
call fcn.0048fee3
mov esi, dword [ebp - 0x50]
mov eax, edx
mov dword [ebp - 0x48], eax
cmp esi, 8
jb 0x41c272
mov ecx, dword [ebp - 0x64]
lea esi, [esi*2 + 2]
mov eax, ecx
cmp esi, 0x1000
jb 0x41c265
mov ecx, dword [ecx - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c5bc
push esi
push ecx
call fcn.004a6287
mov eax, dword [ebp - 0x48]
add esp, 8
test eax, eax
je 0x41c449
push str.get_log_file
mov edx, 4
lea ecx, [ebp - 0x114]
call fcn.004090a0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 2
mov al, byte [esi + 0x48]
test al, al
je 0x41c2d1
push 0x4ed5f8
push esi
call fcn.00412180
mov al, byte [esi + 0x48]
add esp, 8
test al, al
je 0x41c2d1
push dword [ebp - 0x48]
mov ecx, esi
call fcn.0040b3f0
mov al, byte [esi + 0x48]
test al, al
je 0x41c2d1
mov edx, 0x4ed5f4
mov ecx, esi
call fcn.0040cb90
push dword [ebp - 0x48]
mov eax, dword [0x507cf0]
lea ecx, [ebp - 0x64]
push ecx
mov ecx, 0x507cf0
call dword [eax + 8]
mov byte [ebp - 4], 3
lea eax, [ebp - 0x64]
mov edx, dword [ebp - 0x50]
cmp edx, 0x10
mov ecx, dword [ebp - 0x64]
cmovae eax, ecx
cmp byte [esi + 0x48], 0
je 0x41c30d
mov edx, eax
mov ecx, esi
call fcn.0040cb90
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x64]
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x41c33f
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41c335
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c5c1
push edx
push ecx
call fcn.004a6287
add esp, 8
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
call fcn.00408f30
mov dword [edi], 0x4ec198
mov dword [edi + 0x70], 0
mov dword [edi + 0x90], 0
mov dword [edi + 0x94], 0
mov dword [edi + 0x98], 0
mov dword [edi + 0x68], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [ebp - 4], 4
lea esi, [edi + 4]
mov eax, dword [edi]
mov dword [ebp - 0x68], 0x32
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
push ecx
push esi
call fcn.0040aac0
mov dword [ebp - 4], 6
mov ecx, esi
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edi]
mov edx, dword [eax + 4]
lea eax, [edx - 0x68]
mov dword [edx + edi - 4], eax
call fcn.00422840
push ebx
call fcn.004a62c5
mov edx, dword [ebp - 0x14]
add esp, 4
cmp edx, 8
jb 0x41c42b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41c421
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c5b7
push edx
push ecx
call fcn.004a6287
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a6256
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x40]
push eax
call fcn.00431260
mov byte [ebp - 4], 7
lea edx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x30]
mov byte [ebp - 0x48], 0
jb 0x41c470
mov ecx, dword [ebp - 0x40]
mov edx, ecx
lea eax, [ecx + eax*2]
jmp 0x41c476
lea ecx, [ebp - 0x40]
lea eax, [ecx + eax*2]
push dword [ebp - 0x48]
push edx
push eax
push ecx
lea ecx, [ebp - 0x6c]
call fcn.004281c0
mov ecx, dword [ebp - 0x30]
mov eax, SysReAllocString
sub eax, ecx
add esp, 0x10
cmp eax, 4
jb 0x41c5c6
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 4
cmovae eax, dword [ebp - 0x40]
push str..log
push ecx
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x44]
lea ecx, [ebp - 0x64]
call fcn.00408230
mov byte [ebp - 4], 8
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x50], 8
lea ecx, [ebp - 0x28]
push dword [ebp - 0x54]
cmovae eax, dword [ebp - 0x64]
push eax
call fcn.00402df0
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x50]
cmp edx, 8
jb 0x41c516
mov ecx, dword [ebp - 0x64]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41c50c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c5b7
push edx
push ecx
call fcn.004a6287
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, edi
cmovae eax, dword [ebp - 0x28]
sub esp, 0xc
push eax
call fcn.00420250
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x41c562
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41c558
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c5b7
push edx
push ecx
call fcn.004a6287
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
push ebx
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.004a62c5
mov edx, dword [ebp - 0x14]
add esp, 4
cmp edx, 8
jb 0x41c42b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41c421
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41c421
call fcn.004ab23f
call fcn.004ab23f
call fcn.004ab23f
call fcn.00403ae0
int3