Function at 0x4a2d5e
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572f0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x4130c
call fcn.005374e0
mov dword [ebp - 0x41300], ecx
call fcn.0055f60b
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
push 0x5b639c
mov ecx, dword [ebp - 0x10]
add ecx, 0x13c
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.0054d5cd
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x4a30ba
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x4cc
call fcn.0054c43e
mov ecx, dword [0x5be480]
mov dword [ebp - 0x20], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x412dc]
call fcn.004e70a0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x14]
mov eax, dword [edx - 8]
mov dword [ebp - 0x412f0], eax
push 2
push 0
mov ecx, dword [ebp - 0x412f0]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0054d76d
push eax
call fcn.004dfb41
add esp, 0xc
mov dword [ebp - 0x1c], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.0054d7bd
push 0x230
push 0
lea edx, [ebp - 0x264]
push edx
call fcn.005370b0
add esp, 0xc
mov dword [ebp - 0x412e0], 0
lea eax, [ebp - 0x264]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004dfc5f
add esp, 0xc
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x412e0], edx
mov eax, dword [0x5be480]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
mov ecx, dword [0x5be480]
mov dword [ebp - 0x268], ecx
mov byte [ebp - 4], 4
push 0x5b63c8
mov edx, dword [ebp - 0x10]
add edx, 0x13c
push edx
lea eax, [ebp - 0x412e4]
push eax
call fcn.0054d5cd
mov dword [ebp - 0x41304], eax
mov ecx, dword [ebp - 0x41304]
mov dword [ebp - 0x41308], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x41308]
push edx
lea ecx, [ebp - 0x268]
call fcn.0054d46f
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x412e4]
call fcn.0054d328
mov eax, dword [ebp - 0x268]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a2ef4
push 0
mov ecx, dword [ebp - 0x268]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4a2f26
push ecx
mov ecx, esp
mov dword [ebp - 0x412e8], esp
lea edx, [ebp - 0x268]
push edx
call fcn.0054d095
mov dword [ebp - 0x4130c], eax
mov ecx, dword [ebp - 0x10]
call fcn.004bb9ee
push 0
mov eax, dword [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x34]
call fcn.0054c3ab
mov byte [ebp - 4], 6
mov dword [ebp - 0x26c], 0
jmp 0x4a2f4d
mov ecx, dword [ebp - 0x26c]
add ecx, 1
mov dword [ebp - 0x26c], ecx
mov edx, dword [ebp - 0x26c]
cmp edx, dword [ebp - 0x412e0]
jge 0x4a303d
lea eax, [ebp - 0x264]
push eax
mov ecx, dword [ebp - 0x26c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004dfc5f
add esp, 0xc
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x268]
push ecx
lea edx, [ebp - 0x412ec]
push edx
call fcn.0054d5cd
mov dword [ebp - 0x41310], eax
mov eax, dword [ebp - 0x41310]
mov dword [ebp - 0x41314], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x41314]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0054d46f
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x412ec]
call fcn.0054d328
mov edx, dword [ebp - 0x18]
mov eax, dword [edx - 8]
mov dword [ebp - 0x412f4], eax
push 2
push 0
mov ecx, dword [ebp - 0x412f4]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0054d76d
push eax
mov edx, dword [ebp - 0x26c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004dfeea
add esp, 0x14
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.0054d7bd
mov ecx, dword [ebp - 0x10]
add ecx, 0x4cc
mov dword [ebp - 0x412fc], ecx
mov edx, dword [ebp - 0x412fc]
mov eax, dword [edx + 8]
mov dword [ebp - 0x412f8], eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x412f8]
push edx
mov ecx, dword [ebp - 0x412fc]
call fcn.0054c5b3
jmp 0x4a2f3e
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004e6e20
add esp, 4
and eax, 0xff
test eax, eax
je 0x4a3066
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004e6d77
add esp, 4
mov dword [ebp - 0x41318], eax
jmp 0x4a3078
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004dff55
add esp, 4
mov dword [ebp - 0x41318], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
call fcn.0054c3de
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x268]
call fcn.0054d328
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.0054d328
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x412dc]
call fcn.004e71cb
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0054d328
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0054d328
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret