Function at 0x42fa70
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x6397a8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x6eed24]
xor eax, ebp
mov dword [ebp + 0x208], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x1ac], 0
mov ecx, dword [ebp + 0x214]
mov dword [ebp - 0x1c], ecx
jne 0x42fc8e
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
push 0
mov ecx, 0x6f50d0
call fcn.0043d490
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x42faf8
mov eax, 0x649aa0
push dword [ebp - 0x14]
lea ecx, [edi + 0x178]
push eax
call fcn.00403940
mov eax, dword [edi + 0x18]
shr eax, 5
test al, 1
je 0x42fb55
mov ecx, dword [edi + 0x17c]
test ecx, ecx
je 0x42fb7f
mov eax, dword [edi + 0x178]
dec ecx
lea ecx, [eax + ecx*2]
cmp ecx, eax
jb 0x42fb3c
mov edx, 0x5c
mov edi, edi
cmp dx, word [ecx]
je 0x42fb3c
sub ecx, 2
cmp ecx, eax
jae 0x42fb30
sub ecx, eax
sar ecx, 1
test ecx, ecx
jle 0x42fb7f
mov eax, dword [ebp - 0x14]
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.0042e5f0
jmp 0x42fb7f
lea eax, [ebp]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
call fcn.00403940
cmp dword [ebp - 0x14], 0
je 0x42fccf
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x42fb8b
mov ecx, 0x649aa0
mov eax, dword [ebp - 0x14]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x42fba2
push 1
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.0040a5a0
push 0xffffffffffffffff
push str.Tracker_Software
lea ecx, [ebp - 0x18]
call fcn.004031a0
mov eax, dword [ebp - 0x18]
lea esi, [edi + 0x1a8]
test eax, eax
jne 0x42fbc3
mov eax, 0x649aa0
push dword [ebp - 0x14]
mov ecx, esi
push eax
call fcn.00403940
mov eax, dword [esi]
test eax, eax
jne 0x42fbd9
mov eax, 0x649aa0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42fc01
mov eax, dword [esi]
test eax, eax
jne 0x42fbf0
mov eax, 0x649aa0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x42fccf
push 1
push 0x5c
mov ecx, esi
call fcn.0040a5a0
push 0xffffffffffffffff
push 0x64d350
mov ecx, esi
call fcn.004031a0
mov eax, dword [esi]
test eax, eax
jne 0x42fc25
mov eax, 0x649aa0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42fc4d
mov eax, dword [esi]
test eax, eax
jne 0x42fc3c
mov eax, 0x649aa0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x42fccf
push 1
push 0x5c
mov ecx, esi
call fcn.0040a5a0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 2
test eax, eax
je 0x42fc6f
push eax
call fcn.00446420
add esp, 4
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi + 0x1a8]
test eax, eax
jne 0x42fc9d
mov eax, 0x649aa0
push dword [edi + 0x1ac]
push eax
call fcn.00403940
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004b2558
lea esp, [ebp + 0x20c]
pop ebp
ret 4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 1
test eax, eax
je 0x42fce6
push eax
call fcn.00446420
add esp, 4
xor al, al
jmp 0x42fcab