Function at 0x4074d0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x456d10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov ecx, 0x3e8
push esi
push edi
mov esi, 1
mov edi, ebx
movzx eax, word [ebx]
cmp ax, cx
jne 0x407536
lea esi, [ebx + 0x20]
push esi
push str.HOOKTYPE_OUSIDE_PROG__s_r_n
push 3
call fcn.0041a380
push 0
push dword [ebx + 0x18]
push esi
push dword [0x45aa7c]
call fcn.004045f0
add esp, 0x1c
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004265fb
mov esp, ebp
pop ebp
ret
cmp dword [0x45a94c], 0
jne 0x407557
cmp eax, 0xc
je 0x407557
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004265fb
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0xb0], 0x64
cmp eax, 0x11
ja case.0x40756a.5
jmp dword [eax*4 + 0x408330]
push str.HOOKTYPE_DATA_AT_COORD_n
push 3
call fcn.0041a380
add esp, 8
cmp byte [0x45a54f], 0
jne 0x4075ae
movsx eax, word [ebx + 0xa]
push eax
movsx eax, word [ebx + 8]
push eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [0x457dcc]
call fcn.0041d120
add esp, 0x14
mov edi, eax
lea eax, [ebp - 0x70]
push 0
sub edi, eax
push edi
push eax
push dword [0x45aa7c]
call fcn.004045f0
add esp, 0x10
mov esi, eax
cmp dword [ebx + 0x18], 0xfa
lea edi, [ebx + 0x18]
jae 0x4075e8
lea ecx, [ebx + 0x20]
push ecx
push str.HOOKTYPE_DATA_r_n_tdata_s_n
push 3
call fcn.0041a380
add esp, 0xc
jmp 0x4075f7
push str.HOOKTYPE_DATA_r_n_tdata_more_than_250_bytes_of_data__n
push 3
call fcn.0041a380
add esp, 8
cmp dword [0x45ad44], 0
jne 0x4076ba
movzx eax, word [ebx + 0x14]
test ax, ax
je 0x4076ba
cmp word [ebx], 3
mov cx, word [0x47b758]
je 0x407627
cmp ax, cx
je 0x4076ba
push eax
movzx eax, cx
push eax
push str.wLastAtt___d_pHookData__Attributes___d_n
push 3
call fcn.0041a380
movzx eax, word [ebx + 0x14]
push eax
call fcn.0041c680
movzx ecx, word [ebx + 0x14]
push ecx
mov dword [ebp - 0x78], eax
call fcn.0041c6b0
add esp, 0x18
cmp byte [0x45a54f], 0
jne 0x40769d
push 0x47b748
push dword [0x45ac1c]
push 0xffffffffffffffff
push eax
push dword [ebp - 0x78]
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [0x457dcc]
call fcn.0041d250
lea ecx, [ebp - 0x70]
push 0
sub eax, ecx
push eax
mov eax, ecx
push eax
push dword [0x45aa7c]
call fcn.004045f0
add esp, 0x30
mov esi, eax
mov ax, word [ebx + 0x14]
mov word [0x47b758], ax
movzx eax, ax
push eax
push str.wLastAtt___d_n
push 3
call fcn.0041a380
add esp, 0xc
cmp dword [edi], 0
je 0x40793a
lea edx, [ebx + 0x20]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x78], eax
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4076d0
sub ecx, dword [ebp - 0x78]
je 0x40793a
cmp dword [ebx + 0x1c], 0
mov byte [ebp - 0xb1], al
je 0x407764
cmp byte [0x45a54e], 0
mov eax, dword [0x457dc4]
mov byte [ebp - 0xb1], 1
mov dword [ebp - 0x74], eax
jne 0x407710
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov dword [ebp - 0x74], eax
lea edx, [ebx + 0x20]
mov ecx, dword [edi]
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
shr ecx, 1
push ecx
push edx
push 0
push eax
call edi
mov esi, eax
push esi
call fcn.00427138
mov ecx, dword [ebx + 0x18]
add esp, 4
shr ecx, 1
mov dword [ebp - 0x78], eax
push 0
push 0
push esi
push eax
lea esi, [ebx + 0x18]
push ecx
lea eax, [ebx + 0x20]
push eax
push 0
push dword [ebp - 0x74]
call edi
mov edi, eax
test edi, edi
jne 0x40775d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], edi
mov edi, dword [ebp - 0x78]
jmp 0x40778f
cmp byte [0x45a54e], 0
jne 0x407771
mov edi, edx
jmp 0x40778c
push edi
push edx
mov byte [ebp - 0xb1], 1
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov ecx, eax
call fcn.004127e0
add esp, 8
mov edi, eax
lea esi, [ebx + 0x18]
cmp byte [edi], 0xa
jne 0x4077b1
cmp dword [0x47b768], 0
jne 0x4077b1
push ecx
push 1
lea edx, [ebp - 0x70]
mov word [ebp - 0x70], 0xd
call fcn.00418c90
add esp, 8
lea eax, [ebp - 0x94]
push eax
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov ecx, dword [0x45a948]
or ecx, dword [0x45aaec]
movzx eax, word [0x47b758]
mov edx, dword [esi]
mov dword [ebp - 0x74], 0
cmp eax, ecx
je 0x407818
cmp edx, 3
jbe 0x407818
cmp byte [edx + edi - 1], 0xa
lea esi, [edx + edi]
jne 0x407818
cmp byte [esi - 2], 0xd
jne 0x407818
movsx ecx, word [ebp - 0x8e]
movsx eax, word [ebp - 0x92]
inc ecx
cmp ecx, eax
jne 0x407818
lea eax, [esi - 3]
sub edx, 2
mov dword [ebp - 0x74], eax
push ecx
push edx
mov edx, edi
call fcn.00418c90
mov esi, eax
xor ecx, ecx
mov eax, dword [ebx + 0x18]
add esp, 8
cmp byte [eax + edi - 1], 0xd
movsx eax, word [ebp - 0x92]
sete cl
mov dword [0x47b768], ecx
movsx ecx, word [ebp - 0x8e]
inc ecx
cmp ecx, eax
jne 0x4078b1
mov eax, dword [0x45aaec]
or eax, dword [0x45a948]
push eax
call fcn.0041c680
mov ecx, dword [0x45aaec]
mov esi, eax
or ecx, dword [0x45a948]
push ecx
call fcn.0041c6b0
push 0x47b748
push dword [0x45ac1c]
push 0xffffffffffffffff
push eax
push esi
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [0x457dcc]
call fcn.0041d250
lea ecx, [ebp - 0x70]
push 0
sub eax, ecx
push eax
mov eax, ecx
push eax
push dword [0x45aa7c]
call fcn.004045f0
add esp, 0x38
mov esi, eax
cmp dword [ebp - 0x74], 0
je 0x407928
push ecx
push 2
lea edx, [ebp - 0x74]
mov word [ebp - 0x74], 0xd0a
mov byte [ebp - 0x72], 0
call fcn.00418c90
movzx eax, word [0x47b758]
push eax
call fcn.0041c680
movzx ecx, word [0x47b758]
mov esi, eax
push ecx
call fcn.0041c6b0
push 0x47b748
push dword [0x45ac1c]
push 0xffffffffffffffff
push eax
push esi
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [0x457dcc]
call fcn.0041d250
lea ecx, [ebp - 0x70]
push 0
sub eax, ecx
push eax
mov eax, ecx
push eax
push dword [0x45aa7c]
call fcn.004045f0
add esp, 0x40
mov esi, eax
cmp byte [ebp - 0xb1], 0
je 0x40793a
push edi
call fcn.00426f24
add esp, 4
cmp word [ebx], 3
jne case.0x40756a.5
movsx eax, word [ebx + 0xe]
push eax
movsx eax, word [ebx + 0xc]
push eax
push str.return_cursor_to_x_d_y_d_n
push 3
call fcn.0041a380
movsx eax, word [ebx + 0xe]
push eax
movsx eax, word [ebx + 0xc]
push eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [0x457dcc]
call fcn.0041d120
lea ecx, [ebp - 0x70]
push 0
sub eax, ecx
push eax
mov eax, ecx
push eax
push dword [0x45aa7c]
call fcn.004045f0
add esp, 0x34
jmp 0x40831a
cmp byte [0x45a54f], 0
movsx eax, word [ebx + 0xa]
push eax
movsx eax, word [ebx + 8]
push eax
push str.HOOKTYPE_CURSOR_LOC_x_d_y_d_n
push 3
jne 0x4079f5
call fcn.0041a380
movsx eax, word [ebx + 0xa]
push eax
movsx eax, word [ebx + 8]
push eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [0x457dcc]
call fcn.0041d120
lea ecx, [ebp - 0x70]
push 0
sub eax, ecx
push eax
mov eax, ecx
push eax
push dword [0x45aa7c]
call fcn.004045f0
add esp, 0x34
jmp 0x40831a
call fcn.0041a380
movzx edx, word [ebx + 8]
add esp, 0x10
movzx eax, word [ebx + 0xc]
cmp dx, ax
jne 0x407a18
cmp word [ebx + 0xa], si
jne 0x407a18
mov byte [ebp - 0x70], 0xd
mov eax, esi
jmp 0x407a56
cwde
movsx edx, dx
lea ecx, [eax + 1]
cmp edx, ecx
jne case.0x40756a.5
mov ax, word [ebx + 0xa]
cmp ax, word [ebx + 0xe]
jne 0x407a39
mov byte [ebp - 0x70], 0xa
mov eax, esi
jmp 0x407a56
cmp edx, ecx
jne case.0x40756a.5
cmp word [ebx + 0xa], si
jne case.0x40756a.5
mov word [ebp - 0x70], 0xa0d
mov eax, 2
push 0
push eax
lea eax, [ebp - 0x70]
push eax
push dword [0x45aa7c]
call fcn.004045f0
add esp, 0x10
jmp 0x40831a
cmp byte [0x45a54f], 0
jne case.0x40756a.5
push str.HOOKTYPE_CURSOR_INFO_n
push 3
call fcn.0041a380
mov ecx, dword [0x45aa7c]
add esp, 8
cmp dword [ebx + 0x1c], 0
je 0x407ab0
call fcn.00415620
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004265fb
mov esp, ebp
pop ebp
ret
call fcn.004155b0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004265fb
mov esp, ebp
pop ebp
ret
cmp byte [0x45a54f], 0
jne case.0x40756a.5
push str.HOOKTYPE_ATTRIBUTE_n
push 3
call fcn.0041a380
add esp, 8
cmp dword [0x45ad44], 0
jne case.0x40756a.5
movzx eax, word [ebx + 0x14]
push eax
call fcn.0041c680
movzx ecx, word [ebx + 0x14]
mov esi, eax
push ecx
call fcn.0041c6b0
push 0x47b748
push dword [0x45ac1c]
push 0xffffffffffffffff
push eax
push esi
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [0x457dcc]
call fcn.0041d250
lea ecx, [ebp - 0x70]
push 0
sub eax, ecx
push eax
mov eax, ecx
push eax
push dword [0x45aa7c]
call fcn.004045f0
mov esi, eax
mov ax, word [ebx + 0x14]
mov word [0x47b758], ax
movzx eax, ax
push eax
push str.wLastAtt___d_n
push 3
call fcn.0041a380
add esp, 0x44
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004265fb
mov esp, ebp
pop ebp
ret
cmp byte [0x45a54f], 0
jne case.0x40756a.5
push str.HOOKTYPE_FILL_n
push 3
call fcn.0041a380
mov eax, dword [ebx + 0x18]
add esp, 8
add eax, 0x14
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
movsx ecx, word [ebx + 0xa]
mov edx, eax
movsx eax, word [ebx + 8]
mov esi, dword [ebx + 0x18]
push ecx
push eax
lea eax, [ebp - 0xb0]
mov dword [ebp - 0x74], edx
push eax
push edx
push dword [0x457dcc]
add esi, 0x14
mov dword [ebp - 0xb0], esi
call fcn.0041d120
mov edx, dword [ebx + 0x18]
mov edi, eax
mov ecx, edi
add esp, 0x14
sub ecx, dword [ebp - 0x74]
cmp edx, dword [0x45a940]
jne 0x407c0f
cmp byte [ebx + 0x20], 0x20
jne 0x407c0f
mov eax, dword [ebp - 0xb0]
sub eax, ecx
push eax
push edi
push dword [0x457dcc]
call fcn.0041ce80
mov edi, eax
add esp, 0xc
sub esi, edi
add esi, dword [ebp - 0x74]
mov dword [ebp - 0xb0], esi
jmp 0x407c66
mov eax, dword [0x45a95c]
imul eax, dword [0x45a940]
cmp edx, eax
jne 0x407c4c
cmp byte [ebx + 0x20], 0x20
jne 0x407c4c
mov eax, dword [ebp - 0xb0]
sub eax, ecx
push eax
push edi
push dword [0x457dcc]
call fcn.0041cee0
mov edi, eax
add esp, 0xc
sub esi, edi
add esi, dword [ebp - 0x74]
mov dword [ebp - 0xb0], esi
jmp 0x407c66
movsx eax, byte [ebx + 0x20]
push edx
push eax
push edi
call fcn.0042bf20
mov eax, dword [ebx + 0x18]
add esp, 0xc
add edi, eax
sub dword [ebp - 0xb0], eax
movsx eax, word [ebx + 0xa]
push eax
movsx eax, word [ebx + 8]
push eax
lea eax, [ebp - 0xb0]
push eax
push edi
push dword [0x457dcc]
call fcn.0041d120
mov ebx, dword [ebp - 0x74]
sub eax, ebx
push 0
push eax
push ebx
push dword [0x45aa7c]
call fcn.004045f0
push ebx
mov esi, eax
call fcn.0041b930
add esp, 0x28
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004265fb
mov esp, ebp
pop ebp
ret
cmp byte [0x45a54f], 0
jne case.0x40756a.5
push str.HOOKTYPE_FILL_ATTRIBUTE_n
push 3
call fcn.0041a380
movzx eax, word [ebx + 0x14]
push eax
call fcn.0041c680
movzx ecx, word [ebx + 0x14]
mov edi, eax
push ecx
call fcn.0041c6b0
movsx ecx, word [ebx + 0xa]
mov esi, eax
push ecx
movsx ecx, word [ebx + 8]
lea eax, [ebp - 0xb0]
push ecx
push eax
lea eax, [ebp - 0x70]
push eax
push dword [0x457dcc]
call fcn.0041d120
push 0x47b748
push dword [0x45ac1c]
lea ecx, [ebp - 0xb0]
push 0xffffffffffffffff
push esi
push edi
push ecx
push eax
push dword [0x457dcc]
call fcn.0041d250
add esp, 0x44
lea ecx, [ebp - 0x70]
sub eax, ecx
push 0
push eax
mov eax, ecx
push eax
push dword [0x45aa7c]
call fcn.004045f0
mov esi, eax
mov ax, word [ebx + 0x14]
mov word [0x47b758], ax
movzx eax, ax
push eax
push str.wLastAtt___d_n
push 3
call fcn.0041a380
add esp, 0x1c
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004265fb
mov esp, ebp
pop ebp
ret
cmp byte [0x45a54f], 0
jne case.0x40756a.5
movsx eax, word [ebx + 0xa]
push eax
movsx eax, word [ebx + 8]
push eax
push str.HOOKTYPE_RECT_at_X_d_Y_d_n
push 3
call fcn.0041a380
mov ax, word [ebx + 8]
add esp, 0x10
movzx ecx, word [ebx + 0x12]
mov word [ebp - 0x7a], ax
dec ax
add cx, ax
mov ax, word [ebx + 0xa]
mov word [ebp - 0x76], cx
movzx ecx, word [ebx + 0x10]
mov word [ebp - 0x7c], ax
dec ax
add cx, ax
imul eax, dword [0x47badc], 0x19
mov word [ebp - 0x78], cx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je case.0x40756a.5
imul ecx, dword [0x47badc], 0x19
cmp dword [ebx + 0x1c], 0
mov dword [ebp - 0xb0], ecx
je 0x407e0a
mov ecx, dword [ebx + 0x18]
shr ecx, 2
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
lea edx, [ebx + 0x22]
mov ecx, eax
call fcn.004128e0
add esp, 4
movzx eax, byte [0x45ad48]
push eax
push 0x47b758
push dword [0x45ad44]
lea eax, [ebx + 0x22]
push 0x47b748
push dword [0x45ac1c]
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
push dword [ebx + 0x18]
push eax
lea eax, [ebp - 0xb0]
push eax
push edi
push dword [0x457dcc]
call fcn.0041bbc0
movsx ecx, word [ebx + 0xe]
push ecx
movsx ecx, word [ebx + 0xc]
push ecx
lea ecx, [ebp - 0xb0]
push ecx
push eax
push dword [0x457dcc]
call fcn.0041d120
add esp, 0x44
sub eax, edi
push 0
push eax
push edi
push dword [0x45aa7c]
call fcn.004045f0
add esp, 0x10
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004265fb
mov esp, ebp
pop ebp
ret
call fcn.00407460
mov eax, dword [ebx + 0x1c]
mov dword [0x45a93c], eax
cmp word [ebx], 0xb
jne 0x407ebc
push str.HOOKTYPE_READ_n
push 3
call fcn.0041a380
add esp, 8
jmp 0x407ecc
push eax
push str.HOOKTYPE_READWITHFLAG_0x_08x_n
push 3
call fcn.0041a380
add esp, 0xc
call fcn.00412780
test eax, eax
jne 0x407eeb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_release_output_mutex._error__d_n
push 2
call fcn.0041a380
add esp, 0xc
inc dword [0x47b770]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004265fb
mov esp, ebp
pop ebp
ret
push str.HOOKTYPE_READEND_n
push 3
call fcn.0041a380
mov eax, dword [0x47b770]
add esp, 8
mov byte [0x45ad49], 1
test eax, eax
jle case.0x40756a.5
dec eax
mov dword [0x47b770], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004265fb
mov esp, ebp
pop ebp
ret
push str.HOOKTYPE_REDRAW_n
push 3
call fcn.0041a380
add esp, 8
lea eax, [ebp - 0xac]
push eax
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je case.0x40756a.5
movzx edx, word [ebx + 8]
mov cx, word [ebp - 0xa6]
cmp dx, word [ebp - 0xa8]
jne 0x407f8b
cmp word [ebx + 0xa], cx
je case.0x40756a.5
movsx eax, word [ebx + 0xa]
movsx edi, cx
sub edi, eax
mov word [ebp - 0x74], dx
movsx eax, word [ebp - 0xac]
imul edi, eax
movsx eax, dx
mov word [ebp - 0x72], cx
mov dword [ebp - 0x78], 0
sub edi, eax
mov ax, word [ebp - 0xa8]
cwde
add edi, eax
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je case.0x40756a.5
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x74]
push edi
push ebx
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
test eax, eax
je 0x408008
push 0
push dword [ebp - 0x78]
push ebx
push dword [0x45aa7c]
call fcn.004045f0
add esp, 0x10
mov esi, eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004265fb
mov esp, ebp
pop ebp
ret
push str.HOOKTYPE_SCREEN_n
push 3
call fcn.0041a380
add esp, 8
mov dword [0x45a93c], 0
call fcn.00412780
test eax, eax
jne 0x408063
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_release_output_mutex._error__d_n
push 2
call fcn.0041a380
add esp, 0xc
cmp dword [0x47b75c], 0
jne 0x40816b
push dword [ebx + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x40
call edi
mov dword [0x47b75c], eax
test eax, eax
je case.0x40756a.5
push dword [ebx + 0x18]
lea esi, [ebx + 0x22]
push esi
push eax
call fcn.0042a7d0
mov ax, word [ebx + 0xa]
add esp, 0xc
movzx ecx, word [ebx + 0x12]
mov word [ebp - 0x7a], ax
dec ax
add cx, ax
mov ax, word [ebx + 8]
mov word [ebp - 0x7c], ax
dec ax
mov word [ebp - 0x76], cx
movzx ecx, word [ebx + 0x10]
add cx, ax
mov word [ebp - 0x78], cx
mov ecx, dword [0x47badc]
mov eax, ecx
shl eax, 4
add eax, ecx
mov dword [ebp - 0xb0], eax
imul eax, ecx, 0x13
push eax
push 0x40
call edi
movzx ecx, byte [0x45ad48]
mov edi, eax
push ecx
push 0x47b758
push dword [0x45ad44]
lea eax, [ebp - 0xb0]
push 0x47b748
push dword [0x45ac1c]
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
push dword [ebx + 0x18]
push esi
push eax
push edi
push dword [0x457dcc]
call fcn.0041bbc0
movsx ecx, word [ebx + 0xe]
push ecx
movsx ecx, word [ebx + 0xc]
push ecx
lea ecx, [ebp - 0xb0]
push ecx
push eax
push dword [0x457dcc]
call fcn.0041d120
add esp, 0x44
sub eax, edi
push 0
push eax
push edi
push dword [0x45aa7c]
call fcn.004045f0
push edi
mov esi, eax
call fcn.0041b930
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004265fb
mov esp, ebp
pop ebp
ret
movzx eax, word [ebx + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov word [ebp - 0x78], ax
movzx eax, word [ebx + 0xa]
mov word [ebp - 0x76], ax
imul eax, dword [0x47badc], 0x13
push eax
push 0x40
call esi
push dword [ebp - 0x78]
mov edx, dword [0x47badc]
mov edi, eax
push 0x47b750
lea eax, [ebp - 0x78]
mov dword [ebp - 0x74], edi
push eax
mov eax, dword [0x457eb4]
mov ecx, edx
push eax
push eax
push dword [0x457eb8]
shl ecx, 4
add ecx, edx
mov dword [ebp - 0xb0], ecx
lea ecx, [ebx + 0x22]
push edx
push ecx
push dword [0x47b75c]
lea edx, [ebp - 0xb0]
lea ecx, [ebp - 0x74]
call fcn.00416a50
movsx eax, word [ebx + 0xe]
push eax
movsx eax, word [ebx + 0xc]
push eax
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0x74]
push dword [0x457dcc]
call fcn.0041d120
push dword [0x47b75c]
sub eax, edi
mov dword [ebp - 0x78], eax
call fcn.0041b930
add esp, 0x3c
push dword [ebx + 0x18]
push 0x40
call esi
mov dword [0x47b75c], eax
test eax, eax
je 0x408229
push dword [ebx + 0x18]
lea ecx, [ebx + 0x22]
push ecx
push eax
call fcn.0042a7d0
add esp, 0xc
push 0
push dword [ebp - 0x78]
push edi
push dword [0x45aa7c]
call fcn.004045f0
push edi
mov esi, eax
call fcn.0041b930
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004265fb
mov esp, ebp
pop ebp
ret
cmp byte [0x45a54f], 0
jne 0x40829c
push str.HOOKTYPE_WINDOW_SIZE_n
push 3
call fcn.0041a380
movzx ecx, word [ebx + 0x10]
add esp, 8
movzx edx, word [ebx + 0x12]
mov eax, ecx
imul eax, edx
mov dword [0x457eb8], ecx
mov dword [0x45a940], ecx
mov dword [0x457eb4], edx
mov dword [0x45a95c], edx
mov dword [0x47badc], eax
jmp 0x4082a8
mov ecx, dword [0x45a940]
mov edx, dword [0x45a95c]
cmp byte [0x45a950], 2
jne case.0x40756a.5
push 0
push 9
push 0x457ea4
push dword [0x45aa7c]
mov byte [0x457ea8], cl
mov byte [0x457eaa], dl
call fcn.004045f0
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004265fb
mov esp, ebp
pop ebp
ret
cmp byte [0x45a54f], 0
jne case.0x40756a.5
push 0x64
lea eax, [ebp - 0x70]
push eax
push dword [0x457dcc]
call fcn.0041cee0
lea ecx, [ebp - 0x70]
push 0
sub eax, ecx
push eax
mov eax, ecx
push eax
push dword [0x45aa7c]
call fcn.004045f0
add esp, 0x1c
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004265fb
mov esp, ebp
pop ebp
ret