Function at 0x4050d3
Capabilities:
Get common file path
Get disk information
Get geographical location

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1da8
call fcn.004133e0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [0x45e330]
push ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [0x45e334]
push esi
xor esi, esi
mov dword [ebp - 0x28], eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], esi
call fcn.004050cc
mov eax, dword [0x45e338]
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [0x45e33c]
add ebx, 0x23f
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, dword [ebp - 0x10]
mov edx, dword [0x2488094]
mov ecx, eax
shl ecx, 4
add ecx, dword [ebp - 0x20]
cmp edx, 0xfa9
jne 0x40515c
mov dword [0x2488090], 0xedeb2e40
cmp edx, 0x3eb
jne 0x40516a
mov dword [0x2487b20], esi
lea edx, [ebx + eax]
mov eax, dword [ebp - 0x10]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x2c]
xor ecx, edx
xor eax, ecx
cmp dword [0x2488094], 0x213
mov dword [0x248808c], 0xf4ea3dee
mov dword [ebp - 8], eax
jne 0x40525d
push esi
lea eax, [ebp - 0x15a4]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
lea eax, [ebp - 0x9a4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push esi
push esi
push esi
lea eax, [ebp - 0x1a4]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
push 0x403f6c
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCommState]
push esi
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoW]
lea eax, [ebp - 0x11a4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x30
lea eax, [ebp - 0x60]
push esi
push eax
mov dword [ebp - 0x64], esi
call fcn.0040fa00
add esp, 0xc
lea eax, [ebp - 0x64]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CommConfigDialogA]
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
push esi
lea eax, [ebp - 0x1da4]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov eax, dword [ebp - 8]
sub dword [ebp - 0x14], eax
cmp dword [0x2488094], 0xc
jne 0x405278
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalWire]
mov edi, dword [ebp - 0x14]
mov eax, edi
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
shl edi, 4
add edi, dword [ebp - 0x1c]
add eax, ebx
xor edi, eax
cmp dword [0x2488094], 0xb03
jne 0x4052b6
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
push 0x403f88
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
xor edi, dword [ebp - 8]
mov dword [ebp - 0x24], edi
mov eax, dword [ebp - 0x24]
sub dword [ebp - 0x10], eax
add ebx, 0x61c88647
dec dword [ebp - 0x18]
jne 0x40512e
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov ecx, dword [ebp - 0x14]
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 4