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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10033d2e
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x10048034]
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 dword [ebp - 0x25c], ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x284], eax
xor eax, eax
mov dword [ebp - 0x260], esi
mov dword [ebp - 0x26c], 7
mov dword [ebp - 0x270], 0
mov word [ebp - 0x280], ax
cmp word [esi], ax
jne 0x1001a26c
xor ecx, ecx
jmp 0x1001a280
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001a271
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x280]
call fcn.100019a0
cmp dword [ebp - 0x26c], 8
lea eax, [ebp - 0x280]
cmovae eax, dword [ebp - 0x280]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
cmp eax, 1
setne bl
cmp dword [ebp - 0x26c], 8
jb 0x1001a2c8
push dword [ebp - 0x280]
call edi
add esp, 4
test bl, bl
je 0x1001a2e6
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1001a2e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x1001a603
mov eax, dword [ebp - 0x25c]
xor ebx, ebx
mov ecx, dword [eax]
xor edx, edx
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x258], ebx
mov word [ebp - 0x254], dx
mov dword [ebp - 0x2c], edx
test ecx, ecx
jne 0x1001a318
mov dword [0x1004a804], 0x10000
jmp 0x1001a351
cmp dword [ecx], 1
je 0x1001a329
mov dword [0x1004a804], 0x80000
jmp 0x1001a351
mov ecx, dword [ecx + 4]
lea eax, [ebp - 0x258]
push eax
push 0xffffffffffffffff
call fcn.10024bd0
mov ebx, dword [ebp - 0x258]
mov dword [0x1004a804], eax
mov eax, dword [ebp - 0x25c]
mov dword [ebp - 0x268], ebx
xor edx, edx
mov dword [ebp - 0x264], edx
test ebx, ebx
jle 0x1001a601
jmp 0x1001a370
xor ecx, ecx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], cx
mov dword [ebp - 4], ecx
mov ecx, dword [eax]
xor eax, eax
mov dword [ebp - 0x258], 0
mov word [ebp - 0x254], ax
mov dword [ebp - 0x2c], eax
test ecx, ecx
jne 0x1001a3af
mov dword [0x1004a804], 0x10000
jmp 0x1001a3d5
cmp dword [ecx], 1
je 0x1001a3c0
mov dword [0x1004a804], 0x80000
jmp 0x1001a3d5
mov ecx, dword [ecx + 4]
lea eax, [ebp - 0x258]
push eax
push edx
call fcn.10024bd0
mov dword [0x1004a804], eax
xor ebx, ebx
jmp 0x1001a3e0
xor eax, eax
mov dword [ebp - 0x26c], 7
mov dword [ebp - 0x270], 0
mov word [ebp - 0x280], ax
cmp word [esi], ax
je 0x1001a416
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001a407
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x280]
call fcn.100019a0
push 0x1003f3f4
lea edx, [ebp - 0x280]
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], 1
call fcn.1000b770
add esp, 4
lea ecx, [ebp - 0x254]
push ecx
mov edx, eax
lea ecx, [ebp - 0x2b4]
mov byte [ebp - 4], 2
call fcn.1000b770
mov esi, eax
lea eax, [ebp - 0x28]
add esp, 4
cmp eax, esi
je 0x1001a4cf
cmp dword [ebp - 0x14], 8
jb 0x1001a472
push dword [ebp - 0x28]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp dword [esi + 0x14], 8
jae 0x1001a4a5
mov eax, dword [esi + 0x10]
inc eax
je 0x1001a4b0
add eax, eax
push eax
lea eax, [ebp - 0x28]
push esi
push eax
call dword [sym.imp.MSVCR110.dll_memmove]
add esp, 0xc
jmp 0x1001a4b0
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [ebp - 0x2a0], 8
jb 0x1001a4e3
push dword [ebp - 0x2b4]
call edi
add esp, 4
xor eax, eax
cmp dword [ebp - 0x288], 8
mov dword [ebp - 0x2a0], 7
mov dword [ebp - 0x2a4], 0
mov word [ebp - 0x2b4], ax
jb 0x1001a514
push dword [ebp - 0x29c]
call edi
add esp, 4
xor eax, eax
mov byte [ebp - 4], al
cmp dword [ebp - 0x26c], 8
mov dword [ebp - 0x288], 7
mov dword [ebp - 0x28c], 0
mov word [ebp - 0x29c], ax
jb 0x1001a548
push dword [ebp - 0x280]
call edi
add esp, 4
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x25c]
lea eax, [ebp - 0x28]
mov ecx, dword [ecx]
cmovae eax, dword [ebp - 0x28]
test ecx, ecx
jne 0x1001a56b
mov dword [0x1004a804], 0x10000
jmp 0x1001a592
cmp dword [ecx], 1
je 0x1001a57c
mov dword [0x1004a804], 0x80000
jmp 0x1001a592
sub esp, 8
push eax
push ecx
mov ecx, dword [ecx + 4]
call fcn.100253f0
mov dword [0x1004a804], eax
test eax, eax
je 0x1001a5a2
mov esi, dword [ebp - 0x260]
inc ebx
cmp ebx, 3
jl 0x1001a3e0
mov ecx, dword [ebp - 0x284]
test ecx, ecx
je 0x1001a5c7
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x104
push ecx
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 8
jb 0x1001a5dc
push dword [ebp - 0x28]
call edi
add esp, 4
mov edx, dword [ebp - 0x264]
mov esi, dword [ebp - 0x260]
mov eax, dword [ebp - 0x25c]
inc edx
mov dword [ebp - 0x264], edx
cmp edx, dword [ebp - 0x268]
jl 0x1001a370
mov al, 1
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.1002f746
mov esp, ebp
pop ebp
ret 8