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

Disassembly:
sub esp, 0x20c
mov eax, dword [0x1023d1a4]
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 0x1000eccb
lea esi, [edi + 0x10]
mov edx, 0x104
mov eax, esi
sub ebx, esi
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x1000ecba
movzx ecx, word [ebx + eax]
test cx, cx
je 0x1000ecba
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x1000ec91
sub eax, 2
mov word [eax], dx
jmp 0x1000edd5
test edx, edx
jne 0x1000ecc1
sub eax, 2
xor edx, edx
mov word [eax], dx
jmp 0x1000edd5
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.100061c0
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1000eda3
push str.SHGetFolderPathW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000ed46
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 0x1000eda3
push str.AhnLab
push 0x104
lea esi, [edi + 0x10]
push esi
call fcn.100061c0
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 0x1000ed81
call ebp
cmp eax, 0xb7
jne 0x1000eda3
push str.AIS
push 0x104
push esi
call fcn.100061c0
push 0
push esi
call ebx
test eax, eax
jne 0x1000edc5
call ebp
cmp eax, 0xb7
je 0x1000edc5
push 0x104
lea esi, [edi + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x1000edc5
cmp word [edi + eax*2 + 0xe], 0x5c
jne 0x1000edc5
xor ecx, ecx
mov word [edi + eax*2 + 0xe], cx
push str._ai.log
push 0x104
push esi
call fcn.100061c0
push 0x2e
push esi
call dword [sym.imp.MSVCR90.dll_wcsrchr]
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x1000ee34
add edi, 0x218
mov edx, 0x104
mov eax, edi
sub esi, edi
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x1000ee21
movzx ecx, word [esi + eax]
test cx, cx
je 0x1000ee21
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x1000edf6
sub eax, 2
mov word [eax], dx
push 0x101c73b0
jmp 0x1000ee9e
test edx, edx
jne 0x1000ee28
sub eax, 2
xor edx, edx
mov word [eax], dx
push 0x101c73b0
jmp 0x1000ee9e
mov ebx, ebp
sub ebx, edi
sub ebx, 0x10
sar ebx, 1
add edi, 0x218
cmp ebx, 0x7ffffffe
jbe 0x1000ee52
xor eax, eax
mov word [edi], ax
jmp 0x1000ee8d
mov edx, 0x104
mov eax, edi
sub esi, edi
jmp 0x1000ee60
lea ecx, [ebx + edx - 0x104]
test ecx, ecx
je 0x1000ee81
movzx ecx, word [esi + eax]
test cx, cx
je 0x1000ee81
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x1000ee60
jmp 0x1000ee85
test edx, edx
jne 0x1000ee88
sub eax, 2
xor edx, edx
mov word [eax], dx
push 0x101c73b0
push 0x104
push edi
call fcn.100061c0
push ebp
push 0x104
push edi
call fcn.100061c0
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10010586
add esp, 0x20c
ret 4