Function at 0x416610
Capabilities:
Manipulate console buffer

Disassembly:
push 0xffffffffffffffff
push 0x41725a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5b8
push ebx
push ebp
push esi
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push edi
mov edi, dword [sym.imp.GDI32.dll_GetCharWidthA]
xor esi, esi
cmp esi, 0x2c831
jge 0x416654
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_CharToOemBuffA]
push ebx
push ebx
push ebx
push ebx
call edi
cmp dword [0x8dc2c4], 0x6fb
jne 0x416672
push ebx
lea eax, [esp + 0x1c8]
push eax
push ebx
call ebp
cmp esi, 0x3120cd8
jle 0x416691
cmp dword [esp + 0x20], 0x134170
je 0x416691
cmp dword [esp + 0x188], 0xe70b9d
jne 0x41669c
inc esi
cmp esi, 0x4f0fe3
jl 0x416643
jmp 0x4166c8
cmp dword [0x8dc2c4], 0x28
jne 0x4166c8
push ebx
lea ecx, [esp + 0x24]
push ecx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea edx, [esp + 0x3c]
push edx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
cmp dword [0x8dc2c4], 0xcf8
jne 0x416950
push 0x404080
push ebx
call fcn.00407f1d
push ebx
push ebx
push ebx
push 0x431e88
call fcn.00407b5e
push ebx
call fcn.00407eed
add esp, 0x1c
push ebx
push ebx
call fcn.004079e5
add esp, 8
lea eax, [esp + 0x17c]
push eax
call fcn.00406310
mov dword [esp + 0x17c], 0x40434c
mov dword [esp + 0x1b8], ebx
mov dword [esp + 0x1bc], ebx
mov eax, 1
mov dword [esp + 0x5d0], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x3c], 0x404390
mov dword [esp + 0x4c], 0x404398
mov byte [esp + 0x5d0], 3
mov ebp, 6
push 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0xa0], 0x404334
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], 0x201
mov dword [esp + 0xb8], ebp
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xac], ebx
call fcn.004080fd
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x416805
call fcn.00406f09
mov dword [esi], eax
call fcn.00406cc8
push ebx
lea ecx, [esp + 0x20]
mov edi, eax
call fcn.00406ff2
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
jae 0x4167fa
inc eax
mov dword [edi + 4], eax
lea ecx, [esp + 0x1c]
call fcn.0040701a
jmp 0x416807
xor esi, esi
lea ecx, [esp + 0x54]
lea edi, [esp + 0x24]
lea eax, [esp + 0x9c]
mov dword [esp + 0xcc], esi
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xd8], ebx
call fcn.004053b0
mov edi, eax
mov dword [esp + 0x5d0], ebp
call fcn.00406570
mov byte [esp + 0x5d0], 5
mov edi, dword [esp + 0x24]
mov ebp, eax
cmp edi, ebx
je 0x41688c
push ebx
lea ecx, [esp + 0x24]
call fcn.00406ff2
mov eax, dword [edi + 4]
cmp eax, ebx
jbe 0x41686a
cmp eax, 0xffffffff
jae 0x41686a
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x20]
and esi, edi
call fcn.0040701a
cmp esi, ebx
je 0x41688c
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov edx, dword [ebp]
mov eax, dword [edx + 0x18]
push 0x20
mov ecx, ebp
call eax
mov byte [esp + 0xdc], al
cmp dword [esp + 0xd4], ebx
jne 0x4168d2
mov eax, dword [esp + 0xa8]
or eax, 4
and eax, 0x17
mov dword [esp + 0xa8], eax
test dword [esp + 0xac], eax
je 0x4168d2
push ebx
lea ecx, [esp + 0xa0]
call fcn.004052d0
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0x4c], 0x40433c
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x3c], 0x404344
mov dword [esp + 0x5d0], 9
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x54]
push ecx
mov dword [esp + eax + 0x40], 0x40438c
call fcn.00406310
mov dword [esp + 0x54], 0x40434c
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
lea edx, [esp + 0x4c]
push edx
mov byte [esp + 0x5d4], 0xb
call fcn.00405550
push ebx
call fcn.004080ee
add esp, 4
call fcn.004077e1
push ebx
call fcn.00407e9b
mov eax, 0x5d1
add dword [0x8dc2c4], eax
mov eax, dword [0x8dc2c4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x8daabc], eax
mov eax, dword [0x8dc2c4]
xor edi, edi
cmp eax, ebx
jbe 0x4169c7
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetStringTypeW]
cmp eax, 0xfe
jne 0x41699e
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x3c]
push ecx
push 0x40408c
call esi
call fcn.004160a0
mov eax, dword [0x8dc2c4]
cmp eax, 0x8d
jne 0x4169c2
lea edx, [esp + 0x1c]
push edx
push ebx
push 0x40409c
push ebx
call ebp
mov eax, dword [0x8dc2c4]
inc edi
cmp edi, eax
jb 0x416984
cmp eax, 0x70
jne 0x4169d9
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
mov eax, dword [0x8dc2c4]
mov esi, dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileTime]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteConsoleOutputW]
mov dword [esp + 0x18], 0x9682ab
cmp eax, 3
jne 0x416a09
push 0x4040d0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
mov eax, dword [0x8dc2c4]
cmp eax, 0xdf
jne 0x416a57
push ebx
push ebx
push ebx
call esi
push ebx
push ebx
push ebx
push ebx
call edi
push ebx
xor eax, eax
push eax
push eax
push ebx
push ebx
mov dword [esp + 0x30], eax
call ebp
xor eax, eax
lea edx, [esp + 0x28]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
push edx
lea eax, [esp + 0x180]
push eax
push ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
mov eax, dword [0x8dc2c4]
dec dword [esp + 0x18]
jne 0x4169f3
mov esi, dword [sym.imp.KERNEL32.dll_UpdateResourceA]
mov ebp, 0x25887
mov edi, 0xabebc05c
lea ecx, [ecx]
mov dword [0x8daac4], edi
cmp eax, 0x222
jne 0x416a92
push ebx
push ebx
push ebx
push 0x404140
push 0x404154
push ebx
call esi
mov eax, dword [0x8dc2c4]
dec ebp
jne 0x416a70
mov byte [0x431e88], bl
call fcn.00415fa0
call fcn.004163f0
mov edi, dword [sym.imp.KERNEL32.dll_LocalFlags]
mov ebp, dword [sym.imp.KERNEL32.dll_LocalUnlock]
xor esi, esi
cmp dword [0x8dc2c4], 0xba
jne 0x416acc
push 0x404178
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push ebx
call edi
push ebx
call ebp
cmp esi, 0x2f64
jne 0x416ae5
mov eax, 0x2b3f
add dword [0x8daabc], eax
inc esi
cmp esi, 0x1605a
jl 0x416ab3
mov esi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, dword [sym.imp.KERNEL32.dll_DebugActiveProcessStop]
mov ebp, dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
mov dword [esp + 0x18], 0x1e6dcb
mov edi, edi
cmp dword [0x8dc2c4], 0x85
jne 0x416b45
push 0
call esi
push 0
call edi
push 0x4041f0
push 0x404208
push 0x404228
call ebp
push 0
push 0
lea ecx, [esp + 0x1cc]
push ecx
push 0
call ebx
dec dword [esp + 0x18]
jne 0x416b10
mov edx, 0x73
mov eax, 0x6d
mov word [0x8dc2ca], dx
mov word [0x8dc2ce], ax
xor eax, eax
mov ecx, 0x33
mov edx, 0x67
mov word [0x8dc2d2], cx
mov word [0x8dc2de], ax
mov word [0x8dc2d0], dx
mov eax, 0x69
mov ecx, 0x6d
mov edx, 0x6c
push 0x8dc2c8
mov dword [0x8dc2d8], 0x6c0064
mov word [0x8dc2cc], ax
mov word [0x8dc2c8], cx
mov word [0x8dc2dc], dx
mov dword [0x8dc2d4], 0x2e0032
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [esp + 0x5c8]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x5c4
ret