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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3665
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x4e5a30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, 7
xor eax, eax
xor edx, edx
mov dword [edi + 0x14], ecx
mov dword [edi + 0x10], eax
mov dword [ebp - 0x42c], edi
mov word [edi], dx
lea esi, [edi + 0x1c]
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], eax
mov dword [ebp - 4], eax
mov word [esi], dx
mov dword [edi + 0x4c], ecx
mov dword [edi + 0x48], eax
mov word [edi + 0x38], dx
mov dword [edi + 0x68], ecx
xor ecx, ecx
mov dword [edi + 0x64], eax
mov word [edi + 0x54], cx
push 0x208
push eax
lea edx, [ebp - 0x21a]
push edx
mov byte [ebp - 4], 3
call fcn.004693e0
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
xor eax, eax
push 0x104
mov word [ebp - 0x21c], ax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x430330
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x21c]
push edx
mov ecx, edi
call fcn.004024be
push edi
push str.TempPath
call fcn.00440290
mov ecx, eax
call fcn.00401096
xor eax, eax
lea ecx, [ebp - 0x21c]
push ecx
push eax
push eax
push 0x23
push eax
mov word [ebp - 0x21c], ax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x430384
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x21c]
push edx
mov ecx, esi
call fcn.004024be
push 1
push 0x4c2680
mov ecx, esi
call fcn.00401a0a
push 0x11
push 0x4c3110
mov ecx, esi
call fcn.00401a0a
cmp dword [esi + 0x14], 8
jb 0x4303c8
mov eax, dword [esi]
jmp 0x4303ca
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4303ea
cmp dword [esi + 0x14], 8
jb 0x4303df
mov eax, dword [esi]
jmp 0x4303e1
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push 0x4c2680
mov ecx, esi
call fcn.00401a0a
push 0xffffffffffffffff
push 0
push esi
lea ecx, [edi + 0x38]
call fcn.004015a5
push esi
push str.AppdataPath
call fcn.00440290
mov ecx, eax
call fcn.004024e6
push 0x104
lea eax, [ebp - 0x424]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x430455
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x428]
push ecx
push 0x4c3ae0
mov dword [ebp - 0x428], eax
call fcn.00440290
mov ecx, eax
call fcn.004010f0
jmp 0x4304be
lea eax, [ebp - 0x424]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x430460
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x424]
push edx
lea ecx, [edi + 0x54]
call fcn.004024be
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x428]
push eax
lea ecx, [edi + 0x54]
mov dword [ebp - 0x428], 0x5c
call fcn.004015d2
mov ecx, dword [edi + 0x64]
inc eax
cmp eax, ecx
ja 0x4304b1
push 0xffffffffffffffff
push eax
lea ecx, [edi + 0x54]
call fcn.00401244
jmp 0x4304be
sub eax, ecx
push 0
push eax
lea ecx, [edi + 0x54]
call fcn.00402e41
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00469ca2
mov esp, ebp
pop ebp
ret