Function at 0x100a6540
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x338
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x334], eax
mov eax, dword [esp + 0x33c]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov edi, dword [esp + 0x350]
xor ecx, ecx
mov dword [esp + 0x14], eax
lea eax, [edi + 0xc]
push str.netapi32.dll
mov dword [esp + 0x20], ecx
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [edi + 8], 0xc8
mov byte [eax], cl
call esi
mov ebx, eax
push str.userenv.dll
mov dword [esp + 0x30], ebx
call esi
mov ebp, eax
mov dword [esp + 0x28], ebp
test ebx, ebx
je 0x100a67c2
test ebp, ebp
je 0x100a67c2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NetApiBufferFree
push ebx
call esi
push str.NetGetDCName
push ebx
mov dword [esp + 0x20], eax
call esi
push str.NetUserGetInfo
push ebx
mov dword [esp + 0x38], eax
call esi
push str.GetProfilesDirectoryW
push ebp
mov dword [esp + 0x18], eax
call esi
cmp dword [esp + 0x10], 0
mov dword [esp + 0x34], eax
je 0x100a6793
cmp dword [esp + 0x30], 0
je 0x100a6793
cmp dword [esp + 0x18], 0
je 0x100a6793
test eax, eax
je 0x100a6793
mov ecx, dword [esp + 0x14]
push 0x40
push ecx
or ebp, 0xffffffff
mov dword [esp + 0x28], 0
call dword [sym.imp.MSVCR90.dll_strchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x100a668d
lea eax, [esp + 0x38]
push eax
lea ecx, [esi + 1]
lea edx, [esp + 0x48]
push ebp
push ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0xc8
mov byte [esp + 0x50], 0
call sym.tcl85.dll_Tcl_UtfToUniCharDString
add esp, 0xc
lea edx, [esp + 0x20]
push edx
push eax
push 0
call dword [esp + 0x3c]
mov ebx, eax
lea eax, [esp + 0x38]
push eax
call sym.tcl85.dll_Tcl_DStringFree
sub esi, dword [esp + 0x18]
add esp, 4
test ebx, ebx
mov ebx, dword [esp + 0x2c]
mov ebp, esi
jne 0x100a6782
lea edx, [esp + 0x38]
push edx
push ebp
mov ebp, dword [esp + 0x1c]
lea ecx, [esp + 0x4c]
push ebp
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0xc8
mov byte [esp + 0x50], 0
call sym.tcl85.dll_Tcl_UtfToUniCharDString
mov edx, dword [esp + 0x2c]
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
push 1
push eax
push edx
call dword [esp + 0x20]
test eax, eax
jne 0x100a6775
mov eax, dword [esp + 0x24]
mov esi, dword [eax + 0x10]
test esi, esi
je 0x100a66fb
cmp word [esi], 0
je 0x100a66fb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push esi
call sym.tcl85.dll_Tcl_UniCharToUtfDString
add esp, 0xc
jmp 0x100a6766
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x140]
push edx
mov dword [esp + 0x18], 0x104
call dword [esp + 0x3c]
mov ecx, dword [esp + 0x10]
xor eax, eax
test ecx, ecx
jbe 0x100a673d
mov edi, edi
cmp word [esp + eax*2 + 0x13c], 0x5c
jne 0x100a6738
mov edx, 0x2f
mov word [esp + eax*2 + 0x13c], dx
inc eax
cmp eax, ecx
jb 0x100a6720
push edi
dec ecx
push ecx
lea eax, [esp + 0x144]
push eax
call sym.tcl85.dll_Tcl_UniCharToUtfDString
push 0xffffffffffffffff
push 0x100bcd94
push edi
call sym.tcl85.dll_Tcl_DStringAppend
push 0xffffffffffffffff
push ebp
push edi
call sym.tcl85.dll_Tcl_DStringAppend
add esp, 0x24
mov edx, dword [esp + 0x24]
mov ecx, dword [edi]
push edx
mov dword [esp + 0x20], ecx
call dword [esp + 0x1c]
lea eax, [esp + 0x38]
push eax
call sym.tcl85.dll_Tcl_DStringFree
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x100a678f
push eax
call dword [esp + 0x1c]
mov ebp, dword [esp + 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebp
call esi
push ebx
call esi
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x100a67c6
mov eax, esi
mov ecx, dword [esp + 0x344]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100b30c8
add esp, 0x338
ret
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp byte [eax], 0x2a
je 0x100a67a7
push str.system.ini
push 0x104
lea ecx, [esp + 0x40]
push ecx
push 0x100bc9f9
push eax
push str.Password_Lists
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x100a67a7
push 0x104
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 3
lea eax, [esp + 0x3c]
push eax
push edi
call sym.tcl85.dll_Tcl_DStringAppend
mov eax, dword [edi]
add esp, 0xc
jmp 0x100a67a9