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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x428703
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x210c
call fcn.0040ab30
push ebx
push esi
xor ebx, ebx
cmp dword [0x2a9f348], 0x5b1
push edi
jne 0x403919
push ebx
push ebx
lea eax, [esp + 0x520]
push eax
push ebx
push ebx
call sub.USER32.dll_DdeQueryStringW
push ebx
push ebx
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
xor eax, eax
mov word [esp + 0x10], ax
lea edi, [esp + 0x12]
stosw word es:[edi], ax
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0xd20]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
push 0x402f70
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
lea eax, [esp + 0x4c]
call fcn.00403bff
push ebx
mov dword [esp + 0x2128], ebx
call fcn.00404084
pop ecx
lea esi, [esp + 0x14]
call fcn.00403460
mov ecx, esi
call fcn.00403480
push ebx
push ebx
call fcn.00403f01
push ebx
call fcn.00403ed2
push ebx
call fcn.00404100
add esp, 0x10
push ebx
call fcn.004043b0
add dword [0x2a9f348], 0x1134b
push dword [0x2a9f348]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x2a9e298], eax
call fcn.0040378e
xor esi, esi
cmp dword [0x2a9f348], ebx
jbe 0x403979
cmp dword [0x2a9f348], 0xa8
mov eax, dword [0x2a9f34c]
mov al, byte [eax + esi + 0x1134b]
mov ecx, dword [0x2a9e298]
mov byte [ecx + esi], al
jne 0x403970
push 0x402f3c
call dword [sym.imp.KERNEL32.dll_SetComputerNameA]
inc esi
cmp esi, dword [0x2a9f348]
jb 0x403944
xor esi, esi
mov eax, dword [0x2a9f348]
add eax, esi
cmp eax, 0xe
jne 0x4039fa
push ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_SetKernelObjectSecurity]
push ebx
lea eax, [esp + 0xd1c]
push eax
push ebx
push 0x403050
push ebx
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea eax, [esp + 0x10]
push eax
push ebx
push 0x4030a8
push ebx
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
push ebx
push ebx
lea eax, [esp + 0x520]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
xor eax, eax
mov word [esp + 0x14], ax
lea edi, [esp + 0x16]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
stosw word es:[edi], ax
lea eax, [esp + 0x191c]
push eax
push 0x4030f4
lea eax, [esp + 0x20]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
inc esi
cmp esi, 0x39621
jl 0x40397b
call fcn.00403696
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x26
jne 0x403a1e
call fcn.00403774
inc esi
cmp esi, 0x6753f
jl 0x403a0e
push 0x7b
pop esi
cmp dword [0x2a9f348], 0x86
jne 0x403a95
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x151c]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
xor eax, eax
mov word [esp + 0x3c], ax
lea edi, [esp + 0x3e]
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 + 0x2c], ax
lea edi, [esp + 0x2e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_TzSpecificLocalTimeToSystemTime]
push ebx
lea eax, [esp + 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp dword [0x2a9f348], 0xf
jne 0x403aa4
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
dec esi
jne 0x403a2a
push 0x403120
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [esp + 0x211c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret