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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2670
call fcn.0040c400
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [0x4494a8]
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov ecx, dword [0x4494ac]
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.00402760
mov edx, dword [0x4494b0]
mov eax, dword [0x4494b4]
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 [0x4579a4]
shl edi, 4
add edi, dword [ebp - 0x24]
cmp eax, 0xfa9
jne 0x402805
mov dword [0x4579a0], 0xedeb2e40
jmp 0x402820
cmp eax, 0x3eb
jne 0x402820
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [0x45742c], 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 [0x4579a4], 0x9e6
mov dword [0x45799c], 0xf4ea3dee
jne 0x402859
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommMask]
xor dword [ebp - 8], edi
cmp dword [0x4579a4], 0x213
jne 0x402988
push 0
lea ecx, [ebp - 0xe6c]
push ecx
push 0
push 0x402508
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 - 0x126c]
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 - 0x3c]
push eax
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
push 0
push 0
lea ecx, [ebp - 0x1e6c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0x30
lea edx, [ebp - 0x78]
push 0
push edx
mov dword [ebp - 0x7c], 0
call fcn.00403ff0
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 - 0x266c]
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 [0x4579a4], 0xc
mov dword [ebp - 0x18], edi
jne 0x4029ac
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 [0x4579a4], 0xb03
jne 0x4029e4
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 0x4027d9
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