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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008d5a8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x100c90c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], vtable.CFileHandler.0
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x30]
push dword [eax + 4]
mov dword [ebp - 0x30], vtable.CStringBufferW.0
push dword [eax + 0xc]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
call fcn.1003ea90
mov byte [ebp - 4], 2
mov esi, dword [ebp + 0x10]
mov esi, dword [esi + 0xc]
test esi, esi
je 0x1005bfd6
mov eax, dword [ebp - 0x2c]
test eax, eax
jle 0x1005bfcd
lea ecx, [eax - 1]
cmp ecx, eax
sbb eax, eax
inc eax
jne 0x1005bfc3
mov eax, dword [ebp - 0x24]
movzx eax, word [eax + ecx*2]
cmp eax, 0x5c
je 0x1005bfcd
cmp eax, 0x2f
je 0x1005bfcd
push 0x5c
lea ecx, [ebp - 0x30]
call fcn.1003eea0
push esi
lea ecx, [ebp - 0x30]
call fcn.1003ef80
mov edi, dword [ebp - 0x24]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test edi, edi
je 0x1005bff4
cmp dword [ebp - 0x2c], 0
je 0x1005bff4
push edi
call ebx
test eax, eax
jne 0x1005c15d
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
push dword [eax + 4]
mov dword [ebp - 0x20], vtable.CStringBufferW.0
push dword [eax + 0xc]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
call fcn.1003ea90
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0x10]
mov esi, dword [eax + 0xc]
test esi, esi
je 0x1005c068
mov eax, dword [ebp - 0x1c]
test eax, eax
jle 0x1005c05f
lea ecx, [eax - 1]
cmp ecx, eax
sbb eax, eax
inc eax
jne 0x1005c055
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + ecx*2]
cmp eax, 0x5c
je 0x1005c05f
cmp eax, 0x2f
je 0x1005c05f
push 0x5c
lea ecx, [ebp - 0x20]
call fcn.1003eea0
push esi
lea ecx, [ebp - 0x20]
call fcn.1003ef80
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x1005c16d
cmp dword [ebp - 0x1c], 0
je 0x1005c164
push esi
call ebx
test eax, eax
je 0x1005c164
mov dword [ebp + 0x10], 0
mov byte [ebp - 4], 5
cmp dword [0x100f2570], 0
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx + 0xc]
jne 0x1005c164
test ebx, ebx
je 0x1005c164
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1005c0ca
push eax
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x1005c164
push 1
sub esp, 0x10
mov ecx, esp
mov dword [ebp + 8], esp
mov dword [ebp + 0xc], ecx
mov dword [ecx], vtable.CSeed.0
mov byte [ebp - 4], 6
push dword [ebp - 0x2c]
mov dword [ecx], vtable.CStringBufferW.0
push edi
mov dword [ecx + 0xc], 0
mov dword [ecx + 8], 0
mov dword [ecx + 4], 0
call fcn.1003ea90
sub esp, 0x10
mov ecx, esp
mov dword [ebp + 0xc], ecx
mov dword [ecx], vtable.CSeed.0
mov byte [ebp - 4], 8
push dword [ebp - 0x1c]
mov dword [ecx], vtable.CStringBufferW.0
push esi
mov dword [ecx + 0xc], 0
mov dword [ecx + 8], 0
mov dword [ecx + 4], 0
call fcn.1003ea90
mov byte [ebp - 4], 5
call fcn.10049dc0
test eax, eax
je 0x1005c164
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1005c155
mov dword [eax], 1
lea ecx, [ebp - 0x20]
call fcn.10022960
mov esi, 1
jmp 0x1005c16f
push esi
call fcn.1006eaef
add esp, 4
xor esi, esi
test edi, edi
je 0x1005c17c
push edi
call fcn.1006eaef
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10