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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002f4e0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x10046270]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], vtable.CStringBufferW.0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x38], vtable.CStringBufferW.0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 2
call fcn.10005950
lea eax, [ebp - 0x58]
push eax
mov byte [ebp - 4], 3
call fcn.10011a80
mov edi, eax
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x1c]
cmp esi, dword [edi + 0xc]
je 0x10005ac9
test esi, esi
je 0x10005aa3
push esi
call fcn.1001df51
add esp, 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
push dword [edi + 4]
lea ecx, [ebp - 0x28]
push dword [edi + 0xc]
call fcn.1000a470
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x58], vtable.CStringBufferW.0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x10005ae7
push eax
call fcn.1001df51
mov esi, dword [ebp - 0x1c]
add esp, 4
mov byte [ebp - 4], 3
test esi, esi
je 0x10005c62
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10005c62
mov edi, dword [ebp - 0x2c]
test edi, edi
je 0x10005b37
test eax, eax
jle 0x10005b2b
lea ecx, [eax - 1]
cmp ecx, eax
sbb eax, eax
inc eax
jne 0x10005b21
movzx eax, word [esi + ecx*2]
cmp eax, 0x5c
je 0x10005b2b
cmp eax, 0x2f
je 0x10005b2b
push 0x5c
lea ecx, [ebp - 0x28]
call fcn.1000a6b0
push edi
lea ecx, [ebp - 0x28]
call fcn.1000a740
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x18], vtable.CFileHandler.0
mov byte [ebp - 4], 6
cmp dword [0x10048cf0], 0
jne 0x10005c62
test esi, esi
je 0x10005c62
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x10005b77
push 0
push esi
push 0
call ebx
test eax, eax
jne 0x10005c5f
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [esi + 0xc]
cmp eax, ecx
je 0x10005bb4
test eax, eax
je 0x10005b94
push eax
call fcn.1001df51
mov ecx, dword [ebp - 0x1c]
add esp, 4
push dword [ebp - 0x24]
mov dword [esi + 0xc], 0
push ecx
mov ecx, esi
mov dword [esi + 8], 0
mov dword [esi + 4], 0
call fcn.1000a470
mov edi, dword [ebp - 0x3c]
test edi, edi
je 0x10005bee
mov eax, dword [esi + 4]
test eax, eax
jle 0x10005be6
lea ecx, [eax - 1]
cmp ecx, eax
sbb eax, eax
inc eax
jne 0x10005bdd
mov eax, dword [esi + 0xc]
movzx eax, word [eax + ecx*2]
cmp eax, 0x5c
je 0x10005be6
cmp eax, 0x2f
je 0x10005be6
push 0x5c
mov ecx, esi
call fcn.1000a6b0
push edi
mov ecx, esi
call fcn.1000a740
mov eax, dword [esi + 4]
test eax, eax
jle 0x10005c19
lea ecx, [eax - 1]
cmp ecx, eax
sbb eax, eax
inc eax
jne 0x10005c10
mov eax, dword [esi + 0xc]
movzx eax, word [eax + ecx*2]
cmp eax, 0x5c
je 0x10005c19
cmp eax, 0x2f
je 0x10005c19
push 0x5c
mov ecx, esi
call fcn.1000a6b0
push str.Logs
mov ecx, esi
call fcn.1000a740
cmp dword [0x10048cf0], 0
mov edi, dword [esi + 0xc]
jne 0x10005c5f
test edi, edi
je 0x10005c5f
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10005c49
push eax
push edi
push eax
call ebx
test eax, eax
jne 0x10005c5f
push str.CT_internal
mov ecx, esi
call fcn.1000a6f0
mov esi, dword [ebp - 0x1c]
mov ebx, 1
jmp 0x10005c64
mov esi, dword [ebp - 0x1c]
xor ebx, ebx
mov dword [ebp - 0x48], vtable.CStringBufferW.0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x10005c82
push eax
call fcn.1001df51
mov esi, dword [ebp - 0x1c]
add esp, 4
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], vtable.CSeed.0
mov dword [ebp - 0x38], vtable.CStringBufferW.0
mov byte [ebp - 4], 8
mov edi, dword [ebp - 0x2c]
test edi, edi
je 0x10005cbc
push edi
call fcn.1001df51
mov esi, dword [ebp - 0x1c]
add esp, 4
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], vtable.CSeed.0
mov dword [ebp - 0x28], vtable.CStringBufferW.0
mov byte [ebp - 4], 9
test esi, esi
je 0x10005cf0
push esi
call fcn.1001df51
add esp, 4
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], vtable.CSeed.0
test ecx, ecx
je 0x10005d1a
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4