Function at 0x1000f120
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x1023d1bc]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, dword [esp + 0x214]
push ebp
push esi
push edi
mov edi, ecx
test ebx, ebx
je 0x1000f18b
lea esi, [edi + 0x10]
mov edx, 0x104
mov eax, esi
sub ebx, esi
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x1000f17a
movzx ecx, word [ebx + eax]
test cx, cx
je 0x1000f17a
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x1000f151
sub eax, 2
mov word [eax], dx
jmp 0x1000f295
test edx, edx
jne 0x1000f181
sub eax, 2
xor edx, edx
mov word [eax], dx
jmp 0x1000f295
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1a]
push ecx
mov ebx, 1
mov word [esp + 0x1c], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.SHFolder.dll
push 0x104
lea eax, [esp + 0x18]
push eax
call fcn.100023a0
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1000f263
push str.SHGetFolderPathW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000f206
lea edx, [edi + 0x10]
push edx
push 0
push 0
push 0x8023
push 0
call eax
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
jne 0x1000f263
push str.AhnLab
push 0x104
lea esi, [edi + 0x10]
push esi
call fcn.100023a0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1000f241
call ebp
cmp eax, 0xb7
jne 0x1000f263
push str.AIS
push 0x104
push esi
call fcn.100023a0
push 0
push esi
call ebx
test eax, eax
jne 0x1000f285
call ebp
cmp eax, 0xb7
je 0x1000f285
push 0x104
lea esi, [edi + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x1000f285
cmp word [edi + eax*2 + 0xe], 0x5c
jne 0x1000f285
xor ecx, ecx
mov word [edi + eax*2 + 0xe], cx
push str._ai.log
push 0x104
push esi
call fcn.100023a0
push 0x2e
push esi
call dword [sym.imp.MSVCR90.dll_wcsrchr]
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x1000f2f4
add edi, 0x218
mov edx, 0x104
mov eax, edi
sub esi, edi
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x1000f2e1
movzx ecx, word [esi + eax]
test cx, cx
je 0x1000f2e1
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x1000f2b6
sub eax, 2
mov word [eax], dx
push 0x101c73e4
jmp 0x1000f35e
test edx, edx
jne 0x1000f2e8
sub eax, 2
xor edx, edx
mov word [eax], dx
push 0x101c73e4
jmp 0x1000f35e
mov ebx, ebp
sub ebx, edi
sub ebx, 0x10
sar ebx, 1
add edi, 0x218
cmp ebx, 0x7ffffffe
jbe 0x1000f312
xor eax, eax
mov word [edi], ax
jmp 0x1000f34d
mov edx, 0x104
mov eax, edi
sub esi, edi
jmp 0x1000f320
lea ecx, [ebx + edx - 0x104]
test ecx, ecx
je 0x1000f341
movzx ecx, word [esi + eax]
test cx, cx
je 0x1000f341
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x1000f320
jmp 0x1000f345
test edx, edx
jne 0x1000f348
sub eax, 2
xor edx, edx
mov word [eax], dx
push 0x101c73e4
push 0x104
push edi
call fcn.100023a0
push ebp
push 0x104
push edi
call fcn.100023a0
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10010588
add esp, 0x20c
ret 4