Function at 0x408eff
Capabilities:
Manipulate console buffer
Set console window title

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov edx, dword [0x2b72e1c]
sub esp, 0x50
push ebx
push ebp
push esi
xor ebp, ebp
push edi
cmp edx, 0x7c
jne 0x408e4d
push ebp
push ebp
call dword [sym.imp.USER32.dll_LoadIconA]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push ebp
call dword [sym.imp.KERNEL32.dll_FindAtomA]
push ebp
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_HeapWalk]
cmp dword [0x2b72e1c], 0x2d
jne 0x408e28
push ebp
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
push ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
call fcn.004011e3
add esp, 4
lea ecx, [esp + 0x28]
push ecx
call section..text
mov edx, dword [0x2b72e1c]
mov ecx, dword [0x44dcf0]
xor eax, eax
mov edi, 0xec58acac
or esi, 0xffffffff
lea ecx, [ecx]
cmp eax, 0x8450db
jne 0x408e6d
lea edx, [ecx + 0xa231]
cmp edx, 0x141
jne 0x408e81
mov dword [0x44e9f8], edi
mov dword [0x44e9fc], esi
inc eax
cmp eax, 0xb9fa618
jl 0x408e60
mov edi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x2b72e1c], edx
xor esi, esi
cmp esi, 0x562d05
jne 0x408ea9
mov eax, dword [0x44dce4]
mov dword [0x2b72e20], eax
cmp edx, 0x3c
jne 0x408eb7
push ebp
call edi
mov edx, dword [0x2b72e1c]
inc esi
cmp esi, 0x5f6c74
jl 0x408e97
cmp edx, 0x110a
jne 0x408f2f
push ebp
mov dword [0x2b72ce8], ebp
mov dword [0x2b72cec], ebp
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebp
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_HeapCompact]
push ebp
push ebp
call fcn.0040106a
push str.0__s__d__f
call fcn.004011bb
add esp, 0xc
push ebp
call fcn.004010aa
add esp, 4
push ebp
call fcn.004010aa
add esp, 4
push ebp
call fcn.0040147c
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword [0x2b72e1c]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor esi, esi
mov dword [0x2b72b44], eax
cmp dword [0x2b72e1c], ebp
jbe 0x408f9d
mov edi, dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
lea ecx, [ecx]
mov edx, dword [0x2b72e20]
mov dword [esp + 0x14], edx
mov eax, 0xa231
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov cl, byte [eax + esi]
mov edx, dword [0x2b72b44]
mov byte [edx + esi], cl
cmp dword [0x2b72e1c], 0x5ab
jne 0x408f94
push ebp
push ebp
push ebp
call edi
inc esi
cmp esi, dword [0x2b72e1c]
jb 0x408f60
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call fcn.00408ab0
mov eax, dword [0x2b72e1c]
mov edi, dword [0x2b72b44]
mov ebx, dword [0x44ced0]
mov esi, eax
cmp eax, 0x930
jne 0x408fd3
push ebp
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x2b72e1c]
mov dword [0x2b72b40], ebx
cmp eax, 0x114e
jne 0x408ff6
push ebp
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov eax, dword [0x2b72e1c]
cmp eax, 0x2f
jne 0x409032
lea ecx, [esp + 0x20]
push ecx
xor edx, edx
push edx
xor eax, eax
push eax
lea ecx, [esp + 0x28]
push ecx
push ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], edx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputA]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
push esi
push edi
call fcn.00408c00
add dword [0x2b72b44], 0
mov ebx, dword [esp + 0x48]
mov edi, dword [sym.imp.KERNEL32.dll_GetAtomNameW]
add esp, 8
xor esi, esi
push ebp
push ebp
push ebp
call edi
cmp esi, 0x1a01e
jle 0x409067
cmp ebx, 0xf5bed7
jne 0x409070
inc esi
cmp esi, 0x1ece7a52
jl 0x409052
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, 0x1519a5
mov ebx, 0x8e46a6f0
jmp 0x409090
cmp dword [0x2b72e1c], 0xcc1
jne 0x40909e
call edi
cmp dword [0x2b72e1c], 0x3dc
mov dword [0x2b72ce4], ebx
jne 0x4090c3
push 0
push 0
push 0
push 0
push 0
push 0
push str.xufalu
call esi
dec ebp
jne 0x409090
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret