Function at 0x4bc2c0
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 0x64b378
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x150
mov eax, dword [0x6ddc7c]
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 0x4bc36a
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 0x4bd7f1
jmp 0x4bc35f
mov ecx, dword [ebp - 0xe4]
add esi, 4
cmp esi, dword [edi + 0x1b4]
jne 0x4bc330
mov edx, dword [ebx + 8]
cmp edx, 0x10d
ja 0x4bc894
je 0x4bc837
lea eax, [edx - 5]
cmp eax, 0xfd
ja case.0x4bd2f0.3
movzx eax, byte [eax + 0x4bda34]
jmp dword [eax*4 + 0x4bda04]
mov eax, dword [ebp - 0xe0]
mov byte [eax], 1
mov eax, ecx
jmp 0x4bd7d1
mov ecx, dword [edi + 0xec]
test ecx, ecx
je 0x4bc3ce
push 0
push 0
push ecx
mov dword [esp], 0
push 0
push 0
push 0
push 0x10
call fcn.004c8540
mov ecx, dword [edi + 0xf0]
test ecx, ecx
je 0x4bc3f1
push 0
push 0
push ecx
mov dword [esp], 0
push 0
push 0
push 0
push 0x13
call fcn.004c8540
mov ecx, dword [edi + 0x100]
test ecx, ecx
je 0x4bc414
push 0
push 0
push ecx
mov dword [esp], 0
push 0
push 0
push 0
push 0x13
call fcn.004c8540
mov ecx, dword [edi + 0x10c]
test ecx, ecx
je 0x4bc437
push 0
push 0
push ecx
mov dword [esp], 0
push 0
push 0
push 0
push 0x13
call fcn.004c8540
push 0
mov ecx, edi
call fcn.004bddf0
push 4
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je case.0x4bd2f0.3
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp case.0x4bd2f0.3
mov eax, dword [ebp - 0xe0]
mov byte [eax], 1
mov eax, 1
jmp 0x4bd7d1
mov ecx, edi
call fcn.004be270
mov eax, dword [ebp - 0xe0]
mov byte [eax], 1
jmp case.0x4bd2f0.3
mov ecx, dword [edi + 0xe4]
test ecx, ecx
je 0x4bc4aa
push 0
push 0
push ecx
mov dword [esp], 0
push 0
push 0
push 0
push 0x26
call fcn.004c8540
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x4bc4b6
mov eax, dword [ecx]
call dword [eax + 0x24]
mov eax, dword [ebx + 0xc]
cmp eax, 2
jne 0x4bc4c2
push 1
jmp 0x4bc4c7
test eax, eax
jne 0x4bc479
push eax
lea ecx, [edi + 0x200]
call fcn.004ea8f0
mov eax, dword [ebp - 0xe0]
mov byte [eax], 1
jmp case.0x4bd2f0.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.0x4bd2f0.3
cmp byte [edx + 0x8b], 0
je case.0x4bd2f0.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.004c8540
mov dword [edi + 0xf0], 0
mov dword [edi + 0x100], 0
mov dword [edi + 0x10c], 0
jmp case.0x4bd2f0.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.0x4bd2f0.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.004c8540
mov dword [edi + 0xf0], 0
jmp case.0x4bd2f0.3
mov edx, dword [edi + 0xe4]
test edx, edx
je case.0x4bd2f0.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.004c8540
jmp case.0x4bd2f0.3
mov edx, dword [edi + 0xe4]
test edx, edx
je case.0x4bd2f0.3
mov eax, dword [ebx + 0xc]
cmp eax, 9
jne 0x4bc70e
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 0x14]
call eax
test al, al
je 0x4bc6eb
mov ecx, dword [edi + 0xe4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x88]
cmp eax, method.ui::ButtonTemplate_class_ui::Box_.virtual_136
jne 0x4bd828
mov al, byte [ecx + 0x81]
test al, al
je 0x4bc6eb
push 0
push 0x6e15bc
push 0x6e0770
push 0
push dword [edi + 0xe4]
call fcn.00619886
add esp, 0x14
test eax, eax
je 0x4bc6eb
push 0
push 0x6e15bc
push 0x6e0770
push 0
push dword [edi + 0xe4]
call fcn.00619886
add esp, 0x14
cmp byte [eax + 0x44d], 0
jne case.0x4bd2f0.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.004bdfa0
mov eax, 1
jmp 0x4bd7d1
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.004c8540
jmp case.0x4bd2f0.3
mov edx, dword [edi + 0xf4]
test edx, edx
je case.0x4bd2f0.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.004c8540
mov dword [edi + 0xf4], 0
jmp case.0x4bd2f0.3
cmp cx, 1
jne case.0x4bd2f0.3
cmp dword [edi + 0xf0], 0
jne 0x4bc479
cmp dword [edi + 0x100], 0
jne 0x4bc479
cmp dword [edi + 0x10c], 0
jne 0x4bc479
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.004be0e0
test eax, eax
je case.0x4bd2f0.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.004c8540
mov eax, dword [ebp - 0xe0]
mov byte [eax], 1
jmp case.0x4bd2f0.3
test ecx, ecx
je 0x4bc479
push ecx
push dword [ebx + 0xc]
lea eax, [edx + 0x2000]
push eax
push dword [ecx]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4bd7d1
mov esi, dword [edi + 0xe4]
test esi, esi
je case.0x4bd2f0.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.0x4bd2f0.3
cmp edx, 0x240
ja 0x4bd12f
je 0x4bce35
lea eax, [edx - 0x10e]
cmp eax, 0xfc
ja case.0x4bd2f0.3
movzx eax, byte [eax + 0x4bdb5c]
jmp dword [eax*4 + 0x4bdb34]
cmp dword [edi + 0x100], 0
jne case.0x4bd2f0.3
cmp dword [edi + 0x10c], 0
jne case.0x4bd2f0.3
cmp byte [edi + 0x11a], 0
jne 0x4bc933
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 0x4bc90f
mov dword [ebp - 0x18], 0x190
jmp 0x4bc922
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.004bdc90
test al, al
je case.0x4bd2f0.3
cmp dword [edi + 0xf0], 0
je 0x4bc9b3
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.004c8540
jmp case.0x4bd2f0.3
cmp dword [edi + 0xe8], 0
je case.0x4bd2f0.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.004c8540
jmp case.0x4bd2f0.3
cmp dword [edi + 0x100], 0
jne case.0x4bd2f0.3
cmp dword [edi + 0x10c], 0
jne case.0x4bd2f0.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.004be0e0
mov edx, eax
mov dword [ebp - 0xe8], edx
test edx, edx
je case.0x4bd2f0.3
mov ecx, dword [edx]
mov eax, dword [ecx]
cmp eax, method.ui::ButtonTemplate_class_ui::Box_.virtual_0
jne 0x4bd82f
mov eax, dword [edx + 0x20]
cmp eax, edi
jne case.0x4bd2f0.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.004c8540
jmp case.0x4bd2f0.3
cmp dword [edi + 0x100], 0
jne case.0x4bd2f0.3
cmp dword [edi + 0x10c], 0
jne case.0x4bd2f0.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.004be0e0
mov edx, eax
mov dword [ebp - 0xe8], edx
test edx, edx
je case.0x4bd2f0.3
mov ecx, dword [edx]
mov eax, dword [ecx]
cmp eax, method.ui::ButtonTemplate_class_ui::Box_.virtual_0
jne 0x4bd83e
mov eax, dword [edx + 0x20]
cmp eax, edi
jne case.0x4bd2f0.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.004c8540
jmp case.0x4bd2f0.3
cmp dword [edi + 0x100], 0
jne case.0x4bd2f0.3
cmp dword [edi + 0x10c], 0
jne case.0x4bd2f0.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.004be0e0
mov dword [ebp - 0xe8], eax
test eax, eax
je case.0x4bd2f0.3
mov ecx, dword [eax]
mov edx, dword [ecx]
cmp edx, method.ui::ButtonTemplate_class_ui::Box_.virtual_0
jne 0x4bd84d
mov ecx, dword [eax + 0x20]
cmp ecx, edi
jne case.0x4bd2f0.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.004c8540
jmp case.0x4bd2f0.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.0x4bd2f0.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.004c8540
mov dword [edi + 0xf0], 0
jmp case.0x4bd2f0.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.0x4bd2f0.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.004c8540
jmp case.0x4bd2f0.3
mov edx, dword [edi + 0xe4]
test edx, edx
je case.0x4bd2f0.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.004c8540
jmp case.0x4bd2f0.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.004be0e0
mov edx, eax
mov dword [ebp - 0xdc], edx
test edx, edx
je case.0x4bd2f0.3
mov ecx, dword [edx]
mov eax, dword [ecx]
cmp eax, method.ui::ButtonTemplate_class_ui::Box_.virtual_0
jne 0x4bd85e
mov eax, dword [edx + 0x20]
cmp eax, edi
jne case.0x4bd2f0.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.004c8540
jmp case.0x4bd2f0.3
test ecx, ecx
je case.0x4bd2f0.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 0x4bd7d1
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.005ffca6
add esp, 4
mov dword [ebp - 0xe0], eax
cmp esi, 1
jb 0x4bd0f1
mov edx, dword fs:[0x2c]
mov ecx, dword [0x6ebae0]
mov edx, dword [edx]
cmp ecx, dword [edx + 4]
jg 0x4bd86d
jmp 0x4bce85
mov eax, dword [ebp - 0xe0]
mov ecx, dword [0x6ebae4]
test ecx, ecx
je 0x4bd0f1
push 0x28
push eax
push esi
mov esi, dword [ebp - 0xe4]
push esi
call ecx
cmp eax, 1
sete al
test al, al
je 0x4bd0f7
mov ecx, dword [ebp - 0xe0]
cmp dword [ecx + 0xc], 0
je 0x4bd0f7
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 0x4bcfd7
cmp dword [edi + 0xf0], 0
jne case.0x4bd2f0.3
cmp dword [edi + 0x10c], 0
jne case.0x4bd2f0.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.004be0e0
mov edx, eax
mov dword [ebp - 0xe8], edx
test edx, edx
je case.0x4bd2f0.3
mov ecx, dword [edx]
mov eax, dword [ecx]
cmp eax, method.ui::ButtonTemplate_class_ui::Box_.virtual_0
jne 0x4bd8b5
mov eax, dword [edx + 0x20]
cmp eax, edi
jne case.0x4bd2f0.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.004c8540
jmp 0x4bd0f7
test al, 1
je 0x4bd07f
cmp dword [edi + 0xf0], 0
jne case.0x4bd2f0.3
cmp dword [edi + 0x10c], 0
jne case.0x4bd2f0.3
mov ecx, dword [ebp - 0xd8]
mov eax, dword [ebp - 0xd4]
cmp dword [edi + 0x104], ecx
jne 0x4bd019
cmp dword [edi + 0x108], eax
je case.0x4bd2f0.3
cmp dword [edi + 0x100], 0
mov dword [edi + 0x104], ecx
mov dword [edi + 0x108], eax
je case.0x4bd2f0.3
push esi
push dword [ebx + 0xc]
lea eax, [ebp - 0xd8]
mov ecx, edi
push eax
call fcn.004bdc90
test al, al
je case.0x4bd2f0.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.004c8540
jmp 0x4bd0f7
test al, 4
je 0x4bd0f7
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.0x4bd2f0.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.004c8540
mov dword [edi + 0x100], 0
jmp 0x4bd0f7
mov esi, dword [ebp - 0xe4]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x6ebae8]
cmp eax, dword [ecx + 4]
jg 0x4bd8c4
mov eax, dword [0x6ebaec]
test eax, eax
je 0x4bd11c
push esi
call eax
push dword [ebp - 0xe0]
call fcn.005ff80c
add esp, 4
jmp case.0x4bd2f0.3
cmp edx, 0x2a1
ja 0x4bd73b
je 0x4bd519
lea esi, [edx - 0x245]
cmp esi, 7
ja case.0x4bd2f0.3
movzx eax, byte [esi + 0x4bdc64]
jmp dword [eax*4 + 0x4bdc5c]
cmp byte [edi + 0x110], 0
je case.0x4bd2f0.3
mov ecx, dword [ebx + 0xc]
mov eax, ecx
shr eax, 0x10
test eax, 0x2000
je 0x4bc479
mov eax, dword fs:[0x2c]
movzx edx, cx
mov dword [ebp - 0xf0], edx
mov ecx, dword [eax]
mov eax, dword [0x6ebaf0]
mov dword [ebp - 0xdc], ecx
cmp eax, dword [ecx + 4]
jg 0x4bd90c
jmp 0x4bd1ae
mov edx, dword [ebp - 0xf0]
mov eax, dword [0x6ebaf4]
test eax, eax
je case.0x4bd2f0.3
lea ecx, [ebp - 0xec]
push ecx
push edx
call eax
cmp eax, 1
sete al
test al, al
je case.0x4bd2f0.3
mov eax, dword [ebp - 0xec]
xorps xmm0, xmm0
movlpd qword [ebp - 0xd8], xmm0
sub eax, 2
je 0x4bd253
sub eax, 1
jne case.0x4bd2f0.3
mov ecx, dword [ebp - 0xdc]
mov eax, dword [0x6ebb00]
cmp eax, dword [ecx + 4]
jg 0x4bd954
mov eax, dword [0x6ebb04]
test eax, eax
je case.0x4bd2f0.3
lea ecx, [ebp - 0x160]
push ecx
push dword [ebp - 0xf0]
call eax
cmp eax, 1
sete al
test al, al
je case.0x4bd2f0.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 0x4bd2af
mov ecx, dword [ebp - 0xdc]
mov eax, dword [0x6ebaf8]
cmp eax, dword [ecx + 4]
jg 0x4bd99c
mov eax, dword [0x6ebafc]
test eax, eax
je case.0x4bd2f0.3
lea ecx, [ebp - 0xd0]
push ecx
push dword [ebp - 0xf0]
call eax
cmp eax, 1
sete al
test al, al
je case.0x4bd2f0.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 + 0x6bd850]
lea eax, [ebp - 0xd8]
push eax
push dword [edi + 0x10]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x6bd6d4]
movss dword [ebp - 0xf0], xmm0
call dword [sym.imp.USER32.dll_ScreenToClient]
cmp esi, 7
ja case.0x4bd2f0.3
jmp dword [esi*4 + 0x4bdc6c]
cmp dword [edi + 0xf0], 0
jne 0x4bc479
cmp dword [edi + 0x100], 0
jne 0x4bc479
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.004be0e0
mov edx, eax
mov dword [ebp - 0xdc], edx
test edx, edx
je case.0x4bd2f0.3
mov ecx, dword [edx]
mov eax, dword [ecx]
cmp eax, method.ui::ButtonTemplate_class_ui::Box_.virtual_0
jne 0x4bd9e4
mov eax, dword [edx + 0x20]
cmp eax, edi
jne case.0x4bd2f0.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.004c8540
mov eax, dword [edi + 0x10c]
test eax, eax
je case.0x4bd2f0.3
cmp byte [eax + 0x8a], 0
je case.0x4bd2f0.3
mov eax, dword [ebp - 0xe0]
mov byte [eax], 1
jmp case.0x4bd2f0.3
cmp dword [edi + 0xf0], 0
jne 0x4bc479
cmp dword [edi + 0x100], 0
jne 0x4bc479
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.0x4bd2f0.3
mov esi, dword [ebp - 0xe4]
lea eax, [ebp - 0xd8]
push esi
push dword [ebx + 0xc]
mov ecx, edi
push eax
call fcn.004bdc90
test al, al
je case.0x4bd2f0.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 0x4bd3bc
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.0x4bd2f0.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.004c8540
mov eax, dword [edi + 0x10c]
test eax, eax
je 0x4bd50a
cmp byte [eax + 0x8a], 0
je 0x4bd50a
mov eax, dword [ebp - 0xe0]
mov byte [eax], 1
mov dword [edi + 0x10c], 0
jmp case.0x4bd2f0.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.004be0e0
mov esi, eax
test esi, esi
je case.0x4bd2f0.3
cmp dword [edi + 0xec], 0
je 0x4bd582
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.004c8540
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 0x4bd69b
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::ButtonTemplate_class_ui::Box_.virtual_88
jne 0x4bd9f3
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 0x4bd72d
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4bd723
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4bd9fc
push edx
push ecx
call fcn.005ff7fe
add esp, 8
mov eax, dword [ebp - 0xe0]
mov byte [eax], 1
jmp case.0x4bd2f0.3
cmp edx, 0x2a3
je 0x4bd790
cmp edx, 0x8001
jne case.0x4bd2f0.3
mov esi, dword [edi + 0x1d4]
cmp esi, dword [edi + 0x1d8]
je 0x4bd782
nop dword [eax]
mov ecx, dword [esi]
test ecx, ecx
je 0x4bd777
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 0x4bd760
mov eax, dword [edi + 0x1d4]
mov dword [edi + 0x1d8], eax
jmp case.0x4bd2f0.3
mov ecx, dword [edi + 0xb0]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
test ecx, ecx
je 0x4bd7b1
lea eax, [edi + 0xb4]
push eax
push 0
push 0x411
push ecx
call esi
cmp byte [edi + 0x11a], 0
je 0x4bd7c8
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.005ff7bd
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 0x4bc359
cmp dword [ebx + 8], 0x200
jne 0x4bc39b
jmp 0x4bc359
call eax
jmp 0x4bc69e
mov ecx, edx
call eax
mov edx, dword [ebp - 0xe8]
jmp 0x4bca6b
mov ecx, edx
call eax
mov edx, dword [ebp - 0xe8]
jmp 0x4bcb3e
mov ecx, eax
call edx
mov ecx, eax
mov eax, dword [ebp - 0xe8]
jmp 0x4bcc10
mov ecx, edx
call eax
mov edx, dword [ebp - 0xdc]
jmp 0x4bcdda
push 0x6ebae0
call fcn.005ffe54
add esp, 4
cmp dword [0x6ebae0], 0xffffffff
jne 0x4bce7f
push str.GetTouchInputInfo
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6ebae0
mov dword [0x6ebae4], eax
call fcn.005ffe0a
add esp, 4
jmp 0x4bce7f
mov ecx, edx
call eax
mov edx, dword [ebp - 0xe8]
jmp 0x4bcf7a
push 0x6ebae8
call fcn.005ffe54
add esp, 4
cmp dword [0x6ebae8], 0xffffffff
jne 0x4bd110
push str.CloseTouchInputHandle
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6ebae8
mov dword [0x6ebaec], eax
call fcn.005ffe0a
add esp, 4
jmp 0x4bd110
push 0x6ebaf0
call fcn.005ffe54
add esp, 4
cmp dword [0x6ebaf0], 0xffffffff
jne 0x4bd1a8
push str.GetPointerType
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6ebaf0
mov dword [0x6ebaf4], eax
call fcn.005ffe0a
add esp, 4
jmp 0x4bd1a8
push 0x6ebb00
call fcn.005ffe54
add esp, 4
cmp dword [0x6ebb00], 0xffffffff
jne 0x4bd209
push str.GetPointerPenInfo
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6ebb00
mov dword [0x6ebb04], eax
call fcn.005ffe0a
add esp, 4
jmp 0x4bd209
push 0x6ebaf8
call fcn.005ffe54
add esp, 4
cmp dword [0x6ebaf8], 0xffffffff
jne 0x4bd26a
push str.GetPointerTouchInfo
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6ebaf8
mov dword [0x6ebafc], eax
call fcn.005ffe0a
add esp, 4
jmp 0x4bd26a
mov ecx, edx
call eax
mov edx, dword [ebp - 0xdc]
jmp 0x4bd35d
mov ecx, esi
call eax
jmp 0x4bd6b1
call fcn.0061f5be
nop dword [eax]
xchg esp, eax
dec ebx
add al, ah
les ecx, [ebx]
jb 0x4bd9d2
dec ebx
add byte [ebx + 0x5f004bc3], ch
les ecx, [ebx]
imul eax, edi, 0xc817004b
dec ebx
add byte [ebx + 0x58004bc5], dl
invalid