Function at 0x404100
Capabilities:
Get common file path
Get disk information
Get geographical location
Get hostname
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2a70
call fcn.0040f490
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [0x44c4a8]
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov ecx, dword [0x44c4ac]
mov dword [ebp - 0x28], eax
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], ecx
call fcn.004040f0
mov edx, dword [0x44c4b0]
mov eax, dword [0x44c4b4]
add dword [ebp - 0x14], 0x23f
mov ebx, dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov edi, dword [ebp - 0xc]
mov eax, dword [0x45a9a4]
shl edi, 4
add edi, dword [ebp - 0x24]
cmp eax, 0xfa9
jne 0x404195
mov dword [0x45a9a0], 0xedeb2e40
jmp 0x4041b0
cmp eax, 0x3eb
jne 0x4041b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [0x45a42c], 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
add ecx, edx
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 8], eax
xor edi, ecx
cmp dword [0x45a9a4], 0x9e6
mov dword [0x45a99c], 0xf4ea3dee
jne 0x4041e9
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommMask]
xor dword [ebp - 8], edi
cmp dword [0x45a9a4], 0x213
jne 0x404314
push 0
lea ecx, [ebp - 0x226c]
push ecx
push 0
push 0x403f40
push 0
push 0
call ebx
lea edx, [ebp - 0x66c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0
push 0
push 0
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0xe6c]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommError]
lea eax, [ebp - 0x3c]
push eax
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea ecx, [ebp - 0x126c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x30
lea edx, [ebp - 0x78]
push 0
push edx
mov dword [ebp - 0x7c], 0
call fcn.004068f0
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CommConfigDialogA]
lea ecx, [ebp - 0x34]
push ecx
push 0
lea edx, [ebp - 0x90]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [ebp - 0xb0]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateActCtxA]
lea edx, [ebp - 0x38]
push edx
call esi
push 0
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
lea ecx, [ebp - 0x1a6c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrencyFormatA]
push 0
lea edx, [ebp - 0x2a6c]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [ebp - 0x48]
push eax
call esi
mov edi, dword [ebp - 0x18]
sub edi, dword [ebp - 8]
cmp dword [0x45a9a4], 0xc
mov dword [ebp - 0x18], edi
jne 0x404338
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
mov ecx, edi
shr ecx, 5
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 0x20]
add dword [ebp - 8], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
shl edi, 4
add edi, dword [ebp - 0x28]
add eax, edx
xor edi, eax
cmp dword [0x45a9a4], 0xb03
jne 0x404370
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
xor edi, dword [ebp - 8]
mov dword [ebp - 0x30], edi
mov eax, dword [ebp - 0x30]
sub dword [ebp - 0xc], eax
add dword [ebp - 0x14], 0x61c88647
sub dword [ebp - 0x1c], 1
jne 0x404169
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
pop edi
pop esi
mov dword [eax], ecx
mov dword [eax + 4], edx
pop ebx
mov esp, ebp
pop ebp
ret 4