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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x11464f1
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x115f604]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x128], ebx
push ebx
push 0x1066480
lea ecx, [ebp - 0x120]
push ecx
push 0x1066400
lea edx, [ebp - 0x11c]
push 2
push edx
mov dword [ebp - 4], ebx
call fcn.01075110
add esp, 0x18
mov eax, dword [0x1161d94]
mov edx, dword [eax + 0xc]
mov ecx, 0x1161d94
mov byte [ebp - 4], 1
call edx
add eax, 0x10
mov dword [ebp - 0x124], eax
mov eax, dword [esi]
mov dword [ebp - 0x134], 0xc
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x130], ebx
mov eax, dword [eax - 0xc]
cmp eax, ebx
mov byte [ebp - 4], 2
je 0x111f4f1
mov ecx, dword [edi]
cmp dword [ecx - 0xc], ebx
je 0x111f4f1
push esi
lea ecx, [ebp - 0x124]
call fcn.0109c210
mov edi, dword [edi]
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [ebp - 0x124]
call fcn.0109dbe0
cmp byte [ebp + 0x14], bl
jne 0x111f42c
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, dword [esi]
je 0x111f3c2
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x111f42c
call fcn.01127f00
test al, al
je 0x111f3b3
mov edx, dword [esi]
push edx
push 0x1042a38
push 0x1066380
push ebx
call fcn.01128b70
add esp, 0x10
mov dword [ebp - 0x120], 0x8004827d
jmp 0x111f51e
push ebx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp eax, ebx
je 0x111f42c
cmp eax, 0x50
je 0x111f42c
cmp eax, 0xb7
je 0x111f42c
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jg 0x111f3eb
call edi
jmp 0x111f3f7
call edi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x120], eax
call fcn.01127f00
test al, al
je 0x111f51e
mov eax, dword [ebp - 0x120]
mov ecx, dword [esi]
push eax
push ecx
push 0x1066320
push 0x10662a0
push ebx
call fcn.01128b70
add esp, 0x14
jmp 0x111f51e
mov eax, dword [ebp + 0x14]
lea edx, [ebp - 0x134]
push edx
push eax
call fcn.0111ed30
cmp eax, ebx
mov dword [ebp - 0x120], eax
jge 0x111f469
call fcn.01127f00
test al, al
je 0x111f51e
mov ecx, dword [ebp - 0x120]
push ecx
push 0x1066258
push 0x10661d8
jmp 0x111f515
mov dl, byte [ebp + 0x10]
mov ecx, dword [ebp - 0x124]
neg dl
push ebx
push 0x80
lea eax, [ebp - 0x134]
sbb edx, edx
add edx, 3
push edx
push eax
push ebx
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x128], eax
jne 0x111f4dd
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x111f4af
call esi
jmp 0x111f4bb
call esi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x120], eax
call fcn.01127f00
test al, al
je 0x111f51e
mov edx, dword [ebp - 0x120]
push edx
push 0x1066180
push 0x1066100
jmp 0x111f515
mov ecx, dword [ebp - 0x138]
lea eax, [ebp - 0x128]
push eax
call fcn.010d0a10
jmp 0x111f51e
mov dword [ebp - 0x120], 0x80070057
call fcn.01127f00
test al, al
je 0x111f51e
mov ecx, dword [ebp - 0x120]
push ecx
push 0x1066068
push 0x1065fe8
push ebx
call fcn.01128b70
add esp, 0x10
mov eax, dword [ebp - 0x130]
cmp eax, ebx
je 0x111f52f
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x124]
mov esi, dword [ebp - 0x120]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x111f55b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], bl
call fcn.01075230
mov eax, dword [ebp - 0x128]
cmp eax, ebx
je 0x111f57a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.010840d6
mov esp, ebp
pop ebp
ret 0x14