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

Disassembly:
push ecx
push 0x427b48
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
ret
push ebp
mov ebp, esp
mov eax, 0x213c
call fcn.00408a00
push ebx
push esi
xor esi, esi
cmp dword [0x845d78], 0x5b1
push edi
jne 0x4029be
push esi
push esi
lea eax, [ebp - 0x53c]
push eax
push esi
push esi
call sub.USER32.dll_DdeQueryStringA
xor eax, eax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x93c]
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_CreateFileMappingW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
jmp 0x402942
add dword [0x845d78], 0x1134b
push dword [0x845d78]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x844cc8], eax
call fcn.0040288d
mov ebx, dword [sym.imp.KERNEL32.dll_SetComputerNameW]
xor edi, edi
cmp dword [0x845d78], esi
jbe 0x402a35
mov eax, dword [0x845d7c]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x844cc8]
mov byte [ecx + edi], al
cmp dword [0x845d78], 0xa8
jne 0x402a2c
push esi
call ebx
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetTimerQueueTimer]
inc edi
cmp edi, dword [0x845d78]
jb 0x4029ef
mov dword [ebp - 4], esi
mov eax, dword [0x845d78]
mov ecx, dword [ebp - 4]
add eax, ecx
cmp eax, 0xe
jne 0x402ad8
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationA]
push esi
lea eax, [ebp - 0x53c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
push esi
lea eax, [ebp - 0x93c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
push esi
push esi
lea eax, [ebp - 0x113c]
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 - 0x193c]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
push esi
call ebx
push esi
push esi
lea eax, [ebp - 0x213c]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push esi
push esi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x39621
jl 0x402a38
call fcn.004027cd
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x26
jne 0x402aff
call fcn.00402873
inc edi
cmp edi, 0x6753f
jl 0x402aef
push 0x7b
pop ebx
cmp dword [0x845d78], 0x86
jne 0x402b65
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
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_SystemTimeToTzSpecificLocalTime]
push esi
lea eax, [ebp - 0x53c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp dword [0x845d78], 0xf
jne 0x402b79
push esi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
dec ebx
jne 0x402b0b
call fcn.004025b0
pop edi
pop esi
pop ebx
leave
ret