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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009b391
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x100e6018]
xor eax, esp
mov dword [esp + 0x2a8], eax
push ebx
push esi
push edi
mov eax, dword [0x100e6018]
xor eax, esp
push eax
lea eax, [esp + 0x2c0]
mov dword fs:[0], eax
mov dword [esp + 0x10], ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
cmp word [esi], ax
jne 0x1003a332
xor ecx, ecx
jmp 0x1003a346
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003a337
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [esp + 0x28]
call fcn.100089b0
cmp dword [esp + 0x34], 8
lea eax, [esp + 0x20]
cmovae eax, dword [esp + 0x20]
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 [esp + 0x34], 8
jb 0x1003a382
push dword [esp + 0x20]
call edi
add esp, 4
test bl, bl
je 0x1003a3a0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1003a3a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x1003a6c5
mov edx, dword [esp + 0x10]
xor ebx, ebx
mov ecx, dword [edx]
xor eax, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x84], ebx
mov word [esp + 0x88], ax
mov dword [esp + 0x2b0], eax
test ecx, ecx
jne 0x1003a3d4
mov dword [0x100e8950], 0x10000
jmp 0x1003a40b
cmp dword [ecx], 1
je 0x1003a3e5
mov dword [0x100e8950], 0x80000
jmp 0x1003a40b
mov ecx, dword [ecx + 4]
lea eax, [esp + 0x84]
push eax
push 0xffffffffffffffff
call fcn.10061020
mov ebx, dword [esp + 0x84]
mov edx, dword [esp + 0x10]
mov dword [0x100e8950], eax
mov dword [esp + 0x18], ebx
xor eax, eax
mov dword [esp + 0x14], eax
test ebx, ebx
jle 0x1003a6c3
lea esp, [esp]
xor ecx, ecx
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], cx
mov dword [esp + 0x2c8], ecx
mov ecx, dword [edx]
xor edx, edx
mov dword [esp + 0x84], 0
mov word [esp + 0x88], dx
mov dword [esp + 0x2b0], edx
test ecx, ecx
jne 0x1003a46f
mov dword [0x100e8950], 0x10000
jmp 0x1003a496
cmp dword [ecx], 1
je 0x1003a480
mov dword [0x100e8950], 0x80000
jmp 0x1003a496
mov ecx, dword [ecx + 4]
lea edx, [esp + 0x84]
push edx
push eax
call fcn.10061020
mov dword [0x100e8950], eax
xor ebx, ebx
jmp 0x1003a4a0
xor eax, eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
cmp word [esi], ax
je 0x1003a4d0
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1003a4c1
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x28]
call fcn.100089b0
push 0x100a21f4
lea edx, [esp + 0x24]
lea ecx, [esp + 0x58]
mov byte [esp + 0x2cc], 1
call fcn.10011da0
add esp, 4
lea ecx, [esp + 0x88]
push ecx
mov edx, eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x2cc], 2
call fcn.10011da0
mov esi, eax
lea eax, [esp + 0x70]
add esp, 4
cmp eax, esi
je 0x1003a59d
cmp dword [esp + 0x80], 8
jb 0x1003a533
push dword [esp + 0x6c]
call edi
add esp, 4
xor eax, eax
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], ax
cmp dword [esi + 0x14], 8
jae 0x1003a56d
mov eax, dword [esi + 0x10]
inc eax
je 0x1003a579
add eax, eax
push eax
lea eax, [esp + 0x70]
push esi
push eax
call dword [sym.imp.MSVCR110.dll_memmove]
add esp, 0xc
jmp 0x1003a579
mov eax, dword [esi]
mov dword [esp + 0x6c], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [esp + 0x7c], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x80], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [esp + 0x50], 8
jb 0x1003a5ad
push dword [esp + 0x3c]
call edi
add esp, 4
xor eax, eax
cmp dword [esp + 0x68], 8
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], ax
jb 0x1003a5d4
push dword [esp + 0x54]
call edi
add esp, 4
xor eax, eax
mov byte [esp + 0x2c8], al
cmp dword [esp + 0x34], 8
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
jb 0x1003a602
push dword [esp + 0x20]
call edi
add esp, 4
cmp dword [esp + 0x80], 8
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x6c]
mov ecx, dword [edx]
cmovae eax, dword [esp + 0x6c]
test ecx, ecx
jne 0x1003a629
mov dword [0x100e8950], 0x10000
jmp 0x1003a653
cmp dword [ecx], 1
je 0x1003a63a
mov dword [0x100e8950], 0x80000
jmp 0x1003a653
mov ecx, dword [ecx + 4]
sub esp, 8
push eax
push dword [esp + 0x20]
call fcn.100617f0
mov dword [0x100e8950], eax
test eax, eax
je 0x1003a661
mov esi, dword [esp + 0x1c]
inc ebx
cmp ebx, 3
jl 0x1003a4a0
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x1003a68a
cmp dword [esp + 0x80], 8
lea eax, [esp + 0x6c]
cmovae eax, dword [esp + 0x6c]
push eax
push 0x104
push ecx
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
add esp, 0xc
mov dword [esp + 0x2c8], 0xffffffff
cmp dword [esp + 0x80], 8
jb 0x1003a6a8
push dword [esp + 0x6c]
call edi
add esp, 4
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x18]
jl 0x1003a420
mov al, 1
mov ecx, dword [esp + 0x2c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2a8]
xor ecx, esp
call fcn.100947be
mov esp, ebp
pop ebp
ret 8