Function at 0x403691
Capabilities:
Extract resource via kernel32 functions
Get common file path
Get hostname
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x18dc
call fcn.00409c80
push ebx
push esi
xor esi, esi
cmp dword [0x2a9c060], 0x5b1
push edi
jne 0x403759
push esi
push esi
lea eax, [esp + 0x8f0]
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 [esp + 0xc], ax
lea edi, [esp + 0xe]
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0xf0]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
push 0x402ee8
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_LoadResource]
push esi
push dword [esp + 0x14]
lea eax, [esp + 0x10f0]
push eax
push esi
call dword [sym.imp.SHELL32.dll_ShellAboutW]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.ole32.dll_StringFromCLSID]
push esi
call fcn.00403a3d
call fcn.00403a38
push esi
push esi
call fcn.00403ae0
push esi
call fcn.00403ab1
push esi
call fcn.00403b45
add esp, 0x14
push esi
call fcn.00403df5
add dword [0x2a9c060], 0x1134b
push dword [0x2a9c060]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x2a9afb0], eax
call fcn.004035dc
xor edi, edi
cmp dword [0x2a9c060], esi
jbe 0x4037b9
cmp dword [0x2a9c060], 0xa8
mov eax, dword [0x2a9c064]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x2a9afb0]
mov byte [ecx + edi], al
jne 0x4037b0
push 0x402fb4
call dword [sym.imp.KERNEL32.dll_SetComputerNameA]
inc edi
cmp edi, dword [0x2a9c060]
jb 0x403784
xor ebx, ebx
mov eax, dword [0x2a9c060]
add eax, ebx
cmp eax, 0xe
jne 0x40383a
push esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_SetKernelObjectSecurity]
push esi
lea eax, [esp + 0x10ec]
push eax
push esi
push 0x402fe8
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea eax, [esp + 0xc]
push eax
push esi
push 0x403040
push esi
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
push esi
push esi
lea eax, [esp + 0x8f0]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
xor eax, eax
mov word [esp + 0x18], ax
lea edi, [esp + 0x1a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push esi
stosw word es:[edi], ax
lea eax, [esp + 0xec]
push eax
push 0x40308c
lea eax, [esp + 0x24]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
inc ebx
cmp ebx, 0x39621
jl 0x4037bb
call fcn.004034c7
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x26
jne 0x40385e
call fcn.004035c2
inc edi
cmp edi, 0x6753f
jl 0x40384e
push 0x7b
pop ebx
cmp dword [0x2a9c060], 0x86
jne 0x4038d5
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0xec]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
xor eax, eax
mov word [esp + 0x28], ax
lea edi, [esp + 0x2a]
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 [esp + 0x18], ax
lea edi, [esp + 0x1a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_TzSpecificLocalTimeToSystemTime]
push esi
lea eax, [esp + 0x8ec]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp dword [0x2a9c060], 0xf
jne 0x4038ea
push esi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
dec ebx
jne 0x40386a
push 0x4030b8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret