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

Disassembly:
push 0xffffffffffffffff
push 0x1005bc87
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x1006e020]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push esi
push edi
mov eax, dword [0x1006e020]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
push 0
push 0
mov esi, ecx
mov eax, dword [esi + 0x480]
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
jne 0x1001dbf1
mov edi, dword [esi + 0x474]
mov ecx, edi
call fcn.1004a2a0
test al, al
jne 0x1001db3f
mov ecx, dword [0x1006eb44]
mov dword [esp + 0x10], ecx
push 0x1b0
lea ecx, [esp + 0x14]
call fcn.10013a10
mov dword [esp + 0x230], 0
mov eax, dword [esi + 0x16c]
lea ecx, [esp + 0x14]
call fcn.100139b0
mov edx, dword [eax]
mov edi, dword [esp + 0x10]
mov eax, dword [esi + 4]
push 0x30
push edx
push edi
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x1001db15
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x1001db15
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
lea eax, [edi - 0xc]
cmp eax, 0x1006eb34
je 0x1001dcb3
lea esi, [edi - 0xc]
push esi
call ebx
test eax, eax
jg 0x1001dcb3
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
jmp 0x1001dcb3
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001dbf8
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1001dbf8
mov ecx, dword [0x1006eb44]
mov dword [esp + 0x10], ecx
push 0x1b1
lea ecx, [esp + 0x14]
call fcn.10013a10
mov dword [esp + 0x230], 1
mov edx, dword [0x1006eb44]
mov dword [esp + 0x14], edx
mov byte [esp + 0x230], 2
mov eax, dword [esp + 0x10]
push edi
push eax
lea edx, [esp + 0x1c]
call fcn.10014ab0
mov eax, dword [esi + 0x16c]
add esp, 8
lea ecx, [esp + 0x18]
call fcn.100139b0
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 4]
push 0x34
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
lea esi, [esp + 0x18]
setne bl
call fcn.10015b40
lea esi, [esp + 0x14]
call fcn.10015b40
lea esi, [esp + 0x10]
call fcn.10015b40
test bl, bl
jne 0x1001dcb3
mov al, 1
jmp 0x1001dcb5
lea eax, [esp + 0x1c]
push eax
push 0
push 0x1005e484
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1001dc21
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, 1
jmp 0x1001dcb5
mov edx, dword [0x1006eb44]
push 0x1b1
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], edx
call fcn.10013a10
mov dword [esp + 0x230], 3
mov eax, dword [0x1006eb44]
mov dword [esp + 0x10], eax
mov byte [esp + 0x230], 4
mov ecx, dword [esp + 0x14]
push edi
push ecx
lea edx, [esp + 0x18]
call fcn.10014ab0
mov eax, dword [esi + 0x16c]
add esp, 8
lea ecx, [esp + 0x18]
call fcn.100139b0
mov eax, dword [eax]
mov edx, dword [esp + 0x10]
push 0x34
push eax
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
lea esi, [esp + 0x18]
sete bl
call fcn.10015b40
lea esi, [esp + 0x10]
call fcn.10015b40
lea esi, [esp + 0x14]
call fcn.10015b40
test bl, bl
jne 0x1001dbf1
xor al, al
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.10056d50
add esp, 0x224
ret