Function at 0x4becf0
Capabilities:
Link many functions at runtime
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64e228
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x150
mov eax, dword [0x6e1c7c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 0xe0], eax
mov byte [eax], 0
mov esi, dword [edi + 0x1b0]
cmp esi, dword [edi + 0x1b4]
je 0x4bed9a
nop word [eax + eax]
mov edx, dword [esi]
mov dword [ebp - 0xe8], 0
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp - 0xdc], ecx
mov ecx, dword [ebp - 0xe4]
cmp eax, vtable.CMarchMainWnd.0
jne 0x4c0221
jmp 0x4bed8f
mov ecx, dword [ebp - 0xe4]
add esi, 4
cmp esi, dword [edi + 0x1b4]
jne 0x4bed60
mov edx, dword [ebx + 8]
cmp edx, 0x10d
ja 0x4bf2c4
je 0x4bf267
lea eax, [edx - 5]
cmp eax, 0xfd
ja case.0x4bfd20.3
movzx eax, byte [eax + 0x4c0464]
jmp dword [eax*4 + 0x4c0434]
mov eax, dword [ebp - 0xe0]
mov byte [eax], 1
mov eax, ecx
jmp 0x4c0201
mov ecx, dword [edi + 0xec]
test ecx, ecx
je 0x4bedfe
push 0
push 0
push ecx
mov dword [esp], 0
push 0
push 0
push 0
push 0x10
call fcn.004caf40
mov ecx, dword [edi + 0xf0]
test ecx, ecx
je 0x4bee21
push 0
push 0
push ecx
mov dword [esp], 0
push 0
push 0
push 0
push 0x13
call fcn.004caf40
mov ecx, dword [edi + 0x100]
test ecx, ecx
je 0x4bee44
push 0
push 0
push ecx
mov dword [esp], 0
push 0
push 0
push 0
push 0x13
call fcn.004caf40
mov ecx, dword [edi + 0x10c]
test ecx, ecx
je 0x4bee67
push 0
push 0
push ecx
mov dword [esp], 0
push 0
push 0
push 0
push 0x13
call fcn.004caf40
push 0
mov ecx, edi
call fcn.004c0820
push 4
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je case.0x4bfd20.3
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp case.0x4bfd20.3
mov eax, dword [ebp - 0xe0]
mov byte [eax], 1
mov eax, 1
jmp 0x4c0201
mov ecx, edi
call fcn.004c0c90
mov eax, dword [ebp - 0xe0]
mov byte [eax], 1
jmp case.0x4bfd20.3
mov ecx, dword [edi + 0xe4]
test ecx, ecx
je 0x4beeda
push 0
push 0
push ecx
mov dword [esp], 0
push 0
push 0
push 0
push 0x26
call fcn.004caf40
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x4beee6
mov eax, dword [ecx]
call dword [eax + 0x24]
mov eax, dword [ebx + 0xc]
cmp eax, 2
jne 0x4beef2
push 1
jmp 0x4beef7
test eax, eax
jne 0x4beea9
push eax
lea ecx, [edi + 0x200]
call fcn.004ed310
mov eax, dword [ebp - 0xe0]
mov byte [eax], 1
jmp case.0x4bfd20.3
mov eax, dword [edi + 0x100]
test eax, eax
mov edx, dword [edi + 0xf0]
cmovne edx, eax
movsx esi, cx
mov eax, dword [edi + 0x10c]
test eax, eax
mov dword [edi + 0xf8], esi
cmovne edx, eax
mov eax, ecx
shr eax, 0x10
cwde
mov dword [ebp - 0xe8], edx
mov dword [ebp - 0xdc], eax
mov dword [edi + 0xfc], eax
test edx, edx
je case.0x4bfd20.3
cmp byte [edx + 0x8b], 0
je case.0x4bfd20.3
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [ebp - 0xdc]
sub esp, 8
mov eax, esp
mov byte [edi + 0x11b], 0
push ecx
mov dword [esp], 0
push 0
mov dword [eax], esi
mov esi, dword [ebp - 0xe4]
push esi
push dword [ebx + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0xe8]
push 0x13
call fcn.004caf40
mov dword [edi + 0xf0], 0
mov dword [edi + 0x100], 0
mov dword [edi + 0x10c], 0
jmp case.0x4bfd20.3
movsx eax, cx
mov dword [ebp - 0xd8], eax
shr ecx, 0x10
movsx eax, cx
mov dword [ebp - 0xd4], eax
lea eax, [ebp - 0xd8]
push eax
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_ScreenToClient]
cmp dword [edi + 0xf0], 0
mov eax, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xd4]
mov dword [edi + 0xf8], eax
mov dword [edi + 0xfc], ecx
je case.0x4bfd20.3
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [ebp - 0xd8]
sub esp, 8
mov ecx, esp
mov byte [edi + 0x11b], 0
mov dword [ecx], eax
mov eax, dword [ebp - 0xd4]
mov dword [ecx + 4], eax
mov ecx, dword [edi + 0xf0]
push ecx
mov dword [esp], 0
push 0
push ecx
push dword [ebx + 0xc]
push 1
call fcn.004caf40
mov dword [edi + 0xf0], 0
jmp case.0x4bfd20.3
mov edx, dword [edi + 0xe4]
test edx, edx
je case.0x4bfd20.3
mov eax, dword [ebx + 0xc]
push 0
push 0
push ecx
mov dword [esp], 0
push eax
push ecx
push eax
push 0xa
mov ecx, edx
call fcn.004caf40
jmp case.0x4bfd20.3
mov edx, dword [edi + 0xe4]
test edx, edx
je case.0x4bfd20.3
mov eax, dword [ebx + 0xc]
cmp eax, 9
jne 0x4bf13e
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 0x14]
call eax
test al, al
je 0x4bf11b
mov ecx, dword [edi + 0xe4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x88]
cmp eax, method.ui::CheckBoxTemplate_class_ui::Box_.virtual_136
jne 0x4c0258
mov al, byte [ecx + 0x81]
test al, al
je 0x4bf11b
push 0
push 0x6e5620
push 0x6e47b0
push 0
push dword [edi + 0xe4]
call fcn.0061c2c6
add esp, 0x14
test eax, eax
je 0x4bf11b
push 0
push 0x6e5620
push 0x6e47b0
push 0
push dword [edi + 0xe4]
call fcn.0061c2c6
add esp, 0x14
cmp byte [eax + 0x44d], 0
jne case.0x4bfd20.3
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, edi
setns al
movzx eax, al
push eax
call fcn.004c09c0
mov eax, 1
jmp 0x4c0201
push 0
push 0
push ecx
mov dword [esp], 0
push eax
push ecx
push eax
push 8
mov ecx, edx
mov dword [edi + 0xf4], edx
call fcn.004caf40
jmp case.0x4bfd20.3
mov edx, dword [edi + 0xf4]
test edx, edx
je case.0x4bfd20.3
mov eax, dword [ebx + 0xc]
push 0
push 0
push ecx
mov dword [esp], 0
push eax
push ecx
push eax
push 9
mov ecx, edx
call fcn.004caf40
mov dword [edi + 0xf4], 0
jmp case.0x4bfd20.3
cmp cx, 1
jne case.0x4bfd20.3
cmp dword [edi + 0xf0], 0
jne 0x4beea9
cmp dword [edi + 0x100], 0
jne 0x4beea9
cmp dword [edi + 0x10c], 0
jne 0x4beea9
lea eax, [ebp - 0x1c]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x1c], xmm0
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x1c]
push eax
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
push eax
mov dword [edi + 0xf8], ecx
push ecx
mov ecx, edi
mov dword [edi + 0xfc], eax
call fcn.004c0b00
test eax, eax
je case.0x4bfd20.3
mov ecx, dword [ebp - 0x1c]
sub esp, 8
mov esi, dword [ebp - 0xe4]
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [ebp - 0x18]
push ecx
mov dword [esp], 0
push 0
push esi
push dword [ebx + 0xc]
mov dword [edx + 4], ecx
mov ecx, eax
push 0x28
call fcn.004caf40
mov eax, dword [ebp - 0xe0]
mov byte [eax], 1
jmp case.0x4bfd20.3
test ecx, ecx
je 0x4beea9
push ecx
push dword [ebx + 0xc]
lea eax, [edx + 0x2000]
push eax
push dword [ecx]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4c0201
mov esi, dword [edi + 0xe4]
test esi, esi
je case.0x4bfd20.3
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], 0x30
mov word [ebp - 0x34], ax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x48]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0xd0]
jmp case.0x4bfd20.3
cmp edx, 0x240
ja 0x4bfb5f
je 0x4bf865
lea eax, [edx - 0x10e]
cmp eax, 0xfc
ja case.0x4bfd20.3
movzx eax, byte [eax + 0x4c058c]
jmp dword [eax*4 + 0x4c0564]
cmp dword [edi + 0x100], 0
jne case.0x4bfd20.3
cmp dword [edi + 0x10c], 0
jne case.0x4bfd20.3
cmp byte [edi + 0x11a], 0
jne 0x4bf363
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0xb0]
mov dword [ebp - 0x24], 0x10
mov dword [ebp - 0x20], 3
test eax, eax
jne 0x4bf33f
mov dword [ebp - 0x18], 0x190
jmp 0x4bf352
push 0
push 3
push 0x415
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.COMCTL32.dll__TrackMouseEvent]
mov byte [edi + 0x11a], 1
mov esi, dword [ebp - 0xe4]
mov eax, esi
shr eax, 0x10
cwde
push esi
push dword [ebx + 0xc]
movsx ecx, si
mov dword [ebp - 0xd4], eax
mov dword [edi + 0xfc], eax
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xd8], ecx
mov dword [edi + 0xf8], ecx
mov ecx, edi
push eax
call fcn.004c06c0
test al, al
je case.0x4bfd20.3
cmp dword [edi + 0xf0], 0
je 0x4bf3e3
mov ecx, dword [ebp - 0xd8]
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0xd4]
push ecx
mov dword [esp], 0
push 0
push esi
push dword [ebx + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [edi + 0xf0]
push 0xe
call fcn.004caf40
jmp case.0x4bfd20.3
cmp dword [edi + 0xe8], 0
je case.0x4bfd20.3
mov ecx, dword [ebp - 0xd8]
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0xd4]
push ecx
mov dword [esp], 0
push 0
push esi
push dword [ebx + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [edi + 0xe8]
push 0xe
call fcn.004caf40
jmp case.0x4bfd20.3
cmp dword [edi + 0x100], 0
jne case.0x4bfd20.3
cmp dword [edi + 0x10c], 0
jne case.0x4bfd20.3
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_SetFocus]
mov esi, dword [ebp - 0xe4]
mov eax, esi
shr eax, 0x10
cwde
movsx ecx, si
push eax
mov dword [ebp - 0xdc], ecx
mov dword [edi + 0xf8], ecx
push ecx
mov ecx, edi
mov dword [ebp - 0xf0], eax
mov dword [edi + 0xfc], eax
call fcn.004c0b00
mov edx, eax
mov dword [ebp - 0xe8], edx
test edx, edx
je case.0x4bfd20.3
mov ecx, dword [edx]
mov eax, dword [ecx]
cmp eax, method.ui::CheckBoxTemplate_class_ui::Box_.virtual_0
jne 0x4c025f
mov eax, dword [edx + 0x20]
cmp eax, edi
jne case.0x4bfd20.3
mov dword [edi + 0xf0], edx
mov ecx, edx
mov eax, dword [edx]
call dword [eax + 0xa4]
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_SetCapture]
mov ecx, dword [ebp - 0xdc]
sub esp, 8
mov eax, esp
mov byte [edi + 0x11b], 1
mov dword [eax], ecx
mov ecx, dword [ebp - 0xf0]
push ecx
mov dword [esp], 0
push 0
push esi
push dword [ebx + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0xe8]
push 0x12
call fcn.004caf40
jmp case.0x4bfd20.3
cmp dword [edi + 0x100], 0
jne case.0x4bfd20.3
cmp dword [edi + 0x10c], 0
jne case.0x4bfd20.3
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_SetFocus]
mov esi, dword [ebp - 0xe4]
mov eax, esi
shr eax, 0x10
cwde
movsx ecx, si
push eax
mov dword [ebp - 0xdc], ecx
mov dword [edi + 0xf8], ecx
push ecx
mov ecx, edi
mov dword [ebp - 0xf0], eax
mov dword [edi + 0xfc], eax
call fcn.004c0b00
mov edx, eax
mov dword [ebp - 0xe8], edx
test edx, edx
je case.0x4bfd20.3
mov ecx, dword [edx]
mov eax, dword [ecx]
cmp eax, method.ui::CheckBoxTemplate_class_ui::Box_.virtual_0
jne 0x4c026e
mov eax, dword [edx + 0x20]
cmp eax, edi
jne case.0x4bfd20.3
mov dword [edi + 0xf0], edx
mov ecx, edx
mov eax, dword [edx]
call dword [eax + 0xa4]
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_SetCapture]
mov ecx, dword [ebp - 0xdc]
sub esp, 8
mov eax, esp
mov byte [edi + 0x11b], 1
mov dword [eax], ecx
mov ecx, dword [ebp - 0xf0]
push ecx
mov dword [esp], 0
push 0
push esi
push dword [ebx + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0xe8]
push 0x14
call fcn.004caf40
jmp case.0x4bfd20.3
cmp dword [edi + 0x100], 0
jne case.0x4bfd20.3
cmp dword [edi + 0x10c], 0
jne case.0x4bfd20.3
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_SetFocus]
mov esi, dword [ebp - 0xe4]
mov eax, esi
shr eax, 0x10
cwde
movsx ecx, si
push eax
mov dword [ebp - 0xdc], ecx
mov dword [edi + 0xf8], ecx
push ecx
mov ecx, edi
mov dword [ebp - 0xf0], eax
mov dword [edi + 0xfc], eax
call fcn.004c0b00
mov dword [ebp - 0xe8], eax
test eax, eax
je case.0x4bfd20.3
mov ecx, dword [eax]
mov edx, dword [ecx]
cmp edx, method.ui::CheckBoxTemplate_class_ui::Box_.virtual_0
jne 0x4c027d
mov ecx, dword [eax + 0x20]
cmp ecx, edi
jne case.0x4bfd20.3
push dword [edi + 0x10]
mov dword [edi + 0xf0], eax
call dword [sym.imp.USER32.dll_SetCapture]
mov ecx, dword [ebp - 0xdc]
sub esp, 8
mov eax, esp
mov byte [edi + 0x11b], 1
mov dword [eax], ecx
mov ecx, dword [ebp - 0xf0]
push ecx
mov dword [esp], 0
push 0
push esi
push dword [ebx + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0xe8]
push 0
call fcn.004caf40
jmp case.0x4bfd20.3
mov eax, ecx
movsx esi, cx
shr eax, 0x10
cwde
mov dword [ebp - 0xdc], eax
mov dword [edi + 0xf8], esi
mov dword [edi + 0xfc], eax
call dword [sym.imp.USER32.dll_ReleaseCapture]
cmp dword [edi + 0xf0], 0
mov byte [edi + 0x11b], 0
je case.0x4bfd20.3
mov ecx, dword [ebp - 0xdc]
sub esp, 8
mov eax, esp
push ecx
mov dword [esp], 0
push 0
mov dword [eax], esi
mov esi, dword [ebp - 0xe4]
push esi
push dword [ebx + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [edi + 0xf0]
push 0x13
call fcn.004caf40
mov dword [edi + 0xf0], 0
jmp case.0x4bfd20.3
mov eax, ecx
movsx esi, cx
shr eax, 0x10
cwde
mov dword [ebp - 0xdc], eax
mov dword [edi + 0xf8], esi
mov dword [edi + 0xfc], eax
call dword [sym.imp.USER32.dll_ReleaseCapture]
cmp dword [edi + 0xf0], 0
mov byte [edi + 0x11b], 0
je case.0x4bfd20.3
mov ecx, dword [ebp - 0xdc]
sub esp, 8
mov eax, esp
push ecx
mov dword [esp], 0
push 0
mov dword [eax], esi
mov esi, dword [ebp - 0xe4]
push esi
push dword [ebx + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [edi + 0xf0]
push 0x15
call fcn.004caf40
jmp case.0x4bfd20.3
mov edx, dword [edi + 0xe4]
test edx, edx
je case.0x4bfd20.3
mov eax, dword [ebx + 0xc]
push 0
push 0
push ecx
mov dword [esp], 0
push eax
push ecx
push eax
push 0x31
mov ecx, edx
call fcn.004caf40
jmp case.0x4bfd20.3
movsx eax, cx
mov dword [ebp - 0xd8], eax
mov eax, ecx
shr eax, 0x10
cwde
mov dword [ebp - 0xd4], eax
lea eax, [ebp - 0xd8]
push eax
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0xd4]
mov ecx, dword [ebp - 0xd8]
push eax
mov dword [edi + 0xf8], ecx
push ecx
mov ecx, edi
mov dword [edi + 0xfc], eax
call fcn.004c0b00
mov edx, eax
mov dword [ebp - 0xdc], edx
test edx, edx
je case.0x4bfd20.3
mov ecx, dword [edx]
mov eax, dword [ecx]
cmp eax, method.ui::CheckBoxTemplate_class_ui::Box_.virtual_0
jne 0x4c028e
mov eax, dword [edx + 0x20]
cmp eax, edi
jne case.0x4bfd20.3
mov eax, dword [ebx + 0xc]
mov esi, dword [ebp - 0xe4]
push 0
push 0
push ecx
mov dword [esp], 0
mov ecx, edx
push 0
shr eax, 0x10
push esi
cwde
push eax
push 0x18
call fcn.004caf40
jmp case.0x4bfd20.3
test ecx, ecx
je case.0x4bfd20.3
mov eax, dword [ebp - 0xe0]
push ecx
push dword [ebx + 0xc]
mov byte [eax], 1
lea eax, [edx + 0x2000]
push eax
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4c0201
mov esi, dword [ebx + 0xc]
xor ecx, ecx
mov eax, esi
mov edx, 0x28
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.006026e6
add esp, 4
mov dword [ebp - 0xe0], eax
cmp esi, 1
jb 0x4bfb21
mov edx, dword fs:[0x2c]
mov ecx, dword [0x6efb80]
mov edx, dword [edx]
cmp ecx, dword [edx + 4]
jg 0x4c029d
jmp 0x4bf8b5
mov eax, dword [ebp - 0xe0]
mov ecx, dword [0x6efb84]
test ecx, ecx
je 0x4bfb21
push 0x28
push eax
push esi
mov esi, dword [ebp - 0xe4]
push esi
call ecx
cmp eax, 1
sete al
test al, al
je 0x4bfb27
mov ecx, dword [ebp - 0xe0]
cmp dword [ecx + 0xc], 0
je 0x4bfb27
mov eax, 0x51eb851f
imul dword [ecx]
mov eax, 0x51eb851f
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [ebp - 0xd8], ecx
mov ecx, dword [ebp - 0xe0]
imul dword [ecx + 4]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xd4], eax
lea eax, [ebp - 0xd8]
push eax
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 0x10]
test al, 2
je 0x4bfa07
cmp dword [edi + 0xf0], 0
jne case.0x4bfd20.3
cmp dword [edi + 0x10c], 0
jne case.0x4bfd20.3
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 0xd4]
mov ecx, dword [ebp - 0xd8]
push eax
mov dword [edi + 0x104], ecx
push ecx
mov ecx, edi
mov dword [edi + 0x108], eax
call fcn.004c0b00
mov edx, eax
mov dword [ebp - 0xe8], edx
test edx, edx
je case.0x4bfd20.3
mov ecx, dword [edx]
mov eax, dword [ecx]
cmp eax, method.ui::CheckBoxTemplate_class_ui::Box_.virtual_0
jne 0x4c02e5
mov eax, dword [edx + 0x20]
cmp eax, edi
jne case.0x4bfd20.3
mov dword [edi + 0x100], edx
mov ecx, edx
mov eax, dword [edx]
call dword [eax + 0xa4]
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [ebp - 0xd8]
sub esp, 8
mov ecx, esp
mov byte [edi + 0x11b], 1
push ecx
mov dword [esp], 0
push 0
push esi
mov dword [ecx], eax
mov eax, dword [ebp - 0xd4]
push 0
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0xe8]
push 0x1b
call fcn.004caf40
jmp 0x4bfb27
test al, 1
je 0x4bfaaf
cmp dword [edi + 0xf0], 0
jne case.0x4bfd20.3
cmp dword [edi + 0x10c], 0
jne case.0x4bfd20.3
mov ecx, dword [ebp - 0xd8]
mov eax, dword [ebp - 0xd4]
cmp dword [edi + 0x104], ecx
jne 0x4bfa49
cmp dword [edi + 0x108], eax
je case.0x4bfd20.3
cmp dword [edi + 0x100], 0
mov dword [edi + 0x104], ecx
mov dword [edi + 0x108], eax
je case.0x4bfd20.3
push esi
push dword [ebx + 0xc]
lea eax, [ebp - 0xd8]
mov ecx, edi
push eax
call fcn.004c06c0
test al, al
je case.0x4bfd20.3
mov eax, dword [ebp - 0xd8]
sub esp, 8
mov ecx, esp
push ecx
mov dword [esp], 0
push 0
push 0
mov dword [ecx], eax
mov eax, dword [ebp - 0xd4]
push 0
mov dword [ecx + 4], eax
mov ecx, dword [edi + 0x100]
push 0x1c
call fcn.004caf40
jmp 0x4bfb27
test al, 4
je 0x4bfb27
mov eax, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xd4]
mov dword [edi + 0x104], eax
mov dword [edi + 0x108], ecx
call dword [sym.imp.USER32.dll_ReleaseCapture]
cmp dword [edi + 0x100], 0
mov byte [edi + 0x11b], 0
je case.0x4bfd20.3
mov eax, dword [ebp - 0xd8]
sub esp, 8
mov ecx, esp
push ecx
mov dword [esp], 0
push 0
push esi
mov dword [ecx], eax
mov eax, dword [ebp - 0xd4]
push 0
mov dword [ecx + 4], eax
mov ecx, dword [edi + 0x100]
push 0x1d
call fcn.004caf40
mov dword [edi + 0x100], 0
jmp 0x4bfb27
mov esi, dword [ebp - 0xe4]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x6efb88]
cmp eax, dword [ecx + 4]
jg 0x4c02f4
mov eax, dword [0x6efb8c]
test eax, eax
je 0x4bfb4c
push esi
call eax
push dword [ebp - 0xe0]
call fcn.0060224c
add esp, 4
jmp case.0x4bfd20.3
cmp edx, 0x2a1
ja 0x4c016b
je 0x4bff49
lea esi, [edx - 0x245]
cmp esi, 7
ja case.0x4bfd20.3
movzx eax, byte [esi + 0x4c0694]
jmp dword [eax*4 + 0x4c068c]
cmp byte [edi + 0x110], 0
je case.0x4bfd20.3
mov ecx, dword [ebx + 0xc]
mov eax, ecx
shr eax, 0x10
test eax, 0x2000
je 0x4beea9
mov eax, dword fs:[0x2c]
movzx edx, cx
mov dword [ebp - 0xf0], edx
mov ecx, dword [eax]
mov eax, dword [0x6efb90]
mov dword [ebp - 0xdc], ecx
cmp eax, dword [ecx + 4]
jg 0x4c033c
jmp 0x4bfbde
mov edx, dword [ebp - 0xf0]
mov eax, dword [0x6efb94]
test eax, eax
je case.0x4bfd20.3
lea ecx, [ebp - 0xec]
push ecx
push edx
call eax
cmp eax, 1
sete al
test al, al
je case.0x4bfd20.3
mov eax, dword [ebp - 0xec]
xorps xmm0, xmm0
movlpd qword [ebp - 0xd8], xmm0
sub eax, 2
je 0x4bfc83
sub eax, 1
jne case.0x4bfd20.3
mov ecx, dword [ebp - 0xdc]
mov eax, dword [0x6efba0]
cmp eax, dword [ecx + 4]
jg 0x4c0384
mov eax, dword [0x6efba4]
test eax, eax
je case.0x4bfd20.3
lea ecx, [ebp - 0x160]
push ecx
push dword [ebp - 0xf0]
call eax
cmp eax, 1
sete al
test al, al
je case.0x4bfd20.3
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0x100]
jmp 0x4bfcdf
mov ecx, dword [ebp - 0xdc]
mov eax, dword [0x6efb98]
cmp eax, dword [ecx + 4]
jg 0x4c03cc
mov eax, dword [0x6efb9c]
test eax, eax
je case.0x4bfd20.3
lea ecx, [ebp - 0xd0]
push ecx
push dword [ebp - 0xf0]
call eax
cmp eax, 1
sete al
test al, al
je case.0x4bfd20.3
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0x4c]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x6c0990]
lea eax, [ebp - 0xd8]
push eax
push dword [edi + 0x10]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x6c0818]
movss dword [ebp - 0xf0], xmm0
call dword [sym.imp.USER32.dll_ScreenToClient]
cmp esi, 7
ja case.0x4bfd20.3
jmp dword [esi*4 + 0x4c069c]
cmp dword [edi + 0xf0], 0
jne 0x4beea9
cmp dword [edi + 0x100], 0
jne 0x4beea9
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 0xd4]
mov ecx, dword [ebp - 0xd8]
push eax
mov dword [edi + 0xf8], ecx
push ecx
mov ecx, edi
mov dword [edi + 0xfc], eax
call fcn.004c0b00
mov edx, eax
mov dword [ebp - 0xdc], edx
test edx, edx
je case.0x4bfd20.3
mov ecx, dword [edx]
mov eax, dword [ecx]
cmp eax, method.ui::CheckBoxTemplate_class_ui::Box_.virtual_0
jne 0x4c0414
mov eax, dword [edx + 0x20]
cmp eax, edi
jne case.0x4bfd20.3
mov dword [edi + 0x10c], edx
mov ecx, edx
mov eax, dword [edx]
call dword [eax + 0xa4]
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_SetCapture]
movss xmm0, dword [ebp - 0xf0]
sub esp, 8
mov eax, dword [ebp - 0xd8]
mov ecx, esp
mov esi, dword [ebp - 0xe4]
mov byte [edi + 0x11b], 1
push ecx
movss dword [esp], xmm0
push 0
push esi
mov dword [ecx], eax
mov eax, dword [ebp - 0xd4]
push 0
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0xdc]
push 0x20
call fcn.004caf40
mov eax, dword [edi + 0x10c]
test eax, eax
je case.0x4bfd20.3
cmp byte [eax + 0x8a], 0
je case.0x4bfd20.3
mov eax, dword [ebp - 0xe0]
mov byte [eax], 1
jmp case.0x4bfd20.3
cmp dword [edi + 0xf0], 0
jne 0x4beea9
cmp dword [edi + 0x100], 0
jne 0x4beea9
cmp dword [edi + 0x10c], 0
mov eax, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xd4]
mov dword [edi + 0xf8], eax
mov dword [edi + 0xfc], ecx
je case.0x4bfd20.3
mov esi, dword [ebp - 0xe4]
lea eax, [ebp - 0xd8]
push esi
push dword [ebx + 0xc]
mov ecx, edi
push eax
call fcn.004c06c0
test al, al
je case.0x4bfd20.3
movss xmm0, dword [ebp - 0xf0]
sub esp, 8
mov eax, dword [ebp - 0xd8]
mov ecx, esp
push ecx
movss dword [esp], xmm0
push 0
push 0
mov dword [ecx], eax
mov eax, dword [ebp - 0xd4]
push 0
mov dword [ecx + 4], eax
mov ecx, dword [edi + 0x10c]
push 0x21
jmp 0x4bfdec
mov eax, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xd4]
mov dword [edi + 0xf8], eax
mov dword [edi + 0xfc], ecx
call dword [sym.imp.USER32.dll_ReleaseCapture]
cmp dword [edi + 0x10c], 0
mov byte [edi + 0x11b], 0
je case.0x4bfd20.3
movss xmm0, dword [ebp - 0xf0]
sub esp, 8
mov eax, dword [ebp - 0xd8]
mov ecx, esp
mov esi, dword [ebp - 0xe4]
push ecx
movss dword [esp], xmm0
push 0
push esi
mov dword [ecx], eax
mov eax, dword [ebp - 0xd4]
push 0
mov dword [ecx + 4], eax
mov ecx, dword [edi + 0x10c]
push 0x22
call fcn.004caf40
mov eax, dword [edi + 0x10c]
test eax, eax
je 0x4bff3a
cmp byte [eax + 0x8a], 0
je 0x4bff3a
mov eax, dword [ebp - 0xe0]
mov byte [eax], 1
mov dword [edi + 0x10c], 0
jmp case.0x4bfd20.3
movsx eax, cx
shr ecx, 0x10
movsx ecx, cx
push ecx
mov dword [ebp - 0xdc], ecx
mov ecx, edi
push eax
mov byte [edi + 0x11a], 0
mov dword [ebp - 0xec], eax
call fcn.004c0b00
mov esi, eax
test esi, esi
je case.0x4bfd20.3
cmp dword [edi + 0xec], 0
je 0x4bffb2
mov ecx, dword [ebp - 0xec]
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0xdc]
push ecx
mov dword [esp], 0
push 0
push 0
push 0
mov dword [eax + 4], ecx
mov ecx, dword [edi + 0xec]
push 0x11
call fcn.004caf40
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
mov eax, dword [esi]
call dword [eax + 0x3c]
mov dword [ebp - 4], 0
mov dword [edi + 0xc4], 0
mov dword [edi + 0xc8], 0
mov dword [edi + 0xcc], 0
mov dword [edi + 0xd0], 0
mov dword [edi + 0xd4], 0
mov dword [edi + 0xd8], 0
mov dword [edi + 0xdc], 0
mov dword [edi + 0xe0], 0
mov eax, dword [edi + 0x10]
push 0
mov dword [edi + 0xb4], 0x30
mov dword [edi + 0xb8], 1
mov dword [edi + 0xbc], eax
mov dword [edi + 0xc0], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp dword [ebp - 0x28], 8
mov ecx, esi
mov dword [edi + 0xd4], eax
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
mov dword [edi + 0xd8], eax
lea eax, [ebp - 0x24]
push 1
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x1c]
call eax
cmp dword [edi + 0xb0], 0
movups xmm0, xmmword [eax]
movups xmmword [edi + 0xc4], xmm0
jne 0x4c00cb
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0
push dword [edi + 0x10]
push bind
push bind
push bind
push bind
push reloc.WS2_32.dll_closesocket
push 0
push str.tooltips_class32
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
lea ecx, [edi + 0xb4]
mov dword [edi + 0xb0], eax
push ecx
push 0
push 0x432
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi]
mov eax, dword [eax + 0x58]
cmp eax, method.ui::CheckBoxTemplate_class_ui::Box_.virtual_88
jne 0x4c0423
mov eax, dword [esi + 0x90]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 0
push 0x418
push dword [edi + 0xb0]
call esi
lea eax, [edi + 0xb4]
push eax
push 0
push 0x436
push dword [edi + 0xb0]
call esi
lea eax, [edi + 0xb4]
push eax
push 1
push 0x411
push dword [edi + 0xb0]
call esi
mov edx, dword [ebp - 0x28]
cmp edx, 8
jb 0x4c015d
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c0153
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c042c
push edx
push ecx
call fcn.0060223e
add esp, 8
mov eax, dword [ebp - 0xe0]
mov byte [eax], 1
jmp case.0x4bfd20.3
cmp edx, 0x2a3
je 0x4c01c0
cmp edx, 0x8001
jne case.0x4bfd20.3
mov esi, dword [edi + 0x1d4]
cmp esi, dword [edi + 0x1d8]
je 0x4c01b2
nop dword [eax]
mov ecx, dword [esi]
test ecx, ecx
je 0x4c01a7
mov eax, dword [ecx + 4]
push 1
mov eax, dword [eax + 4]
add eax, 4
add ecx, eax
mov eax, dword [ecx]
call dword [eax]
add esi, 4
cmp esi, dword [edi + 0x1d8]
jne 0x4c0190
mov eax, dword [edi + 0x1d4]
mov dword [edi + 0x1d8], eax
jmp case.0x4bfd20.3
mov ecx, dword [edi + 0xb0]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
test ecx, ecx
je 0x4c01e1
lea eax, [edi + 0xb4]
push eax
push 0
push 0x411
push ecx
call esi
cmp byte [edi + 0x11a], 0
je 0x4c01f8
push 0xffffffffffffffff
push 0
push 0x200
push dword [edi + 0x10]
call esi
mov byte [edi + 0x11a], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006021fd
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
lea eax, [ebp - 0xe8]
push eax
push ecx
push dword [ebx + 0xc]
mov ecx, edx
push dword [ebx + 8]
call dword [ebp - 0xdc]
cmp dword [ebp - 0xe8], 0
mov ecx, eax
je 0x4bed89
cmp dword [ebx + 8], 0x200
jne 0x4bedcb
jmp 0x4bed89
call eax
jmp 0x4bf0ce
mov ecx, edx
call eax
mov edx, dword [ebp - 0xe8]
jmp 0x4bf49b
mov ecx, edx
call eax
mov edx, dword [ebp - 0xe8]
jmp 0x4bf56e
mov ecx, eax
call edx
mov ecx, eax
mov eax, dword [ebp - 0xe8]
jmp 0x4bf640
mov ecx, edx
call eax
mov edx, dword [ebp - 0xdc]
jmp 0x4bf80a
push 0x6efb80
call fcn.00602894
add esp, 4
cmp dword [0x6efb80], 0xffffffff
jne 0x4bf8af
push str.GetTouchInputInfo
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6efb80
mov dword [0x6efb84], eax
call fcn.0060284a
add esp, 4
jmp 0x4bf8af
mov ecx, edx
call eax
mov edx, dword [ebp - 0xe8]
jmp 0x4bf9aa
push 0x6efb88
call fcn.00602894
add esp, 4
cmp dword [0x6efb88], 0xffffffff
jne 0x4bfb40
push str.CloseTouchInputHandle
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6efb88
mov dword [0x6efb8c], eax
call fcn.0060284a
add esp, 4
jmp 0x4bfb40
push 0x6efb90
call fcn.00602894
add esp, 4
cmp dword [0x6efb90], 0xffffffff
jne 0x4bfbd8
push str.GetPointerType
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6efb90
mov dword [0x6efb94], eax
call fcn.0060284a
add esp, 4
jmp 0x4bfbd8
push 0x6efba0
call fcn.00602894
add esp, 4
cmp dword [0x6efba0], 0xffffffff
jne 0x4bfc39
push str.GetPointerPenInfo
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6efba0
mov dword [0x6efba4], eax
call fcn.0060284a
add esp, 4
jmp 0x4bfc39
push 0x6efb98
call fcn.00602894
add esp, 4
cmp dword [0x6efb98], 0xffffffff
jne 0x4bfc9a
push str.GetPointerTouchInfo
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6efb98
mov dword [0x6efb9c], eax
call fcn.0060284a
add esp, 4
jmp 0x4bfc9a
mov ecx, edx
call eax
mov edx, dword [ebp - 0xdc]
jmp 0x4bfd8d
mov ecx, esi
call eax
jmp 0x4c00e1
call fcn.00621ffe
nop dword [eax]
mov bh, 0xee
dec ebx
add byte [eax], dl
out dx, eax
dec ebx
add byte [edx - 0x24ffb412], ah
in eax, dx
dec ebx
add byte [edi - 0x66ffb412], cl
int1
dec ebx
add byte [edi - 0xe], al
dec ebx
add bl, al
out dx, eax
dec ebx
add byte [eax + 0x61004bf0], cl
int1
dec ebx
add byte [edx - 0x10], bl
dec ebx
add bh, bh
add dword [eax + eax], ecx
or ecx, dword [ebx]
add dword [ebx], ecx
or ecx, dword [ebx]
or ecx, dword [ebx]
or eax, dword [edx]
add ecx, dword [ebx]
or ecx, dword [ebx]
add al, 11
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
add eax, 185273099
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or eax, dword [esi]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
pop es
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or ecx, dword [ebx]
or byte [ecx], cl
or ah, byte [esi - 112]
je 4982109
dec ebx
add byte [0xf5004bf8], bh
dec ebx
add byte [esi], ah
hlt