Function at 0x5a2dc0
Capabilities:
Check if file exists
Create directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x6eb874]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x84], ecx
push 0
mov ecx, dword [ebp + 0xc]
call fcn.0040dc90
push eax
lea ecx, [ebp - 0x34]
call fcn.004219c0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x64]
call fcn.006070b2
lea ecx, [ebp - 0x34]
call fcn.00421c50
lea ecx, [ebp - 0x1c]
call fcn.004219f0
lea ecx, [ebp - 0x1c]
push ecx
call sym.birdwp.exe_bool___cdecl_Loop::GetDLPath_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____
add esp, 4
push str.wpcache
lea ecx, [ebp - 0x1c]
call fcn.0047d5c0
mov ecx, eax
call fcn.00424f40
push eax
lea ecx, [ebp - 0x74]
call fcn.004131e0
lea ecx, [ebp - 0x74]
call fcn.0040d3c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5a2e5f
push 0xffffffffffffffff
lea ecx, [ebp - 0x74]
call fcn.004c9de0
push 0
lea ecx, [ebp - 0x74]
call fcn.0040d3c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x70]
call fcn.00413220
cmp dword [ebp + 0x10], 0
je 0x5a2e89
xor edx, edx
mov byte [ebp - 0x69], dl
lea ecx, [ebp - 0x69]
call fcn.005a5cb0
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00422a10
add esp, 8
jmp 0x5a2ea3
xor ecx, ecx
mov byte [ebp - 0x6a], cl
lea ecx, [ebp - 0x6a]
call fcn.005a6150
push eax
lea edx, [ebp - 0x70]
push edx
call fcn.00422a10
add esp, 8
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x74]
push ecx
lea edx, [ebp - 0x68]
push edx
call fcn.00421f30
add esp, 0xc
push 0x80
lea ecx, [ebp - 0x68]
call fcn.0040d3c0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
lea ecx, [ebp - 0x68]
call fcn.0040d3c0
push eax
lea ecx, [ebp - 0x4c]
call fcn.004219c0
push eax
call fcn.00606835
add esp, 8
movzx eax, al
mov dword [ebp - 0x7c], eax
lea ecx, [ebp - 0x4c]
call fcn.00421c50
mov dword [ebp - 0x78], 0
cmp dword [ebp - 0x7c], 0
jne 0x5a2fd6
cmp dword [ebp + 0x10], 0
je 0x5a2f2c
xor ecx, ecx
mov byte [ebp - 0x6b], cl
mov edx, dword [ebp - 0x78]
push edx
lea ecx, [ebp - 0x6b]
call fcn.005a5da0
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00422a10
add esp, 0xc
jmp 0x5a2f4a
xor ecx, ecx
mov byte [ebp - 0x6c], cl
mov edx, dword [ebp - 0x78]
push edx
lea ecx, [ebp - 0x6c]
call fcn.005a5700
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00422a10
add esp, 0xc
mov ecx, dword [ebp - 0x78]
add ecx, 1
mov dword [ebp - 0x78], ecx
lea edx, [ebp - 0x70]
push edx
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x80]
push ecx
call fcn.00421f30
add esp, 0xc
push eax
lea ecx, [ebp - 0x68]
call fcn.0040d360
lea ecx, [ebp - 0x80]
call fcn.00413870
push 0x80
lea ecx, [ebp - 0x68]
call fcn.0040d3c0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x68]
call fcn.0040d3c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5a2fa8
mov dword [ebp - 0x7c], 1
jmp 0x5a2fd1
lea ecx, [ebp - 0x68]
call fcn.0040d3c0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x68]
call fcn.0040d3c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5a2fd1
mov dword [ebp - 0x7c], 1
jmp 0x5a2efc
lea edx, [ebp - 0x68]
push edx
mov ecx, dword [ebp + 8]
call fcn.00421650
lea ecx, [ebp - 0x68]
call fcn.00413870
lea ecx, [ebp - 0x70]
call fcn.00413870
lea ecx, [ebp - 0x74]
call fcn.00413870
lea ecx, [ebp - 0x1c]
call fcn.00421c50
lea ecx, [ebp - 0x64]
call fcn.006070d3
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006135ac
mov esp, ebp
pop ebp
ret 0xc