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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10111feb
mov eax, dword fs:[0]
push eax
sub esp, 0x63c
mov eax, dword [0x1060f098]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x820
mov dword [0x106158cc], 1
call fcn.100d22e6
add esp, 4
mov dword [0x106158c8], eax
call fcn.1003e060
mov dword [ebp - 0x644], eax
xor eax, eax
mov dword [ebp - 0x62c], 7
mov dword [ebp - 0x630], 0
mov word [ebp - 0x640], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x644]
lea eax, [ebp - 0x640]
push eax
call fcn.1003e0a0
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.100eb400
cmp dword [ebp - 0x62c], 8
lea eax, [ebp - 0x640]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
cmovae eax, dword [ebp - 0x640]
push str.Gmck
push eax
lea eax, [ebp - 0x628]
push 0x105fa118
push eax
call esi
add esp, 0x1c
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001b828
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [ebp - 0x62c], 8
lea eax, [ebp - 0x640]
push str.Gmck
cmovae eax, dword [ebp - 0x640]
push eax
mov eax, dword [0x106158c8]
add eax, 0x410
push str._s_s.nom.cfg
push eax
call esi
cmp dword [ebp - 0x62c], 8
lea eax, [ebp - 0x640]
push str.Gmck
cmovae eax, dword [ebp - 0x640]
push eax
mov eax, dword [0x106158c8]
add eax, 0x618
push str._s_s.stp.cfg
push eax
call esi
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100eb400
add esp, 0x2c
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x1001b8d1
mov eax, dword [ebp - 0x62c]
cmp eax, 8
jb 0x1001b8ca
inc eax
lea ecx, [ebp - 0x640]
push eax
push dword [ebp - 0x640]
call fcn.100115c0
xor eax, eax
jmp 0x1001b9bb
call fcn.1003de50
cmp eax, 0x60001
movzx eax, word [ebp - 0x218]
push str.Gmck
push eax
jb 0x1001b90b
push str._c:UsersPublicAppDataLocalWindowsODBCPStatus_s.nom
push dword [0x106158c8]
call esi
movzx eax, word [ebp - 0x218]
push str.Gmck
push eax
push str._c:UsersPublicAppDataLocalWindowsODBCPStatus_s.stp
jmp 0x1001b92a
push str._c:Documents_and_SettingsAll_UsersApplication_DataMicrosoftPStatus_s.nom
push dword [0x106158c8]
call esi
movzx eax, word [ebp - 0x218]
push str.Gmck
push eax
push str._c:Documents_and_SettingsAll_UsersApplication_DataMicrosoftPStatus_s.stp
mov eax, dword [0x106158c8]
add eax, 0x208
push eax
call esi
add esp, 0x20
lea eax, [ebp - 0x420]
push 0x208
push 0
push eax
call fcn.100eb400
push dword [0x106158c8]
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.100f1a7a
add esp, 0x18
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x420]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, dword [ebp - 0x62c]
je 0x1001b8b2
cmp eax, 8
jb 0x1001b9b6
inc eax
lea ecx, [ebp - 0x640]
push eax
push dword [ebp - 0x640]
call fcn.100115c0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100d22d5
mov esp, ebp
pop ebp
ret