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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov edx, dword [0x2b72e14]
sub esp, 0x50
push ebx
push ebp
push esi
xor ebp, ebp
push edi
cmp edx, 0x7c
jne 0x408e0d
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 [0x2b72e14], 0x2d
jne 0x408de8
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 [0x2b72e14]
mov ecx, dword [0x44dcf0]
xor eax, eax
mov edi, 0xec58acac
or esi, 0xffffffff
lea ecx, [ecx]
cmp eax, 0x8450db
jne 0x408e2d
lea edx, [ecx + 0xa231]
cmp edx, 0x141
jne 0x408e41
mov dword [0x44e9f0], edi
mov dword [0x44e9f4], esi
inc eax
cmp eax, 0xb9fa618
jl 0x408e20
mov edi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x2b72e14], edx
xor esi, esi
cmp esi, 0x562d05
jne 0x408e69
mov eax, dword [0x44dce4]
mov dword [0x2b72e18], eax
cmp edx, 0x3c
jne 0x408e77
push ebp
call edi
mov edx, dword [0x2b72e14]
inc esi
cmp esi, 0x5f6c74
jl 0x408e57
cmp edx, 0x110a
jne 0x408eef
push ebp
mov dword [0x2b72ce0], ebp
mov dword [0x2b72ce4], 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 [0x2b72e14]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor esi, esi
mov dword [0x2b72b3c], eax
cmp dword [0x2b72e14], ebp
jbe 0x408f5d
mov edi, dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
lea ecx, [ecx]
mov edx, dword [0x2b72e18]
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 [0x2b72b3c]
mov byte [edx + esi], cl
cmp dword [0x2b72e14], 0x5ab
jne 0x408f54
push ebp
push ebp
push ebp
call edi
inc esi
cmp esi, dword [0x2b72e14]
jb 0x408f20
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call fcn.00408ab0
mov eax, dword [0x2b72e14]
mov edi, dword [0x2b72b3c]
mov ebx, dword [0x44ced0]
mov esi, eax
cmp eax, 0x930
jne 0x408f93
push ebp
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x2b72e14]
mov dword [0x2b72b38], ebx
cmp eax, 0x114e
jne 0x408fb6
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 [0x2b72e14]
cmp eax, 0x2f
jne 0x408ff2
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 [0x2b72b3c], 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 0x409027
cmp ebx, 0xf5bed7
jne 0x409030
inc esi
cmp esi, 0x1ece7a52
jl 0x409012
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov esi, dword [sym.imp.KERNEL32.dll_HeapLock]
mov ebp, 0x1519a5
mov ebx, 0x8e46a6f0
jmp 0x409050
cmp dword [0x2b72e14], 0xcc1
jne 0x40905e
call edi
cmp dword [0x2b72e14], 0x3dc
mov dword [0x2b72cdc], ebx
jne 0x409074
push 0
call esi
dec ebp
jne 0x409050
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret