Function at 0x405060
Capabilities:
Create pipe
Get common file path
Get disk information
Get geographical location

Disassembly:
mov eax, 0x19b4
call fcn.0040d700
mov eax, dword [0x5e43d4]
mov ecx, dword [0x5e3e64]
push ebx
push ebp
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x405369
mov ebp, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
mov edi, ecx
mov dword [esp + 0x34], 0x9e3779b9
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], eax
jmp 0x4050b6
mov edi, dword [esp + 0x24]
xor esi, esi
cmp dword [0x5e43d4], 0x959
jne 0x40513a
push esi
lea eax, [esp + 0x11c4]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
push 0x404d24
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push esi
lea ecx, [esp + 0x5c4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessVersion]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCalendarInfoA]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [0x43efc0]
mov edx, dword [edi]
mov ecx, dword [0x43efc4]
mov edi, dword [edi + 4]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x38], ecx
call fcn.00405050
mov edx, dword [0x43efc8]
mov eax, dword [0x43efcc]
add dword [esp + 0x14], 0x23f
mov dword [esp + 0x44], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], 0x20
jmp 0x405192
xor esi, esi
mov dword [esp + 0x20], 2
add dword [esp + 0x20], 3
mov eax, dword [esp + 0x1c]
mov edx, dword [0x5e43d4]
mov ecx, eax
shl ecx, 4
add ecx, dword [esp + 0x44]
cmp edx, 0xfa9
jne 0x4051c6
mov dword [0x5e43d0], 0xedeb2e40
jmp 0x4051d4
cmp edx, 0x3eb
jne 0x4051d4
mov dword [0x5e3e60], esi
mov edx, dword [esp + 0x14]
add edx, eax
mov eax, dword [esp + 0x1c]
shr eax, 5
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x3c]
xor ecx, edx
xor eax, ecx
cmp dword [0x5e43d4], 0x213
mov dword [0x5e43cc], 0xf4ea3dee
mov dword [esp + 0x18], eax
jne 0x4052c7
push esi
lea eax, [esp + 0xdc4]
push eax
push esi
push esi
push esi
push esi
call ebp
lea ecx, [esp + 0x1c0]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push esi
push esi
push esi
lea edx, [esp + 0xac]
push edx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
push 0x404c98
push esi
call ebx
push esi
push 0x404cb0
push 0x404cc8
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_UnlockFile]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetCommState]
lea eax, [esp + 0x5c0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x30
lea ecx, [esp + 0x54]
push esi
push ecx
mov dword [esp + 0x58], esi
call fcn.00409d00
add esp, 0xc
lea edx, [esp + 0x4c]
push edx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CommConfigDialogW]
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_CreateActCtxA]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExA]
push esi
lea ecx, [esp + 0x11c4]
push ecx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov eax, dword [esp + 0x18]
sub edi, eax
cmp dword [0x5e43d4], 0xc
jne 0x4052e4
lea edx, [esp + 0x48]
push edx
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
push esi
push esi
call ebx
mov ecx, dword [esp + 0x14]
mov edx, edi
shr edx, 5
add ecx, edi
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x38]
add dword [esp + 0x18], eax
mov esi, edi
shl esi, 4
add esi, dword [esp + 0x30]
xor esi, ecx
cmp dword [0x5e43d4], 0xb03
jne 0x405329
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthW]
push 0x404ce0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
xor esi, dword [esp + 0x18]
mov dword [esp + 0x40], esi
mov eax, dword [esp + 0x40]
sub dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
sub dword [esp + 0x14], eax
dec dword [esp + 0x28]
jne 0x405190
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
mov dword [eax + 4], edi
add eax, 8
dec dword [esp + 0x2c]
mov dword [esp + 0x24], eax
jne 0x4050b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x19b4
ret