Function at 0x406e00
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0xb8
mov eax, dword [ecx + 8]
mov edi, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x7c], eax
mov eax, dword [ecx + 0xc]
xor ecx, ecx
mov dword [esp + 4], ecx
mov dword [esp], edi
mov dword [ebp - 0x80], eax
call sym._GetWindowLongW_8
sub esp, 8
test eax, eax
mov ebx, eax
jne 0x406e4b
cmp esi, 0x81
jne case.0x406e76.0
cmp esi, 0x87
je 0x4077c0
ja 0x406e80
cmp esi, 0x31
ja 0x406f40
cmp esi, 1
jbe case.0x406e76.0
cmp esi, 0x31
nop
ja case.0x406e76.0
jmp dword [esi*4 + 0x4125d4]
cmp esi, 0x201
je 0x407858
lea esi, [esi]
jbe 0x406ee0
cmp esi, 0x400
je 0x407640
cmp esi, 0x401
jne case.0x406e76.0
mov edi, dword [ebp - 0x80]
mov eax, dword [ebx + 0x18]
test edi, edi
je 0x406ecf
mov edx, dword [ebp - 0x7c]
mov esi, dword [ebx + 0x14]
cmp edx, eax
cmovg edx, eax
cmp edx, 8
mov ecx, edx
jae 0x407ab0
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x18]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
cmp esi, 0x102
je 0x407088
cmp esi, 0x115
jne 0x407030
mov dword [ebp - 0x58], 0x1c
lea eax, [ebp - 0x58]
mov dword [esp + 8], eax
mov dword [ebp - 0x90], eax
mov eax, 1
mov dword [ebp - 0x54], 0x17
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sym._GetScrollInfo_12
mov edx, dword [ebp - 0x7c]
movzx eax, dx
sub esp, 0xc
cmp dx, 7
ja case.0x406f39.4
jmp dword [eax*4 + 0x41269c]
cmp esi, 0x81
jne case.0x406e76.0
mov eax, dword [ebp - 0x80]
mov ebx, 0xffffffec
mov esi, 0x24
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], edi
or eax, 0x200
mov dword [esp + 8], eax
call sym._SetWindowLongW_12
sub esp, 0xc
mov dword [esp], 0x24
call sym._heap_xalloc
xor ecx, ecx
test al, 1
mov ebx, eax
mov edx, eax
jne 0x407a30
test dl, 2
jne 0x407a20
mov eax, esi
and eax, 0xfffffff8
mov dword [ebp - 0x7c], eax
xor eax, eax
mov dword [edx + eax], ecx
mov dword [edx + eax + 4], ecx
add eax, 8
cmp eax, dword [ebp - 0x7c]
jb 0x406fa1
add edx, eax
test esi, 4
je 0x406fc3
mov dword [edx], 0
add edx, 4
test esi, 2
je 0x406fd3
mov word [edx], 0
add edx, 2
and esi, 1
je 0x406fdb
mov byte [edx], 0
mov dword [esp + 8], ebx
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._SetWindowLongW_12
mov eax, dword [ebp - 0x80]
xor edx, edx
or byte [ebx + 8], 6
mov ecx, 0x81
mov dword [ebx + 0x10], 0
mov dword [ebx], edi
mov dword [ebx + 0x1c], 2
sub esp, 0xc
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], edi
call sym._DefWindowProcW_16
sub esp, 0x10
jmp 0x406ecf
cmp esi, 0x100
jne case.0x406e76.0
mov edx, dword [ebp - 0x7c]
xor eax, eax
test byte [ebx + 8], 2
sete al
sub edx, 0x21
inc eax
cmp edx, 7
ja case.default.0x407051
jmp dword [edx*4 + 0x4126bc]
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x80]
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x7c]
mov dword [esp + 8], eax
call sym._DefWindowProcW_16
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov eax, dword [ebx + 0x10]
movzx edi, word [ebp - 0x7c]
mov esi, eax
shr esi, 0x1f
add esi, eax
sar esi, 1
inc eax
jge 0x4070ba
mov dword [esp], str.nCaretBytePos___0
mov ecx, 0xfe
mov eax, str..._wine_programs_regedit_hexedit.c
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll__assert]
cmp edi, 8
je 0x4078c0
movzx eax, byte [ebx + 8]
mov cl, al
and cl, 2
je 0x4070e9
lea edx, [edi - 0x30]
cmp dx, 9
jbe 0x4070e9
mov edx, edi
and edx, 0xffffffdf
sub edx, 0x41
cmp dx, 5
ja 0x407b3e
and al, 4
mov edx, dword [ebx + 0x18]
je 0x407a50
test byte [ebx + 0x10], 1
jne 0x407a50
lea eax, [edx + 1]
add edx, 2
mov dword [ebx + 0x18], eax
mov dword [esp + 4], edx
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call sym._heap_xrealloc
mov edx, dword [ebx + 0x18]
sub edx, esi
mov dword [ebx + 0x14], eax
mov dword [esp + 8], edx
lea edx, [eax + esi]
mov dword [esp + 4], edx
lea eax, [eax + esi + 1]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_memmove]
mov eax, dword [ebx + 0x14]
mov byte [eax + esi], 0
cmp esi, dword [ebx + 0x18]
jl 0x407161
mov dword [esp], str.nCaretBytePos___infoPtr__cbData
mov eax, 0x12d
mov edx, str..._wine_programs_regedit_hexedit.c
mov dword [esp + 8], eax
mov dword [esp + 4], edx
call dword [sym.imp.ucrtbase.dll__assert]
movzx ecx, byte [ebx + 8]
and cl, 2
mov eax, dword [ebx + 0x14]
add esi, eax
test cl, cl
je 0x407aa0
lea edx, [edi - 0x30]
movzx eax, byte [esi]
cmp dx, 9
jbe 0x407af7
lea edx, [edi - 0x61]
cmp dx, 5
jbe 0x407b03
sub edi, 0x41
cmp di, 5
ja 0x407b0f
movzx ecx, byte [ebp - 0x7c]
sub cl, 0x37
test byte [ebx + 0x10], 1
je 0x407ae7
and al, 0xf0
or al, cl
mov byte [esi], al
inc dword [ebx + 0x10]
mov eax, ebx
call sym._HexEdit_UpdateScrollbars
mov eax, 1
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sym._InvalidateRect_12
sub esp, 0xc
mov eax, ebx
call sym._HexEdit_UpdateCaret
mov ecx, dword [ebx + 0x10]
mov eax, ebx
mov edx, dword [ebx + 0x1c]
call sym._HexEdit_EnsureVisible.isra.0
xor eax, eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov eax, dword [ebx + 4]
jmp 0x406ecf
mov eax, dword [ebx + 0x14]
xor ecx, ecx
mov edi, dword [ebx]
mov dword [esp + 4], ecx
mov edx, dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword fs:[0x18]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x7c], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edx
mov edx, dword [ebp - 0x7c]
sub esp, 0xc
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov eax, dword [esi + 0x30]
xor esi, esi
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edx
xor eax, eax
sub esp, 0xc
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._SetWindowLongW_12
xor eax, eax
sub esp, 0xc
jmp 0x406ecf
mov eax, dword [ebx + 0xc]
mov esi, 1
xor edi, edi
or byte [ebx + 8], 1
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], edi
mov eax, dword [ebx]
mov dword [esp], eax
call sym._CreateCaret_16
mov eax, ebx
sub esp, 0x10
call sym._HexEdit_UpdateCaret
mov eax, dword [ebx]
mov dword [esp], eax
call sym._ShowCaret_4
xor eax, eax
sub esp, 4
jmp 0x406ecf
and byte [ebx + 8], 0xfe
call sym._DestroyCaret_0
xor eax, eax
jmp 0x406ecf
lea eax, [ebp - 0x58]
mov dword [esp + 4], eax
mov dword [ebp - 0x90], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sym._BeginPaint_8
mov esi, dword [ebx + 0x1c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebx + 0x20]
sub esp, 8
mov dword [esp], 5
imul esi, eax
call sym._GetSystemMetrics_4
mov dword [ebp - 0x88], eax
sub esp, 4
mov dword [esp], 6
call sym._GetSystemMetrics_4
sub esp, 4
mov edi, eax
mov eax, 0xfffffff0
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sym._GetWindowLongW_8
sub esp, 8
test eax, 0x8000000
je 0x407870
mov dword [esp], 0x11
call sym._GetSysColor_4
sub esp, 4
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
call sym._SetTextColor_8
mov dword [ebp - 0x9c], eax
sub esp, 8
mov eax, 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
call sym._SetBkMode_8
mov dword [ebp - 0x94], eax
mov eax, dword [ebx + 4]
sub esp, 8
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
call sym._SelectObject_8
mov dword [ebp - 0x98], eax
mov eax, dword [ebx + 0x18]
sub esp, 8
cmp esi, eax
jge 0x407460
mov ecx, dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [ebx + 0x1c]
mov dword [ebp - 0x7c], ecx
mov ecx, dword fs:[0x18]
mov dword [ebp - 0x8c], ecx
mov ecx, eax
mov eax, edx
sub ecx, esi
mov edx, dword [ebx + 0x14]
cmp ecx, eax
cmovg ecx, eax
sub eax, ecx
mov dword [esp], eax
mov eax, esi
call sym._HexEdit_GetLineText
cmp word [eax], 0
mov edx, eax
je 0x407a40
lea esi, [esi]
lea edi, [edi]
add eax, 2
cmp word [eax], 0
jne 0x4073f0
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x88]
mov dword [esp + 0xc], edx
mov dword [esp + 8], edi
mov dword [ebp - 0x80], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
call sym._TextOutW_20
mov eax, dword [ebx + 0xc]
mov edx, dword [ebp - 0x80]
add edi, eax
xor eax, eax
sub esp, 0x14
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x8c]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x7c]
call eax
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
add esi, eax
sub esp, 0xc
cmp ecx, esi
jg 0x4073c0
mov edi, dword [ebp - 0x84]
mov eax, dword [ebp - 0x98]
mov dword [esp], edi
mov dword [esp + 4], eax
call sym._SelectObject_8
mov eax, dword [ebp - 0x94]
sub esp, 8
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._SetBkMode_8
mov eax, dword [ebp - 0x9c]
sub esp, 8
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._SetTextColor_8
mov eax, dword [ebp - 0x90]
sub esp, 8
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sym._EndPaint_8
xor eax, eax
sub esp, 8
jmp 0x406ecf
movzx eax, word [ebp - 0x80]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebx + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sym._GetDC_4
mov edx, dword [ebx + 4]
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x80], eax
sub esp, 4
test edx, edx
je 0x407505
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SelectObject_8
mov dword [ebp - 0x88], eax
sub esp, 8
lea eax, [ebp - 0x58]
xor esi, esi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x80]
mov dword [esp], eax
call sym._GetTextMetricsW_8
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x58]
add eax, ecx
mov dword [ebx + 0xc], eax
lea eax, [ebp - 0x68]
sub esp, 8
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sym._GetClientRect_8
mov eax, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x7c], eax
mov eax, dword fs:[0x18]
mov dword [ebp - 0x84], eax
sub esp, 8
lea esi, [esi]
lea edi, [edi]
mov dword [esp], esi
call sym._heap_xalloc
cmp esi, 8
mov edx, esi
mov ebx, eax
mov edi, eax
jae 0x407788
test dl, 4
je 0x407585
mov dword [edi], 0
add edi, 4
test dl, 2
je 0x407592
mov word [edi], 0
add edi, 2
test dl, 1
je 0x40759a
mov byte [edi], 0
mov dword [esp], 0
xor eax, eax
mov ecx, esi
mov edx, ebx
call sym._HexEdit_GetLineText
cmp word [eax], 0
mov edi, eax
je 0x4077d0
nop
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4075c0
sub eax, edi
sar eax, 1
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x80]
lea edx, [ebp - 0x70]
mov dword [esp + 0xc], edx
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._GetTextExtentPoint32W_16
xor eax, eax
sub esp, 0x10
mov dword [esp + 8], edi
mov edi, dword [ebp - 0x84]
mov dword [esp + 4], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x7c]
call eax
xor eax, eax
sub esp, 0xc
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x7c]
call eax
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x68]
sub eax, edx
sub esp, 0xc
cmp dword [ebp - 0x70], eax
jg 0x4077e0
inc esi
jmp 0x407560
mov edx, dword [ebx + 0x14]
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0x7c]
mov dword [ebx + 0x18], 0
sub esp, 0xc
mov dword [esp], eax
call sym._heap_xalloc
mov esi, dword [ebp - 0x80]
mov dword [ebx + 0x14], eax
mov edi, eax
mov eax, dword [ebp - 0x7c]
cmp eax, 8
mov ecx, eax
jae 0x407880
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 0x10], 0
mov eax, dword [ebp - 0x7c]
mov dword [ebx + 0x18], eax
mov eax, ebx
call sym._HexEdit_UpdateScrollbars
mov eax, ebx
call sym._HexEdit_UpdateCaret
mov eax, 1
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sym._InvalidateRect_12
mov eax, 1
sub esp, 0xc
jmp 0x406ecf
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
lea esi, [esi]
lea edi, [edi]
mov dword [ebp - 0x54], 4
mov edi, dword [ebp - 0x90]
mov eax, 1
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 4], eax
mov dword [esp + 8], edi
mov eax, dword [ebx]
mov dword [esp], eax
call sym._SetScrollInfo_16
mov eax, 1
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sym._GetScrollInfo_12
mov edx, dword [ebp - 0x44]
mov eax, dword [ebx + 0x20]
sub esp, 0xc
cmp edx, eax
je case.default.0x407051
xor ecx, ecx
xor esi, esi
mov dword [esp + 0x10], ecx
sub eax, edx
mov dword [esp + 0xc], esi
mov edi, dword [ebx + 0xc]
imul eax, edi
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sym._ScrollWindow_20
mov eax, dword [ebp - 0x44]
mov dword [ebx + 0x20], eax
mov eax, dword [ebx]
sub esp, 0x14
mov dword [esp], eax
call sym._UpdateWindow_4
mov eax, ebx
sub esp, 4
call sym._HexEdit_UpdateCaret
xor eax, eax
jmp 0x4071f2
test al, 1
jne 0x407a60
test edi, 2
jne 0x407a88
test edi, 4
jne 0x407a70
mov ecx, edx
xor eax, eax
shr ecx, 2
and edx, 3
rep stosd dword es:[edi], eax
jmp 0x407577
mov eax, 0x81
jmp 0x406ecf
xor eax, eax
jmp 0x4075cd
mov ebx, dword [ebp - 0x90]
dec esi
mov dword [ebx + 0x1c], esi
mov eax, ebx
call sym._HexEdit_UpdateScrollbars
mov edi, dword [ebx + 4]
test edi, edi
je 0x407810
mov eax, dword [ebp - 0x88]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x80]
mov dword [esp], eax
call sym._SelectObject_8
sub esp, 8
mov eax, dword [ebp - 0x80]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sym._ReleaseDC_8
mov esi, dword [ebp - 0x8c]
sub esp, 8
test esi, esi
je case.default.0x407051
mov edx, 1
xor ecx, ecx
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov eax, dword [ebx]
mov dword [esp], eax
call sym._InvalidateRect_12
xor eax, eax
sub esp, 0xc
jmp 0x4071f2
mov eax, dword [ebx]
mov dword [esp], eax
call sym._SetFocus_4
xor eax, eax
sub esp, 4
jmp 0x406ecf
mov dword [esp], 8
jmp 0x407337
test edi, 1
jne 0x407b2b
test edi, 2
jne 0x407b16
test edi, 4
je 0x40768d
mov eax, dword [esi]
add edi, 4
add esi, 4
sub ecx, 4
mov dword [edi - 4], eax
jmp 0x40768d
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x406ecf
mov ecx, dword [ebx + 0x14]
test byte [ebx + 8], 2
lea edx, [ecx + esi]
je 0x4078df
test al, 1
je 0x407b54
and byte [edx], 0xf
dec dword [ebx + 0x10]
jmp 0x4071b9
mov dword [ebp - 0x58], 0x1c
lea eax, [ebp - 0x58]
mov esi, 1
mov dword [ebp - 0x54], 2
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov eax, dword [ebx]
mov dword [esp], eax
call sym._GetScrollInfo_12
mov eax, dword [ebx + 0x1c]
mov edi, dword [ebp - 0x48]
imul eax, edi
sub esp, 0xc
add eax, eax
mov edx, dword [ebx + 0x10]
sub edx, eax
mov eax, edx
mov edx, 0
cmovs eax, edx
mov dword [ebx + 0x10], eax
jmp 0x4071dc
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x44], eax
jmp case.0x406f39.4
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x44], eax
jmp case.0x406f39.4
mov eax, dword [ebp - 0x48]
add dword [ebp - 0x44], eax
jmp case.0x406f39.4
mov eax, dword [ebp - 0x48]
sub dword [ebp - 0x44], eax
jmp case.0x406f39.4
inc dword [ebp - 0x44]
jmp case.0x406f39.4
dec dword [ebp - 0x44]
jmp case.0x406f39.4
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0x1c]
lea edx, [eax + edx*2]
mov eax, dword [ebx + 0x18]
add eax, eax
cmp edx, eax
jg 0x4071dc
mov dword [ebx + 0x10], edx
jmp 0x4071dc
mov dword [ebp - 0x58], 0x1c
lea eax, [ebp - 0x58]
mov esi, 1
mov dword [ebp - 0x54], 2
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov eax, dword [ebx]
mov dword [esp], eax
call sym._GetScrollInfo_12
mov eax, dword [ebx + 0x1c]
mov edi, dword [ebp - 0x48]
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x10]
imul eax, edi
add edx, edx
sub esp, 0xc
lea eax, [ecx + eax*2]
cmp eax, edx
cmovg eax, edx
mov dword [ebx + 0x10], eax
jmp 0x4071dc
mov dword [ebx + 0x10], 0
jmp 0x4071dc
mov eax, dword [ebx + 0x18]
add eax, eax
mov dword [ebx + 0x10], eax
jmp 0x4071dc
mov eax, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x10]
add eax, eax
sub edx, eax
mov eax, edx
jns 0x4079d5
jmp 0x4071dc
mov edx, dword [ebx + 0x10]
add eax, edx
mov edx, dword [ebx + 0x18]
add edx, edx
cmp eax, edx
cmovg eax, edx
mov dword [ebx + 0x10], eax
jmp 0x4071dc
mov word [edx], 0
sub esi, 2
add edx, 2
jmp 0x406f97
mov byte [eax], 0
lea edx, [eax + 1]
mov esi, 0x23
jmp 0x406f8e
xor eax, eax
jmp 0x4073fd
cmp esi, edx
jl 0x407168
jmp 0x4070fe
mov byte [eax], 0
lea edi, [eax + 1]
lea edx, [esi - 1]
jmp 0x407790
mov dword [edi], 0
sub edx, 4
add edi, 4
jmp 0x4077a8
mov word [edi], 0
sub edx, 2
add edi, 2
jmp 0x40779c
movzx eax, byte [ebp - 0x7c]
mov byte [esi], al
add dword [ebx + 0x10], 2
jmp 0x4071b9
test edi, 1
jne 0x407b8f
test edi, 2
jne 0x407b7a
test edi, 4
je 0x406eca
mov eax, dword [esi]
add edi, 4
add esi, 4
sub ecx, 4
mov dword [edi - 4], eax
jmp 0x406eca
and al, 0xf
mov dl, al
mov al, cl
shl al, 4
or al, dl
jmp 0x4071b4
movzx ecx, byte [ebp - 0x7c]
sub cl, 0x30
jmp 0x4071a6
movzx ecx, byte [ebp - 0x7c]
sub cl, 0x57
jmp 0x4071a6
mov cl, 0xff
jmp 0x4071a6
movzx eax, word [esi]
add edi, 2
add esi, 2
sub ecx, 2
mov word [edi - 2], ax
jmp 0x407898
movzx eax, byte [esi]
inc edi
inc esi
mov byte [edi - 1], al
mov eax, dword [ebp - 0x7c]
lea ecx, [eax - 1]
jmp 0x40788c
mov dword [esp], 0x30
call sym._MessageBeep_4
xor eax, eax
sub esp, 4
jmp 0x406ecf
mov eax, dword [ebx + 0x18]
mov dword [esp + 4], edx
sub eax, esi
mov dword [esp + 8], eax
lea eax, [ecx + esi - 1]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_memmove]
dec dword [ebx + 0x18]
sub dword [ebx + 0x10], 2
jmp 0x4071b9
movzx eax, word [esi]
add edi, 2
add esi, 2
sub ecx, 2
mov word [edi - 2], ax
jmp 0x407ac8
movzx eax, byte [esi]
inc edi
inc esi
dec ecx
mov byte [edi - 1], al
jmp 0x407abc