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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f268
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x5bf500]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 4], 0
xor eax, eax
xor edi, edi
mov word [ebp - 0x44], ax
push eax
mov dword [ebp - 0x34], edi
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], edi
push 0x58d0e4
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], edi
call fcn.00404140
mov byte [ebp - 4], 1
push edi
push 0x58d0e4
push dword [ebp + 0x1c]
push ecx
lea ecx, [ebp + 0xc]
call fcn.00405220
test eax, eax
je 0x4258f4
push 0xffffffffffffffff
push edi
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x44]
call fcn.004044f0
jmp 0x42592f
push esi
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x42592f
cmp word [esi], 0
jne 0x425911
xor ecx, ecx
jmp 0x425925
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425916
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x44]
call fcn.00404140
push 0
push 0x58d0e4
push dword [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x44]
call fcn.00405220
test eax, eax
je 0x425bd1
xor eax, eax
mov dword [ebp - 0x1c], 0
push 0xffffffffffffffff
push eax
mov word [ebp - 0x2c], ax
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x44]
mov dword [ebp - 0x18], 0
push eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
call fcn.004044f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
push 6
push 0
push str.Local
call fcn.004049b0
mov edx, dword [ebp - 0x1c]
lea ecx, [edx - 6]
cmp eax, ecx
jne 0x425a77
lea eax, [edx - 5]
push eax
push 0
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004042c0
mov byte [ebp - 4], 3
mov edx, eax
push str.LocalLow
lea ecx, [ebp - 0x5c]
call fcn.00419d80
add esp, 4
mov edi, eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2c]
cmp eax, edi
je 0x425a01
cmp dword [ebp - 0x18], 8
jb 0x4259e4
push dword [ebp - 0x2c]
call fcn.00443e80
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.00404450
mov byte [ebp - 4], 3
cmp dword [ebp - 0x48], 8
jb 0x425a16
push dword [ebp - 0x5c]
call fcn.00443e80
add esp, 4
xor eax, eax
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x60], 8
jb 0x425a3f
push dword [ebp - 0x74]
call fcn.00443e80
add esp, 4
xor eax, eax
mov dword [ebp - 0x60], 7
cmp dword [ebp - 0x18], 8
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
mov dword [ebp - 0x64], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x425b41
and eax, 0x10
je 0x425b41
push 0x591868
lea ecx, [ebp - 0x5c]
call fcn.00403ff0
mov byte [ebp - 4], 5
mov edx, 0x58d734
push eax
lea ecx, [ebp - 0x74]
call fcn.0042bfe0
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c]
push 0xffffffffffffffff
push 0
push eax
call fcn.00404bb0
mov byte [ebp - 4], 5
cmp dword [ebp - 0x60], 8
jb 0x425abf
push dword [ebp - 0x74]
call fcn.00443e80
add esp, 4
xor eax, eax
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x64], 0
mov word [ebp - 0x74], ax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x48], 8
jb 0x425ae8
push dword [ebp - 0x5c]
call fcn.00443e80
add esp, 4
xor eax, eax
mov dword [ebp - 0x48], 7
cmp dword [ebp - 0x18], 8
mov word [ebp - 0x5c], ax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
mov dword [ebp - 0x4c], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x425b29
and eax, 0x10
je 0x425b29
push 1
push 0x58d734
lea ecx, [ebp - 0x2c]
call fcn.00404c80
jmp 0x425b87
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x425b7a
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 8
jb 0x425b62
push dword [ebp - 0x2c]
call fcn.00443e80
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
xor edi, edi
mov word [ebp - 0x2c], ax
jmp 0x425bdd
push 0x58d734
lea ecx, [ebp - 0x2c]
call fcn.004040f0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push 0x400
push esi
call fcn.00523667
mov edi, 1
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 8
jb 0x425bbb
push dword [ebp - 0x2c]
call fcn.00443e80
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
jmp 0x425bdd
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov byte [ebp - 4], 0
cmp dword [ebp - 0x30], 8
jb 0x425bf2
push dword [ebp - 0x44]
call fcn.00443e80
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x20], 8
jb 0x425c1e
push dword [ebp + 0xc]
call fcn.00443e80
add esp, 4
xor eax, eax
mov dword [ebp + 0x20], 7
mov word [ebp + 0xc], ax
mov eax, edi
mov dword [ebp + 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0051ece9
mov esp, ebp
pop ebp
ret