Function at 0x41d100
Capabilities:
Check for unmoving mouse cursor
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d8200
push eax
mov dword fs:[0], esp
mov eax, dword [0x52fe34]
sub esp, 0x74
cmp byte [eax + 0x125fa], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
je 0x41d144
mov ecx, dword [ebp + 0x10]
push 0
push ebx
push ecx
push edi
call fcn.004b5cc0
add esp, 0x10
mov ecx, dword [esi + 0x409c]
call fcn.00447fc0
test eax, eax
je 0x41d19c
mov ecx, dword [esi + 0x40ac]
test ecx, ecx
je 0x41d162
call fcn.004c6db0
mov edx, dword [0x52fe34]
cmp byte [edx + 0x125fa], 0
je 0x41dc26
mov esi, dword [esi + 0x40b0]
test esi, esi
je 0x41dc26
push 0
push 1
push 0
push 1
push str.Mouse_event_skipped_due_to__isMenuActive___
mov ecx, esi
call fcn.004c87c0
jmp 0x41dc26
mov ecx, ebx
shr ecx, 0x10
movsx eax, bx
movsx ecx, cx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
cmp edi, 0x20a
je 0x41d1ce
cmp edi, 0x20e
jne 0x41d264
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
lea ecx, [ebp - 0x60]
call fcn.004bc8c0
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
lea eax, [ebp - 0x60]
push eax
push ecx
push edx
mov dword [ebp - 4], 0
call fcn.004b7510
add esp, 0xc
test al, al
je 0x41d255
lea ecx, [ebp - 0x60]
call fcn.004bc9d0
mov ecx, eax
call fcn.004bcc80
mov ecx, eax
mov dword [ebp - 0x30], eax
call fcn.00488d20
mov ebx, eax
test ebx, ebx
je 0x41d252
mov ecx, dword [ebp - 0x30]
call fcn.00486eb0
test eax, eax
je 0x41d252
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
push edi
push ebx
lea ecx, [ebp - 0x60]
call fcn.004bc9d0
mov ecx, eax
call fcn.004bcc80
mov ecx, eax
call fcn.0048a640
lea ecx, [ebp - 0x60]
jmp 0x41dc1a
mov ebx, dword [ebp + 0x14]
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 0xffffffff
call fcn.004bc960
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0xe]
push edx
push eax
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x40]
push edx
push edi
mov ecx, esi
mov byte [ebp - 0xe], 0
call fcn.00411250
mov byte [ebp - 0xd], al
cmp edi, 0x201
jne 0x41d349
cmp dword [esi + 0x40e4], 0x520
jne 0x41d2af
mov eax, dword [0x52fe14]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x41d349
cmp dword [esi + 0x40e4], 0x521
jne 0x41d2cc
mov ecx, dword [0x52fe14]
push ecx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x41d349
mov edx, dword [0x52fe30]
cmp byte [edx + 0x1220], 0
jne 0x41d349
push 0
push 0
push 0
push 1
push 0x100
lea ecx, [esi + 0x118]
call fcn.0042dec0
test al, al
je 0x41d349
lea ecx, [esi + 0x4194]
mov eax, 0x4000
or word [esi + 0x4148], ax
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [0x52fe14]
add esi, 0x419c
push esi
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [0x52fe14]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
push 0x7f86
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x41dc26
mov ecx, 0x4000
test word [esi + 0x4148], cx
je 0x41d429
cmp edi, 0x202
je 0x41d412
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, 0x8000
and ax, dx
mov ecx, edx
cmp ax, cx
jne 0x41d412
xor eax, eax
lea edx, [ebp - 0x38]
push edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esi + 0x419c]
mov edi, dword [esi + 0x41a0]
xor ebx, ebx
mov eax, edx
sub eax, dword [esi + 0x4194]
mov dword [ebp - 0x78], ebx
add eax, dword [ebp - 0x38]
mov dword [ebp - 0x74], ebx
mov ebx, dword [esi + 0x41a4]
mov dword [ebp - 0x80], eax
mov ecx, edi
sub ecx, dword [esi + 0x4198]
sub ebx, edx
add ecx, dword [ebp - 0x34]
add ebx, eax
mov eax, dword [esi + 0x41a8]
sub eax, edi
add eax, ecx
mov dword [ebp - 0x7c], ecx
push 1
lea ecx, [ebp - 0x80]
push ecx
mov ecx, esi
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], eax
call fcn.0040e660
mov eax, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x80]
push 1
sub edx, eax
push edx
mov edx, dword [ebp - 0x78]
sub edx, ecx
push edx
push eax
mov eax, dword [0x52fe14]
push ecx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
jmp 0x41dc26
mov ecx, 0xbfff
and word [esi + 0x4148], cx
call dword [sym.imp.USER32.dll_ReleaseCapture]
jmp 0x41dc26
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
lea edx, [ebp - 0x2c]
push edx
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [esi + 0x40a8]
push ebx
push edx
push edi
push eax
call fcn.004a4aa0
test al, al
je 0x41d464
mov eax, dword [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
cmp byte [ebp - 0xd], 0
je 0x41dc26
xor ebx, ebx
cmp dword [esi + 0x40a4], ebx
je 0x41d4a4
cmp edi, 0x201
je 0x41d488
cmp edi, 0x204
jne 0x41d4a4
mov ecx, dword [0x52fe14]
push ecx
call fcn.004c57c0
mov edx, dword [0x52fe14]
add esp, 4
push edx
call dword [sym.imp.USER32.dll_SetFocus]
xor eax, eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x14], ebx
call fcn.004bc8c0
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
lea eax, [ebp - 0x54]
push eax
push ecx
push edx
mov dword [ebp - 4], 1
call fcn.004b7510
add esp, 0xc
test al, al
je 0x41d57b
lea ecx, [ebp - 0x54]
call fcn.004bc9d0
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x41d57b
mov ecx, ebx
call fcn.004bcc80
lea ecx, [ebx + 8]
mov dword [ebp - 0x1c], eax
call fcn.004b32e0
mov dword [ebp - 0x24], eax
test eax, eax
je 0x41d52d
lea ecx, [ebp - 0x70]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [0x52fe14]
push 2
lea edx, [ebp - 0x70]
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x40]
mov eax, dword [0x52fe14]
push 7
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_ChildWindowFromPointEx]
mov dword [ebp - 0x34], eax
cmp edi, 0x20a
je 0x41d55a
cmp edi, 0x20e
jne 0x41d654
mov eax, dword [ebp + 0x10]
shr eax, 0x10
test ax, ax
je 0x41d654
cmp edi, 0x20a
jne 0x41d585
test ax, ax
setle al
add al, 0xd0
jmp 0x41d595
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], eax
jmp 0x41d52d
cmp edi, 0x20e
jne 0x41d5bd
test ax, ax
setg al
add al, 0xd2
test al, al
je 0x41d5bd
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
movzx edx, al
push 0
push edx
push 0x100
lea ecx, [esi + 0x118]
call fcn.0042dec0
test al, al
jne 0x41dc17
cmp dword [esi + 0x5560], 0
jne 0x41d736
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x41d7c1
cmp dword [ebp - 0x34], eax
jne 0x41d7c1
cmp edi, 0x201
je 0x41d639
cmp edi, 0x204
je 0x41d639
cmp edi, 0x207
je 0x41d639
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call ebx
mov ecx, 0x8000
and ax, cx
mov edx, ecx
cmp ax, dx
je 0x41d639
push 2
call ebx
mov ecx, 0x8000
and ax, cx
mov edx, ecx
cmp ax, dx
je 0x41d639
push 4
call ebx
mov ecx, 0x8000
and ax, cx
mov edx, ecx
cmp ax, dx
jne 0x41d7c1
mov dword [esi + 0x5560], 1
mov eax, dword [0x52fe14]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
jmp 0x41d7c1
lea eax, [edi - 0x201]
cmp eax, 8
ja 0x41d5bd
cmp edi, 0x203
ja 0x41d66f
mov bl, 1
jmp 0x41d67f
lea ecx, [edi - 0x204]
cmp ecx, 2
seta bl
lea ebx, [ebx + ebx + 2]
lea ecx, [esi + 0x118]
mov dword [ebp - 0x30], ecx
call fcn.0042c0c0
cmp edi, 0x201
je 0x41d6a9
cmp edi, 0x204
je 0x41d6a9
mov byte [ebp - 0x20], 0
cmp edi, 0x207
jne 0x41d6ad
mov byte [ebp - 0x20], 1
cmp edi, 0x202
je 0x41d6c9
cmp edi, 0x205
je 0x41d6c9
mov byte [ebp - 0xd], 0
cmp edi, 0x208
jne 0x41d6cd
mov byte [ebp - 0xd], 1
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x30]
push edx
movzx ebx, bl
push eax
push ebx
call fcn.0042c260
mov ecx, dword [0x52fe34]
push eax
call fcn.004589f0
test eax, eax
je 0x41d5bd
cmp eax, dword [0x510424]
je 0x41dc17
cmp byte [ebp - 0x20], 0
jne 0x41d711
cmp byte [ebp - 0xd], 0
je 0x41dc17
mov ecx, dword [ebp - 0x1c]
xor edx, edx
cmp byte [ebp - 0x20], dl
push ecx
mov ecx, dword [ebp - 0x30]
sete dl
push 0
push 0
push ebx
add edx, 0x100
push edx
call fcn.0042dec0
jmp 0x41dc17
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call ebx
mov ecx, 0x8000
and ax, cx
mov edx, ecx
cmp ax, dx
je 0x41d7c1
push 2
call ebx
mov ecx, 0x8000
and ax, cx
mov edx, ecx
cmp ax, dx
je 0x41d7c1
push 4
call ebx
mov ecx, 0x8000
and ax, cx
mov edx, ecx
cmp ax, dx
je 0x41d7c1
call dword [sym.imp.USER32.dll_ReleaseCapture]
cmp dword [ebp - 0x1c], 0
mov dword [esi + 0x5560], 0
je 0x41d7c1
mov ecx, dword [ebp - 0x1c]
call fcn.00489270
test eax, eax
je 0x41d7c1
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x70]
cmp eax, ecx
jl 0x41d7a9
mov ecx, dword [ebp - 0x68]
cmp eax, ecx
jl 0x41d7ac
dec ecx
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x6c]
cmp eax, ecx
jl 0x41d7be
mov ecx, dword [ebp - 0x64]
cmp eax, ecx
jl 0x41d7c1
dec ecx
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x14], 0
je 0x41dc17
mov ecx, dword [0x52fe34]
call fcn.0045c5a0
test eax, eax
je 0x41dc17
mov ecx, dword [0x52fe34]
call fcn.0045c5c0
test eax, eax
je 0x41dc17
mov eax, dword [0x52fe2c]
cmp edi, 0x202
je 0x41d806
cmp edi, 0x200
jne 0x41d831
mov ecx, 0x200
test word [eax + 0x4148], cx
je 0x41d831
cmp edi, 0x202
jne 0x41dc17
mov edx, 0xfdff
and word [eax + 0x4148], dx
jmp 0x41dc17
cmp edi, 0x20a
je 0x41d855
cmp edi, 0x20e
je 0x41d855
mov ecx, esi
call fcn.0040e5e0
test eax, eax
jne 0x41dc17
mov eax, dword [0x52fe2c]
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x41d89d
mov ecx, ebx
call fcn.00489140
test al, al
je 0x41d898
mov edx, dword [ebp + 0x10]
test dl, 1
jne 0x41d877
cmp edi, 0x202
jne 0x41d898
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x3c]
sub ecx, dword [ebp - 0x6c]
push 0
push 0
push ecx
push eax
push edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], eax
push edi
mov ecx, ebx
jmp 0x41dc12
mov eax, dword [0x52fe2c]
cmp edi, 0x200
je 0x41d8d9
cmp edi, 0x20a
je 0x41d8d9
cmp edi, 0x20e
je 0x41d8d9
mov ecx, 0x200
test word [eax + 0x4148], cx
je 0x41d8cf
mov edx, 0xfdff
and word [eax + 0x4148], dx
cmp dword [ebp - 0x24], 0
je 0x41dc17
mov ecx, dword [ebp - 0x3c]
sub ecx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x70]
xor ebx, ebx
push ebx
push ecx
push eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp - 0x14]
push eax
call fcn.004bf3d0
cmp edi, 0x20a
je 0x41d920
cmp edi, 0x20e
je 0x41d920
cmp word [ebp - 0x18], bx
jl 0x41dc17
cmp word [ebp - 0x16], bx
jl 0x41dc17
mov ecx, dword [0x52fe30]
cmp byte [ecx + 0x1241], 0
je 0x41d941
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.004169e0
test al, al
je 0x41dc17
mov ecx, dword [0x52fe2c]
mov edx, dword [ecx + 0x4184]
cmp edx, ebx
je 0x41d955
cmp edx, edi
je 0x41d96f
mov eax, dword [ecx + 0x4188]
cmp eax, ebx
je 0x41d991
cmp eax, edi
je 0x41d96b
cmp edi, 0x200
jne 0x41d991
cmp edx, edi
jne 0x41d97a
mov dword [ecx + 0x4184], ebx
jmp 0x41dc17
cmp dword [ecx + 0x4188], edi
jne 0x41dc17
mov dword [ecx + 0x4188], ebx
jmp 0x41dc17
mov eax, dword [esi + 0x418c]
cmp eax, ebx
je 0x41da0c
mov edx, dword [0x52fe30]
cmp byte [edx + 0x1240], 0
je 0x41da06
cmp edi, 0x201
jne 0x41d9bb
cmp eax, 0x203
jne 0x41d9db
jmp 0x41da06
cmp edi, 0x204
jne 0x41d9cc
cmp eax, 0x206
jne 0x41d9db
jmp 0x41da06
cmp edi, 0x207
jne 0x41d9db
cmp eax, 0x209
je 0x41da06
cmp eax, edi
jne 0x41da0c
sub eax, 0x203
je 0x41d9fe
sub eax, 3
je 0x41d9f7
sub eax, 3
jne 0x41da06
mov edi, 0x207
jmp 0x41da03
mov edi, 0x204
jmp 0x41da03
mov edi, 0x201
mov dword [ebp + 0xc], edi
mov dword [esi + 0x418c], ebx
mov eax, dword [esi + 0x4848]
cmp eax, ebx
je 0x41da41
lea ecx, [eax + 8]
call fcn.00435100
test eax, eax
je 0x41da41
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
mov ecx, dword [esi + 0x4848]
push edi
add ecx, 8
call fcn.00435140
test eax, eax
jne 0x41dc17
push ebx
call fcn.004b6520
add esp, 4
test al, al
je 0x41dbd8
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x40]
cmp eax, 0x20a
je 0x41da71
cmp eax, 0x20e
je 0x41da71
movzx edx, di
movzx ecx, bx
jmp 0x41da79
movzx edx, word [ebp - 0x44]
movzx ecx, word [ebp - 0x48]
shl edx, 0x10
or edx, ecx
mov dword [esi + 0x4178], eax
cmp eax, 0x200
jne 0x41dab7
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x14]
push edi
push ebx
push edx
mov edx, dword [ebp + 8]
push ecx
push 0x200
push edx
push eax
mov ecx, esi
call fcn.0041b0c0
test eax, eax
jne 0x41dbd8
jmp 0x41dc17
or ecx, 0xffffffff
mov dword [esi + 0x417c], ecx
mov dword [esi + 0x4180], ecx
cmp eax, 0x203
jne 0x41daf8
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 8]
push edi
push ebx
push edx
mov edx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp - 0x14]
lea eax, [ebp + 0xc]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00411870
test eax, eax
jne 0x41dbd8
jmp 0x41dc17
cmp eax, 0x206
jne 0x41db25
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
push eax
push edi
push ebx
push edx
push ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x14]
push ecx
push eax
mov ecx, esi
call fcn.0040c3a0
test eax, eax
je 0x41dc17
mov eax, dword [ebp + 0xc]
cmp eax, 0x201
jne 0x41db57
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x14]
push edi
push ebx
push edx
mov edx, dword [ebp + 0x10]
push edx
push eax
mov eax, dword [ebp + 8]
push eax
push ecx
mov ecx, esi
call fcn.004115a0
test eax, eax
jne 0x41dbd8
jmp 0x41dc17
cmp eax, 0x202
jne 0x41db86
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x14]
push edi
push ebx
push edx
mov edx, dword [ebp + 8]
push ecx
push 0x202
push edx
push eax
mov ecx, esi
call fcn.004117c0
test eax, eax
jne 0x41dbd8
jmp 0x41dc17
cmp eax, 0x204
jne 0x41dbae
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x14]
push edi
push ebx
push edx
mov edx, dword [ebp + 0x10]
push edx
push eax
mov eax, dword [ebp + 8]
push eax
push ecx
mov ecx, esi
call fcn.00411990
test eax, eax
jne 0x41dbd8
jmp 0x41dc17
cmp eax, 0x205
jne 0x41dbde
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x14]
push edi
push ebx
push edx
mov edx, dword [ebp + 8]
push ecx
push 0x205
push edx
push eax
mov ecx, esi
call fcn.0041b580
test eax, eax
je 0x41dc17
mov edi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x40]
mov eax, dword [ebp + 0x10]
movzx ecx, di
movzx edx, bx
shl ecx, 0x10
or ecx, edx
cmp byte [ebp - 0xe], 0
mov dword [esi + 0x417c], eax
mov dword [esi + 0x4180], ecx
jne 0x41dc17
cmp dword [ebp - 0x1c], 0
je 0x41dc17
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push edi
push ebx
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.00492af0
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0xffffffff
call fcn.004bc960
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10