Function at 0x401000
Capabilities:
Get common file path
Get disk information
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x6c22a0]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x220], ecx
mov ecx, dword [ebp - 0x220]
call fcn.00401cf0
mov eax, dword [ebp - 0x220]
mov dword [eax], vtable.CModule.0
mov ecx, dword [ebp - 0x220]
add ecx, 0x38
call fcn.00401c90
mov ecx, dword [ebp - 0x220]
add ecx, 0x48
call fcn.00401c90
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp - 0x220]
mov dword [ecx + 0x3c], eax
mov edx, dword [ebp - 0x220]
mov dword [edx + 0x34], 0xffffffff
mov eax, dword [ebp - 0x220]
mov dword [eax + 0x30], 0xffffffff
mov ecx, dword [ebp - 0x220]
mov dword [ecx + 0x2c], 0xffffffff
mov edx, dword [ebp - 0x220]
mov dword [edx + 0x44], 0xffffffff
push 0xff
call fcn.00402a90
add esp, 4
push 1
call fcn.00448bb1
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.00402ac0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str..ini
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
lea edx, [ebp - 0x218]
push edx
mov ecx, dword [ebp - 0x220]
add ecx, 0x48
call fcn.00401cd0
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [str.Language]
push ecx
mov edx, dword [section..data]
push edx
mov ecx, dword [ebp - 0x220]
call fcn.00401a70
cmp dword [ebp - 8], 0
jg 0x401118
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jg 0x40112a
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx ecx, ax
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x224], edx
cmp dword [ebp - 0x224], 0x407
je 0x40114d
cmp dword [ebp - 0x224], 0x419
je 0x40114d
jmp 0x40115d
mov eax, dword [ebp - 0x220]
mov cx, word [ebp - 8]
mov word [eax + 0x40], cx
jmp 0x40116c
mov edx, 0x409
mov eax, dword [ebp - 0x220]
mov word [eax + 0x40], dx
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
movzx ecx, ax
mov edx, dword [ebp - 0x220]
movzx eax, word [edx + 0x40]
cmp ecx, eax
je 0x40119b
mov ecx, dword [ebp - 0x220]
movzx edx, word [ecx + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x1001
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea ecx, [ebp - 0x218]
push ecx
push 0
call fcn.006b1a88
add esp, 8
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x5c
lea eax, [ebp - 0x218]
push eax
call fcn.00401b50
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4011ff
xor ecx, ecx
mov edx, dword [ebp - 4]
mov word [edx + 2], cx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x40123b
mov edx, dword [ebp - 0x21c]
push edx
call fcn.006b1a78
add esp, 4
mov ecx, dword [ebp - 0x220]
mov dword [ecx + 0x44], eax
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.006b1c84
mov esp, ebp
pop ebp
ret