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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6f8578
mov eax, dword fs:[0]
push eax
sub esp, 0xb00
mov eax, dword [0x7ce4e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0xb0c], eax
xor eax, eax
mov dword [ebp - 0xb08], eax
test edi, edi
je 0x590900
push edi
lea ecx, [ebp - 0xab4]
call fcn.0058ddc0
lea ecx, [ebp - 0xab4]
mov dword [ebp - 4], 0
mov dword [ebp - 0xb08], 1
call fcn.00495aa0
cmp dword [eax + 0x14], 8
jb 0x5908d8
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5908fa
shr eax, 4
test al, 1
mov eax, dword [ebp - 0xb08]
je 0x590900
mov byte [ebp - 0xb01], 1
jmp 0x590907
mov eax, dword [ebp - 0xb08]
mov byte [ebp - 0xb01], 0
mov dword [ebp - 4], 0xffffffff
test al, 1
je 0x59091d
lea ecx, [ebp - 0xab4]
call fcn.00513e90
cmp byte [ebp - 0xb01], 0
je 0x590b19
push edi
lea ecx, [ebp - 0xab4]
call fcn.0058ddc0
push str.Temp
lea ecx, [ebp - 0xab4]
mov dword [ebp - 4], 1
call fcn.0058dff0
lea ecx, [ebp - 0xab4]
call fcn.00495aa0
cmp dword [eax + 0x14], 8
jb 0x590960
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x590973
shr eax, 4
test al, 1
jne 0x5909b4
lea ecx, [ebp - 0xab4]
call fcn.00495aa0
cmp dword [eax + 0x14], 8
jb 0x590986
mov eax, dword [eax]
push eax
call fcn.005d638a
add esp, 4
cmp eax, 0xffffffff
jne 0x5909b4
xorps xmm0, xmm0
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x20], xmm0
call fcn.005c45dc
push dword [eax]
lea eax, [ebp - 0x30]
push 0x20
push eax
call fcn.005d6321
add esp, 0xc
lea eax, [ebp - 0xa68]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0xa68], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0x208
lea eax, [ebp - 0x440]
push 0
push eax
call fcn.005c0be0
movzx eax, word [ebp - 0xa5a]
push eax
movzx eax, word [ebp - 0xa5c]
push eax
movzx eax, word [ebp - 0xa5e]
push eax
movzx eax, word [ebp - 0xa60]
push eax
movzx eax, word [ebp - 0xa62]
push eax
movzx eax, word [ebp - 0xa66]
push eax
movzx eax, word [ebp - 0xa68]
push eax
push str._04d_02d_02d_02d_02d_02d_03d
lea eax, [ebp - 0x440]
push 0x104
push eax
call fcn.00514fb0
push 0x208
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.005c0be0
add esp, 0x40
lea ecx, [ebp - 0xab4]
call fcn.00495aa0
cmp dword [eax + 0x14], 8
jb 0x590a55
mov eax, dword [eax]
lea ecx, [ebp - 0x238]
push ecx
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x590ad6
lea eax, [ebp - 0x238]
mov ecx, esi
push eax
call fcn.0058df50
push dword [ebp - 0xb0c]
mov ecx, esi
call fcn.0058e050
lea eax, [ebp - 0x440]
mov ecx, esi
push eax
call fcn.0058e050
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0xb00]
call fcn.0058ddc0
lea eax, [ebp - 0xb00]
mov byte [ebp - 4], 2
push eax
call fcn.00591110
add esp, 4
lea ecx, [ebp - 0xb00]
call fcn.00513e90
lea ecx, [ebp - 0xab4]
call fcn.00513e90
mov al, 1
jmp 0x590c65
push dword [ebp - 0xb0c]
lea ecx, [ebp - 0xab4]
call fcn.0058dff0
lea eax, [ebp - 0x440]
push eax
lea ecx, [ebp - 0xab4]
call fcn.0058e050
lea eax, [ebp - 0xab4]
mov ecx, esi
push eax
call fcn.0058dee0
lea ecx, [ebp - 0xab4]
call fcn.00513e90
mov al, 1
jmp 0x590c65
push 0x208
lea eax, [ebp - 0x850]
push 0
push eax
call fcn.005c0be0
add esp, 0xc
lea eax, [ebp - 0x850]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x590c63
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0x208
lea eax, [ebp - 0xa58]
push 0
push eax
call fcn.005c0be0
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x14]
push eax
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x18]
push eax
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1e]
push eax
movzx eax, word [ebp - 0x20]
push eax
push str._04d_02d_02d_02d_02d_02d_03d
lea eax, [ebp - 0xa58]
push 0x104
push eax
call fcn.00514fb0
push 0x208
lea eax, [ebp - 0x648]
push 0
push eax
call fcn.005c0be0
add esp, 0x40
lea eax, [ebp - 0x648]
push eax
push 0
push 0
lea eax, [ebp - 0x850]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ecx, esi
test eax, eax
je 0x590c38
lea eax, [ebp - 0x648]
push eax
call fcn.0058df50
push dword [ebp - 0xb0c]
mov ecx, esi
call fcn.0058e050
lea eax, [ebp - 0xa58]
mov ecx, esi
push eax
call fcn.0058e050
lea eax, [ebp - 0x648]
push eax
lea ecx, [ebp - 0xb00]
call fcn.0058ddc0
lea eax, [ebp - 0xb00]
mov dword [ebp - 4], 3
push eax
call fcn.00591110
add esp, 4
lea ecx, [ebp - 0xb00]
call fcn.00513e90
mov al, 1
jmp 0x590c65
lea eax, [ebp - 0x850]
push eax
call fcn.0058df50
push dword [ebp - 0xb0c]
mov ecx, esi
call fcn.0058dff0
lea eax, [ebp - 0xa58]
mov ecx, esi
push eax
call fcn.0058e050
mov al, 1
jmp 0x590c65
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005be209
mov esp, ebp
pop ebp
ret