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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x26f0
call fcn.0040dac0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [0x44a1c8]
push ebx
push esi
mov dword [ebp - 0x10], ecx
mov ecx, dword [0x44a1cc]
mov dword [ebp - 0x24], eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x2c], 0x9e3779b9
mov dword [ebp - 0x20], ecx
call fcn.004031b0
mov edx, dword [0x44a1d0]
mov eax, dword [0x44a1d4]
add dword [ebp - 0xc], 0x23f
mov ebx, dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0x14], 2
add dword [ebp - 0x14], 3
mov esi, dword [ebp - 0x10]
mov eax, dword [0x45874c]
shl esi, 4
add esi, dword [ebp - 0x30]
cmp eax, 0xfa9
jne 0x40325c
mov dword [0x458748], 0xedeb2e40
jmp 0x403277
cmp eax, 0x3eb
jne 0x403277
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [0x4581d8], 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
add ecx, edx
mov eax, dword [ebp - 0x10]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 8], eax
xor esi, ecx
cmp dword [0x45874c], 0x9e6
mov dword [0x458744], 0xf4ea3dee
jne 0x4032b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommMask]
xor dword [ebp - 8], esi
cmp dword [0x45874c], 0x213
jne 0x4033e5
push 0
lea ecx, [ebp - 0xeec]
push ecx
push 0
push 0x402cb8
push 0
push 0
call ebx
lea edx, [ebp - 0x6ec]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0
push 0
push 0
lea eax, [ebp - 0x2ec]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x12ec]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommError]
lea eax, [ebp - 0x40]
push eax
call edi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
push 0
push 0
lea ecx, [ebp - 0x1eec]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0x30
lea edx, [ebp - 0x7c]
push 0
push edx
mov dword [ebp - 0x80], 0
call fcn.004053f0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CommConfigDialogW]
lea ecx, [ebp - 0x38]
push ecx
push 0
lea edx, [ebp - 0x94]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
lea eax, [ebp - 0x1cc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea ecx, [ebp - 0xb4]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateActCtxA]
push 0
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
lea ecx, [ebp - 0x1aec]
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_GetCurrencyFormatW]
push 0
lea edx, [ebp - 0x26ec]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [ebp - 0x4c]
push eax
call edi
mov esi, dword [ebp - 0x18]
sub esi, dword [ebp - 8]
cmp dword [0x45874c], 0xc
mov dword [ebp - 0x18], esi
jne 0x403409
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
mov ecx, dword [ebp - 0xc]
mov edx, esi
shr edx, 5
add ecx, esi
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x20]
add dword [ebp - 8], eax
shl esi, 4
add esi, dword [ebp - 0x24]
xor esi, ecx
cmp dword [0x45874c], 0xb03
jne 0x40343e
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
xor esi, dword [ebp - 8]
mov dword [ebp - 0x34], esi
mov eax, dword [ebp - 0x34]
sub dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 0xc], eax
sub dword [ebp - 0x1c], 1
jne 0x403230
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
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