Function at 0x40de60
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get startup folder
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x43e44c
mov eax, dword fs:[0]
push eax
sub esp, 0x2e4
mov eax, dword [0x44a2b8]
xor eax, esp
mov dword [esp + 0x2e0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44a2b8]
xor eax, esp
push eax
lea eax, [esp + 0x2f8]
mov dword fs:[0], eax
mov ecx, dword [0x44219c]
mov eax, dword [str.UserDataSet]
mov dword [esp + 0x88], ecx
mov ecx, dword [0x4421a8]
mov edx, dword [0x4421a0]
mov dword [esp + 0x94], ecx
mov ecx, 0xa
mov esi, str.UserDataSavePathType
lea edi, [esp + 0xc0]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ebp, 8
mov ecx, ebp
mov esi, str.UserDataSavePath
lea edi, [esp + 0x9c]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x84], eax
mov eax, dword [0x4421a4]
xor ebx, ebx
mov dword [esp + 0x8c], edx
mov edx, dword [0x4421ac]
mov dword [esp + 0x90], eax
xor eax, eax
mov dword [esp + 0x98], edx
movsw word es:[edi], word [esi]
mov word [esp + 0x70], bx
mov dword [esp + 0x72], eax
mov dword [esp + 0x76], eax
mov dword [esp + 0x7a], eax
mov dword [esp + 0x7e], eax
mov word [esp + 0x82], ax
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
lea ecx, [esp + 0x38]
mov dword [esp + 0x300], ebx
call fcn.0040dd30
test eax, eax
jne 0x40df6d
cmp dword [esp + 0x50], ebp
jb 0x40e179
mov eax, dword [esp + 0x3c]
push eax
jmp 0x40e171
push 0x441b18
push 0x208
push 0x104
push 0x44f428
call fcn.00425032
mov eax, dword [esp + 0x4c]
add esp, 0x10
cmp dword [esp + 0x50], ebp
jae 0x40df97
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40e1a3
mov ecx, 0x441b18
mov eax, 0x450e98
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40dfd7
cmp dx, bx
je 0x40dfd3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40dfd7
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x40dfb1
xor eax, eax
jmp 0x40dfdc
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40e005
mov eax, 0x44f838
lea edx, [eax + 2]
jmp 0x40dff0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40dff0
sub eax, edx
sar eax, 1
je 0x40e166
push 0x206
lea ecx, [esp + 0xf2]
push ebx
push ecx
mov word [esp + 0xf8], bx
call fcn.00429d70
add esp, 0xc
push ebx
mov edi, 7
push 0x441b18
lea esi, [esp + 0x24]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
call fcn.00401d00
push 1
push 5
lea edx, [esp + 0xf4]
push edx
push ebx
mov byte [esp + 0x310], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40e0d5
lea eax, [esp + 0xec]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40e070
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xf0]
push eax
lea esi, [esp + 0x24]
call fcn.00401d00
mov eax, dword [esp + 0x30]
lea esi, [eax - 1]
cmp esi, eax
jbe 0x40e0a1
call fcn.0042588d
cmp dword [esp + 0x34], ebp
mov eax, dword [esp + 0x20]
jae 0x40e0af
lea eax, [esp + 0x20]
cmp word [eax + esi*2], 0x5c
je 0x40e0c5
lea ecx, [esp + 0x1c]
push ecx
mov edx, 0x4420e8
call fcn.0040fd30
push 0xc
push str.QQCRM_Files_
lea ecx, [esp + 0x24]
call fcn.0040ff40
cmp dword [esp + 0x34], ebp
mov eax, dword [esp + 0x20]
jae 0x40e0e3
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e153
cmp dword [esp + 0x34], ebp
mov eax, dword [esp + 0x20]
jae 0x40e0fc
lea eax, [esp + 0x20]
push eax
push 0x441d18
push 0x208
push 0x104
push 0x44f428
call fcn.00425032
add esp, 0x14
cmp dword [esp + 0x34], ebp
jb 0x40e12c
mov edx, dword [esp + 0x20]
push edx
call fcn.004250ac
add esp, 4
cmp dword [esp + 0x50], ebp
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
jb 0x40e14c
mov eax, dword [esp + 0x3c]
push eax
call fcn.004250ac
add esp, 4
mov eax, 1
jmp 0x40e17b
cmp dword [esp + 0x34], ebp
jb 0x40e166
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004250ac
add esp, 4
cmp dword [esp + 0x50], ebp
jb 0x40e179
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004250ac
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x2f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2e0]
xor ecx, esp
call fcn.00424e88
add esp, 0x2f0
ret
cmp dword [esp + 0x50], ebp
mov eax, dword [esp + 0x3c]
jae 0x40e1b1
lea eax, [esp + 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
push 0x208
push 0x44f428
push 0x441b18
lea edx, [esp + 0xac]
push edx
lea eax, [esp + 0x98]
push eax
call esi
test eax, eax
je 0x40e166
cmp dword [esp + 0x50], ebp
mov eax, dword [esp + 0x3c]
jae 0x40e1eb
lea eax, [esp + 0x3c]
push eax
push 0xa
lea ecx, [esp + 0x78]
push ecx
push 0x441b18
lea edx, [esp + 0xd0]
push edx
lea eax, [esp + 0x98]
push eax
call esi
test eax, eax
je 0x40e41f
lea ecx, [esp + 0x70]
push 0x442654
push ecx
call fcn.004255c9
add esp, 8
test eax, eax
jne 0x40e2f1
mov edx, 0x441b18
lea eax, [esp + 0x1c]
call fcn.00401c90
push 1
push 5
lea edx, [esp + 0xf4]
push edx
push ebx
mov byte [esp + 0x310], 2
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40e29e
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0xf0]
call fcn.0040fd00
mov edi, dword [esp + 0x30]
add edi, 0xffffffff
lea eax, [esp + 0x1c]
call fcn.0040fe00
cmp word [eax], 0x5c
je 0x40e28f
lea ecx, [esp + 0x1c]
push ecx
mov edx, 0x4420e8
call fcn.0040fd30
lea edx, [esp + 0x1c]
push edx
mov edx, 0x4420ec
call fcn.0040fd30
mov eax, dword [esp + 0x20]
mov esi, 8
cmp dword [esp + 0x34], esi
jae 0x40e2b1
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e2e1
cmp dword [esp + 0x34], esi
mov edx, dword [esp + 0x20]
jae 0x40e2ca
lea edx, [esp + 0x20]
mov ecx, 0x44f428
nop
movzx eax, word [edx]
mov word [ecx], ax
add edx, 2
add ecx, 2
cmp ax, bx
jne 0x40e2d0
lea esi, [esp + 0x1c]
mov byte [esp + 0x300], bl
call fcn.00401cd0
xor esi, esi
cmp word [0x44f42a], bx
mov edx, 1
mov ecx, edx
je 0x40e345
mov eax, 0x44f42a
jmp 0x40e310
movzx eax, word [eax]
cmp ax, 0x5c
jne 0x40e324
cmp esi, ebx
jne 0x40e331
mov esi, 1
jmp 0x40e326
xor esi, esi
mov word [edx*2 + 0x44f428], ax
add edx, 1
add ecx, 1
cmp word [ecx*2 + 0x44f428], bx
lea eax, [ecx*2 + 0x44f428]
jne 0x40e310
cmp edx, ecx
jge 0x40e35d
sub ecx, edx
xor eax, eax
shr ecx, 1
lea edi, [edx*2 + 0x44f428]
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
push ebx
push 0x441b18
lea esi, [esp + 0x5c]
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], bx
call fcn.00401d00
mov eax, 0x44f428
mov byte [esp + 0x300], 3
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40e390
sub eax, edx
sar eax, 1
push eax
push 0x44f428
lea esi, [esp + 0x5c]
call fcn.00401d00
mov eax, dword [esp + 0x68]
lea esi, [eax - 1]
cmp esi, eax
jbe 0x40e3be
call fcn.0042588d
mov edi, dword [esp + 0x6c]
cmp edi, 8
mov ebp, dword [esp + 0x58]
mov eax, ebp
jae 0x40e3d1
lea eax, [esp + 0x58]
cmp word [eax + esi*2], 0x5c
je 0x40e3f0
push 1
push 0x4420e8
lea ecx, [esp + 0x5c]
call fcn.0040ff40
mov edi, dword [esp + 0x6c]
mov ebp, dword [esp + 0x58]
cmp edi, 8
mov ecx, ebp
jae 0x40e3fb
lea ecx, [esp + 0x58]
mov edx, 0x44f428
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x40e400
cmp edi, 8
jb 0x40e41f
push ebp
call fcn.004250ac
add esp, 4
cmp dword [esp + 0x50], 8
jmp 0x40e13d