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

Disassembly:
push 0xffffffffffffffff
push 0x41edc4
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x42afb8]
xor eax, esp
mov dword [esp + 0x17c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42afb8]
xor eax, esp
push eax
lea eax, [esp + 0x194]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1a4]
push esi
mov ebp, 1
push SysReAllocStringLen
lea ecx, [esp + 0x68]
mov dword [esp + 0x1a4], ebp
call fcn.0041aec0
mov edi, dword [esp + 0x1a8]
push edi
push SysReAllocStringLen
lea ecx, [esp + 0x7c]
mov byte [esp + 0x1a4], 2
call fcn.0041aec0
xor ecx, ecx
mov eax, 0x20
mov edx, 4
mul edx
seto cl
mov byte [esp + 0x19c], 3
mov dword [esp + 0x40], vtable.Table_char__char__.0
neg ecx
or ecx, eax
push ecx
call fcn.0041c818
xor ebx, ebx
add esp, 4
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], 0x1f
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], 0x40
mov dword [esp + 0x5c], 0x401330
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x1a0], 4
call fcn.0041b2d0
mov eax, dword [esp + 0x48]
cmp eax, ebx
jne 0x40c095
lea ecx, [esp + 0x40]
mov byte [esp + 0x19c], 3
call fcn.00401630
lea ecx, [esp + 0x74]
mov byte [esp + 0x19c], 2
call fcn.0041af40
lea ecx, [esp + 0x60]
mov byte [esp + 0x19c], 1
call fcn.0041af40
lea eax, [esi - 0x10]
mov byte [esp + 0x19c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c067
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x19c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c08e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40c5f5
xor edi, edi
cmp eax, ebx
jle 0x40c1e7
mov bl, 5
mov edx, dword [0x434350]
mov eax, dword [edx + 0xc]
mov ecx, 0x434350
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
cmp edi, dword [esp + 0x48]
mov byte [esp + 0x19c], bl
jge 0x40c0d2
test edi, edi
jl 0x40c0d2
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx + edi*4]
jmp 0x40c0d4
xor eax, eax
push eax
lea ecx, [esp + 0x18]
call fcn.00402c30
mov edx, dword [esp + 0x14]
push 0
push edx
lea ecx, [esp + 0x68]
mov byte [esp + 0x1a4], 6
call fcn.0041b0b0
mov esi, eax
test esi, esi
jne 0x40c12e
mov eax, dword [esp + 0x14]
push eax
push str.Kevin:_Migrate_Message_error__Message_time_is___s__n
call fcn.0041ae70
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 8
mov byte [esp + 0x19c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40c1a7
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40c133
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x24]
call fcn.004026b0
lea ecx, [esp + 0x1c]
call fcn.00402ad0
mov ecx, eax
call fcn.00402540
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
add esp, 4
push ecx
push edx
lea ecx, [esp + 0x7c]
call fcn.0041b150
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push eax
push ecx
push str.Kevin:_Migrate_old_message_to_new_registry_location:__s___s_n
call fcn.0041ae70
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x19c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c1b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x19c], 4
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c1db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, ebp
cmp edi, dword [esp + 0x48]
jl 0x40c0a1
mov edx, dword [0x434350]
mov eax, dword [edx + 0xc]
mov ecx, 0x434350
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov ecx, dword [0x42b0c8]
mov eax, dword [ecx + 0x1b4]
push ebp
push 0x1c
lea edx, [esp + 0x90]
push edx
push eax
mov byte [esp + 0x1ac], 7
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x18]
call fcn.00402c30
push str.ACD_SystemsACDSee_MessageCenterMessage
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
mov bl, 8
push edx
mov byte [esp + 0x1a8], bl
call fcn.00402910
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x1a0], 9
call fcn.00402b30
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x19c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c28e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x19c], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c2b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x42b0c8]
mov edx, dword [ecx + 0x1b4]
mov eax, dword [0x434350]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 0xc]
mov ecx, 0x434350
xor esi, esi
mov dword [esp + 0x24], ebp
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
push str..
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
mov bl, 0xa
push ecx
mov byte [esp + 0x1a8], bl
call fcn.00402910
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1a0], 0xb
call fcn.00402b30
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x19c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c33b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x88]
mov eax, edi
sub edx, edi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, ebp
test cl, cl
jne 0x40c350
lea eax, [esp + 0x88]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40c365
sub eax, edx
mov byte [esp + eax + 0x89], cl
lea ecx, [esp + 0x88]
lea edx, [esp + 0x18]
mov dword [esp + 0x28], ecx
mov ecx, dword [0x42b0c8]
push edx
call fcn.00401e10
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c3b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [sym.imp.SHELL32.dll_SHFileOperationA]
xor eax, eax
lea ecx, [esp + 0x20]
push ecx
mov word [esp + 0x34], 0x414
mov dword [esp + 0x36], eax
mov dword [esp + 0x3a], eax
mov dword [esp + 0x3e], eax
call ebp
test eax, eax
je 0x40c438
mov edx, dword [0x434350]
mov eax, dword [edx + 0xc]
mov ecx, 0x434350
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
push str.Kevin:_Can_not_copy_the_old_messages_files_to_MC_1.2_location_n
push ecx
mov byte [esp + 0x1a4], 0xc
call fcn.00402bb0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 8
mov byte [esp + 0x19c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c43d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40c43d
mov esi, 1
lea eax, [edi - 0x10]
mov byte [esp + 0x19c], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c461
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor edi, edi
cmp esi, edi
mov esi, dword [esp + 0x1c]
je 0x40c540
mov ecx, dword [0x42b0c8]
mov edx, dword [ecx + 0x1b4]
mov dword [esp + 0x20], edx
lea edx, [esp + 0x88]
mov dword [esp + 0x24], 3
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x40c492
lea eax, [esp + 0x88]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40c4a8
sub eax, edx
mov byte [esp + eax + 0x89], cl
lea ecx, [esp + 0x20]
lea eax, [esp + 0x88]
push ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edi
mov word [esp + 0x34], 0x414
mov dword [esp + 0x36], edi
mov dword [esp + 0x3a], edi
mov dword [esp + 0x3e], edi
call ebp
test eax, eax
je 0x40c540
mov edx, dword [0x434350]
mov eax, dword [edx + 0xc]
mov ecx, 0x434350
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
push str.Kevin:_Can_not_delete_the_old_messages_folder_n
push ecx
mov byte [esp + 0x1a4], 0xd
call fcn.00402bb0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 8
mov byte [esp + 0x19c], 7
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c540
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x19c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c564
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x19c], 3
call fcn.00401630
lea ecx, [esp + 0x74]
mov byte [esp + 0x19c], 2
call fcn.0041af40
lea ecx, [esp + 0x60]
mov byte [esp + 0x19c], 1
call fcn.0041af40
mov eax, dword [esp + 0x1a4]
add eax, 0xfffffff0
mov byte [esp + 0x19c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c5c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1a8]
add eax, 0xfffffff0
mov dword [esp + 0x19c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c5f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x194]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x17c]
xor ecx, esp
call fcn.0041ce52
add esp, 0x18c
ret 8