Function at 0x402b1e
Capabilities:
Get common file path
Get hostname
Manipulate console buffer

Disassembly:
push ecx
push 0x80bcd0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
ret
push ebp
mov ebp, esp
mov eax, 0x253c
call fcn.00408f60
push ebx
push esi
xor esi, esi
cmp dword [0x2e7f000], 0x5b1
push edi
jne 0x402bac
push esi
push esi
lea eax, [ebp - 0xd3c]
push eax
push esi
push esi
call sub.USER32.dll_DdeQueryStringW
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
xor eax, eax
mov word [ebp - 8], ax
lea edi, [ebp - 6]
stosw word es:[edi], ax
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x53c]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push esi
call fcn.00402e90
push esi
call fcn.00402e7a
add esp, 0xc
jmp 0x402b11
add dword [0x2e7f000], 0x1134b
push dword [0x2e7f000]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x2e7df50], eax
call fcn.00402a5c
xor edi, edi
cmp dword [0x2e7f000], esi
jbe 0x402c1c
mov eax, dword [0x2e7f004]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x2e7df50]
mov byte [ecx + edi], al
cmp dword [0x2e7f000], 0xa8
jne 0x402c13
push esi
call dword [sym.imp.KERNEL32.dll_SetComputerNameW]
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteTimerQueue]
inc edi
cmp edi, dword [0x2e7f000]
jb 0x402bd7
xor ebx, ebx
mov eax, dword [0x2e7f000]
add eax, ebx
cmp eax, 0xe
jne 0x402cc0
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationA]
push esi
lea eax, [ebp - 0x153c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
push esi
lea eax, [ebp - 0x53c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
push esi
push esi
lea eax, [ebp - 0x1d3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
xor eax, eax
mov word [ebp - 0x18], ax
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push esi
stosw word es:[edi], ax
lea eax, [ebp - 0x93c]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push esi
push esi
lea eax, [ebp - 0x253c]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push esi
push esi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
inc ebx
cmp ebx, 0x39621
jl 0x402c1e
call fcn.00402962
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x26
jne 0x402ce4
call fcn.00402a42
inc edi
cmp edi, 0x6753f
jl 0x402cd4
push 0x7b
pop ebx
cmp dword [0x2e7f000], 0x86
jne 0x402d4a
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
push esi
call dword [sym.imp.KERNEL32.dll_SetComputerNameA]
xor eax, eax
mov word [ebp - 0x28], ax
lea edi, [ebp - 0x26]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x18], ax
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_TzSpecificLocalTimeToSystemTime]
push esi
lea eax, [ebp - 0x253c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp dword [0x2e7f000], 0xf
jne 0x402d5e
push esi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
dec ebx
jne 0x402cf0
call fcn.004026f0
pop edi
pop esi
pop ebx
leave
ret