Function at 0x42cdee
Capabilities:
Log keystrokes via polling
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push esi
push edi
mov edi, dword [0x4b00bc]
mov dword [esp + 0x1c], edi
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ecx, dword [0x4b00bc]
cmp eax, dword [ecx + 0x14]
je 0x42caa4
cmp eax, dword [ecx + 0xc]
je 0x42caa4
cmp eax, dword [ecx + 0x10]
je 0x42caa4
xor eax, eax
jmp 0x42caa9
mov eax, 1
cmp dword [edi + 0x178], 0
mov dword [0x4b03a8], eax
je 0x42cb08
cmp dword [edi + 0x408], 0xffffffff
jne 0x42cae1
mov al, byte [edi + 0x4f3]
mov byte [esp + 0xf], al
call fcn.0042f910
cmp byte [esp + 0xf], 0
jne 0x42cae9
test al, al
jne 0x42cae1
mov byte [edi + 0x4f3], 1
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test al, al
je 0x42cae1
call fcn.0042da80
mov eax, dword [edi + 0xd0]
mov ecx, 0xfff8fffd
mov dword [edi + 0x410], eax
call fcn.0045b120
cmp byte [edi + 0x46c], 0
jne 0x42cb1d
call fcn.0042d700
mov byte [edi + 0x46c], 1
test byte [edi + 0x28], 2
je 0x42cbd4
cmp dword [edi + 0x4d8], 0
jg 0x42cc12
call fcn.00406a50
mov ecx, eax
sub ecx, dword [edi + 0xc0]
jne 0x42cb93
movzx eax, word [edi + 0x30]
test ax, ax
jne 0x42cb56
movsx eax, word [edi + 0x32]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp ax, 1
je 0x42cb7c
cmp ax, 2
je 0x42cb7c
cmp ax, 0xfffe
je 0x42cb7c
cmp ax, 3
je 0x42cb7c
cmp ax, 0x64
je 0x42cb7c
mov ecx, eax
cmp ax, 4
jne 0x42cb8a
mov ecx, 0xfffefffd
call fcn.0045b120
movzx ecx, word [edi + 0x30]
movsx eax, cx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [edi + 0x4dc]
add esi, ecx
mov dword [edi + 0xc0], eax
mov eax, dword [edi + 0xd0]
mov edx, esi
sub edx, eax
mov dword [esp + 0x18], 3
cmp edx, 3
mov ecx, edx
cmovg ecx, dword [esp + 0x18]
add eax, 3
cmp edx, 3
mov dword [edi + 0x4d8], ecx
cmovle eax, esi
mov dword [edi + 0x4dc], eax
jmp 0x42cc12
call fcn.00406a50
cmp eax, dword [edi + 0xc0]
jne 0x42cc02
mov ecx, dword [0x4b00b4]
cmp dword [ecx + 0x1a8], 0
jne 0x42cc02
movzx eax, word [edi + 0x30]
test ax, ax
je 0x42cb4c
jmp 0x42cb56
mov dword [edi + 0xc0], eax
mov dword [edi + 0x4d8], 1
mov ecx, dword [edi + 0xa4]
mov eax, dword [edi + 0xa0]
mov esi, dword [edi + 0xd4]
mov dword [edi + 0xa4], eax
mov eax, dword [edi + 0x94]
shl eax, 0xa
add eax, ecx
mov dword [edi + 0xa0], ecx
mov dword [edi + 0x98], ecx
lea ecx, [esp + 0x20]
mov dword [edi + 0x9c], eax
call fcn.00402820
mov ecx, dword [esp + 0x20]
sub ecx, dword [0x4b0378]
mov eax, dword [esp + 0x24]
sbb eax, dword [0x4b037c]
push 0
push 0xf4240
push eax
push ecx
call fcn.0048c9f0
inc dword [edi + 0xd0]
mov ecx, eax
sub ecx, dword [edi + 0xd8]
mov eax, dword [edi + 0x1c]
mov dword [edi + 0xd4], ecx
sub ecx, esi
add dword [edi + 0x50c], ecx
mov dword [edi + 0xdc], ecx
mov eax, dword [eax + 0x96c]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x49d890]
mov eax, ecx
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x49d890]
mov eax, dword [edi + 0x1160]
mulsd xmm1, xmm0
divsd xmm1, qword [0x49d818]
movsd qword [edi + 0x440], xmm1
mov dword [edi + eax*4 + 0x1138], ecx
inc dword [edi + 0x1160]
cmp dword [edi + 0x1160], 0xa
jl 0x42cd01
mov dword [edi + 0x1160], 0
mov eax, dword [edi + 0x2c]
lea ecx, [edi + 0x2c]
mov dword [edi + 0x108], eax
movsx eax, word [edi + 0x434]
sub eax, 1
je 0x42ce44
sub eax, 1
jne 0x42ce52
mov esi, dword [edi + 0x438]
mov eax, dword [esi]
cmp dword [eax + 0xd0], 1
jle 0x42ce52
nop dword [eax + eax]
mov edx, dword [esi + 0x20c]
mov eax, dword [esi + 0x204]
movzx ecx, byte [edx + eax]
cmp ecx, 6
ja case.default.0x42cd55
jmp dword [ecx*4 + 0x42d568]
cmp dword [0x4b00bc], 0
je 0x42cd75
movzx ecx, byte [edx + eax + 1]
call fcn.00459f20
mov edx, dword [esi + 0x20c]
lea eax, [edx + 2]
mov dword [esi + 0x20c], eax
jmp case.default.0x42cd55
movzx eax, byte [edx + eax + 1]
mov byte [eax + esi + 4], 0
add dword [esi + 0x20c], 2
jmp case.default.0x42cd55
movzx eax, byte [edx + eax + 1]
mov byte [eax + esi + 4], 1
add dword [esi + 0x20c], 2
jmp case.default.0x42cd55
mov al, byte [edx + eax + 1]
mov ecx, edx
mov byte [esi + 0x210], al
mov eax, dword [esi + 0x204]
mov al, byte [ecx + eax + 2]
mov byte [esi + 0x211], al
mov eax, dword [esi + 0x204]
mov al, byte [ecx + eax + 3]
mov byte [esi + 0x212], al
mov eax, dword [esi + 0x204]
mov al, byte [ecx + eax + 4]
mov byte [esi + 0x213], al
add dword [esi + 0x20c], 5
jmp case.default.0x42cd55
movzx ecx, byte [edx + eax + 1]
movzx eax, byte [edx + eax + 2]
shl ecx, 8
add ecx, eax
mov eax, dword [esi + 0x204]
mov dword [esi + 0x214], ecx
movzx ecx, byte [edx + eax + 3]
movzx eax, byte [edx + eax + 4]
shl ecx, 8
add ecx, eax
lea eax, [edx + 5]
mov dword [esi + 0x218], ecx
mov dword [esi + 0x20c], eax
jmp case.default.0x42cd55
lea eax, [edx + 1]
mov dword [esi + 0x20c], eax
jmp 0x42ce4f
mov eax, dword [esi]
xor ecx, ecx
mov word [eax + 0x434], cx
jmp 0x42ce4f
mov ecx, dword [edi + 0x438]
call fcn.00408d40
lea ecx, [edi + 0x2c]
movzx eax, word [edi + 0x434]
cmp ax, 2
jne 0x42ce6f
mov eax, dword [edi + 0x438]
mov eax, dword [eax + 0x210]
mov dword [ecx], eax
jmp 0x42ce7a
cmp ax, 1
je 0x42ce7a
call fcn.0042f7b0
cmp byte [edi + 0x27], 0
je 0x42cfa0
cmp word [edi + 0x434], 2
jne 0x42cec6
mov ecx, dword [edi + 0x438]
mov eax, dword [ecx + 0x214]
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 0x218]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push eax
mov eax, dword [ecx]
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [esp + 0x24]
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_SetCursorPos]
lea esi, [edi + 0x150]
push esi
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [edi + 0x154]
mov ecx, dword [edi + 0x510]
mov edx, dword [edi + 0x514]
sub eax, edx
sub dword [esi], ecx
cmp dword [esi], 0
mov dword [edi + 0x154], eax
jne 0x42cef8
test eax, eax
je 0x42cf00
push edx
push ecx
call dword [sym.imp.USER32.dll_SetCursorPos]
cmp word [edi + 0x434], 2
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov byte [edi + 0x118], 0
jne 0x42cf2c
mov eax, dword [edi + 0x438]
mov ecx, 2
movzx eax, byte [eax + 5]
neg eax
sbb eax, eax
jmp 0x42cf37
push 1
call esi
movzx ecx, word [edi + 0x434]
movzx eax, ax
test ax, ax
jns 0x42cf46
or byte [edi + 0x118], 0x10
cmp cx, 2
jne 0x42cf5c
mov eax, dword [edi + 0x438]
movzx eax, byte [eax + 6]
neg eax
sbb eax, eax
jmp 0x42cf60
push 2
call esi
movzx eax, ax
test ax, ax
jns 0x42cf6f
or byte [edi + 0x118], 0x20
mov ch, byte [edi + 0x27]
lea edx, [edi + 0x2c]
xor esi, esi
cmp byte [edi + 0x26], 0
jbe 0x42cfa5
nop dword [eax]
test ch, 1
je 0x42cf92
and byte [edx], 0xcf
mov cl, byte [edi + 0x118]
or cl, byte [edx]
mov byte [edx], cl
movzx eax, byte [edi + 0x26]
inc esi
inc edx
shr ch, 1
cmp esi, eax
jl 0x42cf80
jmp 0x42cfa5
call fcn.0042d590
mov eax, dword [edi + 0x114]
mov edx, 0xffffffff
and eax, dword [edi + 0x110]
and eax, dword [edi + 0x2c]
mov ecx, eax
mov dword [edi + 0x2c], eax
xor eax, dword [edi + 0x108]
mov dword [edi + 0x10c], eax
je 0x42d0a8
and ecx, eax
test ecx, 0xf0f0f0f0
je 0x42d094
xor esi, esi
cmp byte [edi + 0x26], 0
jbe 0x42d0a8
nop word [eax + eax]
mov word [edi + 0xe8], si
mov al, byte [edi + esi + 0x10c]
mov ecx, dword [edi + 0xec]
mov dword [esp + 0x18], ecx
test al, 0xf0
je 0x42d04c
movzx eax, al
mov dword [edi + 0xec], eax
mov eax, dword [0x4b00bc]
mov dword [eax + 0xe4], 0xfffcfff9
mov eax, dword [0x4b00bc]
mov word [eax + 0xf4], dx
mov ecx, dword [0x4b00bc]
mov eax, dword [ecx + 0x78]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x42d07b
mov ecx, dword [ecx + 0x7c]
add ecx, eax
cmp dword [ecx], 0xffffffff
je 0x42d07b
jmp 0x42d06e
test al, 0xf
je 0x42d07b
movzx eax, al
mov dword [edi + 0xec], eax
mov ecx, dword [0x4b00bc]
mov eax, dword [ecx + 0x78]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x42d07b
mov ecx, dword [ecx + 0x7c]
add ecx, eax
mov edx, 1
call fcn.0045b6e0
or edx, 0xffffffff
mov eax, dword [esp + 0x18]
inc esi
mov dword [edi + 0xec], eax
movzx eax, byte [edi + 0x26]
cmp esi, eax
jl 0x42cff0
jmp 0x42d0a8
mov eax, dword [edi + 0x78]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x42d0a8
mov ecx, dword [edi + 0x7c]
add ecx, eax
call fcn.0045b430
mov edx, dword [edi + 0x3c]
mov dword [esp + 0x14], edx
test edx, edx
je 0x42d11e
mov esi, dword [edi + 0x1278]
nop dword [eax]
xor eax, eax
mov word [edi + 0x4bc], ax
mov ecx, dword [esi]
test ecx, ecx
jne 0x42d0da
nop
mov ecx, dword [esi + 8]
add esi, 8
test ecx, ecx
je 0x42d0d0
mov eax, dword [ecx + 0x2c]
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x2c], 0
cmp dword [esi + 4], 0
je 0x42d100
mov dword [edi + 0x4b8], esi
mov eax, dword [esi + 4]
push ecx
call eax
mov edx, dword [esp + 0x18]
add esp, 4
movsx eax, word [edi + 0x4bc]
add esi, 8
add edx, eax
xor eax, eax
sub edx, 1
mov word [edi + 0x4bc], ax
mov dword [esp + 0x14], edx
jne 0x42d0c0
inc word [edi + 0x1a4]
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ecx, dword [0x4b00bc]
cmp eax, dword [ecx + 0x14]
je 0x42d144
cmp eax, dword [ecx + 0xc]
je 0x42d144
cmp eax, dword [ecx + 0x10]
je 0x42d144
xor eax, eax
jmp 0x42d149
mov eax, 1
mov dword [0x4b03a8], eax
call fcn.0045b2b0
mov ecx, dword [0x4b00bc]
mov esi, dword [ecx + 0x462]
lea eax, [ecx + 0x462]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
test esi, esi
je 0x42d2c4
mov eax, dword [ecx + 0xd4]
cmp eax, dword [esi + 0xc]
jb 0x42d1b7
cmp dword [esi + 4], 0
jne 0x42d21f
mov eax, dword [esi + 8]
mov dword [ecx + 0xec], eax
mov eax, dword [ecx + 0x6c]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x42d1ac
mov ecx, dword [ecx + 0x7c]
mov edx, 1
add ecx, eax
call fcn.0045b6e0
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x20], 1
mov esi, dword [esi]
test esi, esi
jne 0x42d175
mov eax, dword [esp + 0x18]
mov ecx, dword [0x4b00bc]
mov dword [esp + 0x10], ecx
mov esi, dword [eax]
test esi, esi
je 0x42d2c4
xor edi, edi
nop word [eax + eax]
cmp dword [esi + 0x20], 0
mov eax, dword [esi]
mov dword [esp + 0x10], eax
je 0x42d2a6
push dword [esi + 8]
call fcn.004740af
mov eax, dword [esp + 0x14]
add esp, 4
test edi, edi
jne 0x42d295
mov ecx, dword [esp + 0x18]
push esi
mov dword [ecx], eax
call fcn.004740af
mov eax, dword [esp + 0x14]
add esp, 4
jmp 0x42d2ac
mov edx, dword [esi + 0x14]
mov dword [esp + 0x14], eax
test edx, edx
jne 0x42d239
mov dword [esi + 0x14], eax
mov edx, dword [ecx + 0xd4]
mov dword [esp + 0x14], edx
mov edx, eax
cmp dword [esp + 0x14], edx
jb 0x42d1b7
mov eax, dword [esi + 8]
mov dword [ecx + 0xec], eax
mov eax, dword [esi + 0x1c]
mov dword [ecx + 0xf0], eax
mov eax, dword [ecx + 0x6c]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x42d272
mov ecx, dword [ecx + 0x7c]
mov edx, 1
add ecx, eax
call fcn.0045b6e0
mov ecx, dword [esp + 0x10]
inc dword [esi + 0x1c]
add dword [esi + 0x18], 0xffffffff
je 0x42d1ac
mov eax, dword [esi + 0x10]
add dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
cmp dword [ecx + 0xd4], eax
jae 0x42d243
jmp 0x42d1b7
push esi
mov dword [edi], eax
call fcn.004740af
mov eax, dword [esp + 0x14]
add esp, 4
jmp 0x42d2ac
mov dword [esp + 0x14], esi
mov edi, esi
mov esi, eax
test eax, eax
jne 0x42d1e0
mov ecx, dword [0x4b00bc]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x10], ecx
mov eax, dword [edi + 0x84]
test eax, eax
je 0x42d2e5
test byte [edi + 0x28], 0x10
jne 0x42d2e5
mov ecx, eax
call fcn.0045b430
mov ecx, dword [0x4b00bc]
mov dword [esp + 0x10], ecx
cmp dword [edi + 0x130], 0
je 0x42d379
mov eax, dword [ecx + 0x130]
mov dword [esp + 0x18], eax
test eax, eax
je 0x42d365
mov edi, eax
mov edx, dword [edi + 4]
test edx, edx
je 0x42d34c
mov eax, dword [edi + 0xc]
mov dword [edi + 4], 0
mov ecx, dword [0x4b00bc]
push edx
mov esi, dword [ecx + 0xec]
mov dword [ecx + 0xec], eax
mov eax, dword [0x4b00bc]
mov cx, word [edi + 0x14]
mov word [eax + 0xe8], cx
push dword [edi + 0x10]
mov eax, dword [edi + 8]
call eax
mov eax, dword [0x4b00bc]
add esp, 8
mov dword [eax + 0xec], esi
push edi
mov edi, dword [edi]
call fcn.004740af
add esp, 4
test edi, edi
jne 0x42d302
mov ecx, dword [0x4b00bc]
mov edi, dword [esp + 0x1c]
mov dword [ecx + 0x130], 0
mov ecx, dword [0x4b00bc]
mov dword [esp + 0x10], ecx
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x42d3fa
mov esi, dword [ecx + 0x1278]
xor edx, edx
mov dword [esp + 0x1c], edx
test eax, eax
jle 0x42d3fa
mov eax, dword [esi]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x42d3b6
nop word [eax + eax]
mov ecx, dword [esi + 8]
add esi, 8
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x42d3a0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add esi, 8
test dword [eax + 0x78], 0x230
je 0x42d3f0
cmp dword [eax + 0xfc], 0
je 0x42d3f0
push eax
mov eax, dword [eax + 0x8c]
call eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov dword [eax + 0xfc], 0
mov ecx, dword [0x4b00bc]
mov dword [esp + 0x10], ecx
inc edx
mov dword [esp + 0x1c], edx
cmp edx, dword [ecx + 0x3c]
jl 0x42d390
cmp word [ecx + 0xfe], 0
je 0x42d4ca
xor eax, eax
xor esi, esi
mov word [ecx + 0xfe], ax
mov eax, dword [ecx + 0x1168]
mov dword [esp + 0x1c], eax
nop dword [eax]
mov edx, dword [eax]
test edx, edx
je 0x42d4b7
mov dword [eax], 0
mov eax, edx
mov dword [esp + 0x20], edx
shr edx, 1
mov dword [esp + 0x14], edx
test al, 1
je 0x42d4a3
mov eax, dword [ecx + 0x1278]
mov edx, dword [eax + esi*8]
test edx, edx
je 0x42d492
mov eax, dword [edx + 0x1c]
cmp dword [eax + 0x10], 1
jne 0x42d492
mov eax, dword [0x4b00bc]
movsx ecx, word [edx + 0x18]
or ecx, 0xffdf0000
mov dword [eax + 0xe4], ecx
mov eax, dword [edx + 0x20]
sar ecx, 0x10
neg ecx
movsx ecx, cx
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x18], eax
test eax, eax
je 0x42d492
mov eax, dword [0x4b00bc]
mov ecx, dword [eax + 0x7c]
add ecx, dword [esp + 0x18]
call fcn.0045b6e0
xor edx, edx
mov ecx, esi
call fcn.0042e4a0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
cmp dword [esp + 0x20], 2
jb 0x42d4ad
inc esi
jmp 0x42d430
mov eax, dword [esp + 0x1c]
and esi, 0xffe0
add eax, 4
add esi, 0x20
mov dword [esp + 0x1c], eax
cmp esi, dword [ecx + 0x40]
jl 0x42d420
inc dword [edi + 0x4e0]
or eax, 0xffffffff
dec dword [edi + 0x4d8]
mov word [edi + 0x160], ax
xor eax, eax
mov dword [edi + 0x198], 0
mov word [edi + 0x484], ax
cmp dword [edi + 0x4d8], eax
jle 0x42d501
cmp word [edi + 0x30], ax
je 0x42d506
call fcn.0042ea80
movzx ecx, word [edi + 0x30]
test cx, cx
je 0x42cb4c
cmp cx, 1
je 0x42d539
cmp cx, 2
je 0x42d539
cmp cx, 0xfffe
je 0x42d539
cmp cx, 3
je 0x42d539
cmp cx, 0x64
je 0x42d539
mov eax, ecx
cmp cx, 4
jne 0x42d55e
mov esi, dword [0x4b00bc]
mov eax, dword [esi + 0x68]
mov edx, dword [eax + 8]
mov eax, ecx
test edx, edx
je 0x42d55e
mov ecx, dword [esi + 0x7c]
add ecx, edx
mov edx, 1
call fcn.0045b6e0
movzx eax, word [edi + 0x30]
pop edi
cwde
pop esi
mov esp, ebp
pop ebp
ret