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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [0x49d5d4]
mov dword [esp + 0x1c], edi
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ecx, dword [0x49d5d4]
cmp eax, dword [ecx + 0x14]
je 0x424d15
cmp eax, dword [ecx + 0xc]
je 0x424d15
cmp eax, dword [ecx + 0x10]
je 0x424d15
xor eax, eax
jmp 0x424d1a
mov eax, 1
cmp dword [edi + 0x178], 0
mov dword [0x49d7d4], eax
je 0x424d73
cmp dword [edi + 0x408], 0xffffffff
jne 0x424d4b
mov bl, byte [edi + 0x4f3]
call fcn.00427b50
test bl, bl
jne 0x424d54
test al, al
jne 0x424d4b
mov byte [edi + 0x4f3], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test al, al
je 0x424d4b
call fcn.00425a50
mov eax, dword [edi + 0xd0]
mov ecx, 0xfff8fffd
mov dword [edi + 0x410], eax
call fcn.00435710
cmp byte [edi + 0x46c], 0
jne 0x424d88
call fcn.004257b0
mov byte [edi + 0x46c], 1
test byte [edi + 0x28], 2
je 0x424e39
cmp dword [edi + 0x4d8], 0
jg 0x424e77
call fcn.004052b0
mov ecx, eax
sub ecx, dword [edi + 0xc0]
jne 0x424e00
movzx eax, word [edi + 0x30]
test ax, ax
jne 0x424dc2
movsx eax, word [edi + 0x32]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ax, 1
je 0x424de8
cmp ax, 2
je 0x424de8
cmp ax, 0xfffe
je 0x424de8
cmp ax, 3
je 0x424de8
cmp ax, 0x64
je 0x424de8
mov ecx, eax
cmp ax, 4
jne 0x424df6
mov ecx, 0xfffefffd
call fcn.00435710
movzx ecx, word [edi + 0x30]
movsx eax, cx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [edi + 0x4dc]
mov ebx, 3
add esi, ecx
mov dword [edi + 0xc0], eax
mov eax, dword [edi + 0xd0]
mov edx, esi
sub edx, eax
cmp edx, ebx
mov ecx, edx
cmovg ecx, ebx
add eax, ebx
cmp edx, ebx
mov dword [edi + 0x4d8], ecx
cmovle eax, esi
mov dword [edi + 0x4dc], eax
jmp 0x424e77
call fcn.004052b0
cmp eax, dword [edi + 0xc0]
jne 0x424e67
mov ecx, dword [0x49d5cc]
cmp dword [ecx + 0x1a8], 0
jne 0x424e67
movzx eax, word [edi + 0x30]
test ax, ax
je 0x424db7
jmp 0x424dc2
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 + 0x10]
mov dword [edi + 0x9c], eax
call fcn.00405a30
mov ecx, dword [esp + 0x10]
sub ecx, dword [0x49d788]
mov eax, dword [esp + 0x14]
sbb eax, dword [0x49d78c]
push 0
push 0xf4240
push eax
push ecx
call fcn.0047c290
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 + 0x48d0b0]
mov eax, ecx
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x48d0b0]
mov eax, dword [edi + 0x1160]
mulsd xmm1, xmm0
divsd xmm1, qword [0x48d030]
movsd qword [edi + 0x440], xmm1
mov dword [edi + eax*4 + 0x1138], ecx
inc dword [edi + 0x1160]
cmp dword [edi + 0x1160], 0xa
jl 0x424f66
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 0x42507f
sub eax, 1
jne 0x42508d
mov esi, dword [edi + 0x438]
mov eax, dword [esi]
cmp dword [eax + 0xd0], 1
jle 0x42508d
mov edx, dword [esi + 0x20c]
mov ebx, dword [esi + 0x204]
movzx eax, byte [edx + ebx]
cmp eax, 6
ja case.default.0x424fb5
jmp dword [eax*4 + 0x42565c]
movzx edx, byte [edx + ebx + 1]
sub esp, 8
call fcn.00434650
add esp, 8
add dword [esi + 0x20c], 2
jmp case.default.0x424fb5
movzx eax, byte [edx + ebx + 1]
mov byte [eax + esi + 4], 0
add dword [esi + 0x20c], 2
jmp case.default.0x424fb5
movzx eax, byte [edx + ebx + 1]
mov byte [eax + esi + 4], 1
add dword [esi + 0x20c], 2
jmp case.default.0x424fb5
mov al, byte [edx + ebx + 1]
mov byte [esi + 0x210], al
mov al, byte [edx + ebx + 2]
mov byte [esi + 0x211], al
mov al, byte [edx + ebx + 3]
mov byte [esi + 0x212], al
mov al, byte [edx + ebx + 4]
mov byte [esi + 0x213], al
add dword [esi + 0x20c], 5
jmp case.default.0x424fb5
movzx ecx, byte [edx + ebx + 1]
movzx eax, byte [edx + ebx + 2]
shl ecx, 8
add ecx, eax
mov dword [esi + 0x214], ecx
movzx ecx, byte [edx + ebx + 3]
movzx eax, byte [edx + ebx + 4]
shl ecx, 8
add ecx, eax
lea eax, [edx + 5]
mov dword [esi + 0x218], ecx
mov dword [esi + 0x20c], eax
jmp case.default.0x424fb5
lea eax, [edx + 1]
mov dword [esi + 0x20c], eax
jmp 0x42508a
mov eax, dword [esi]
xor ecx, ecx
mov word [eax + 0x434], cx
jmp 0x42508a
mov ecx, dword [edi + 0x438]
call fcn.004160c0
lea ecx, [edi + 0x2c]
movzx eax, word [edi + 0x434]
cmp ax, 2
jne 0x4250aa
mov eax, dword [edi + 0x438]
mov eax, dword [eax + 0x210]
mov dword [ecx], eax
jmp 0x4250b5
cmp ax, 1
je 0x4250b5
call fcn.004279d0
cmp byte [edi + 0x27], 0
je 0x4251d4
cmp word [edi + 0x434], 2
mov ebx, dword [sym.imp.USER32.dll_SetCursorPos]
jne 0x425103
mov ecx, dword [edi + 0x438]
mov eax, dword [ecx + 0x214]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0x218]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx]
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [esp + 0x14]
push dword [esp + 0x14]
call ebx
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 0x425135
test eax, eax
je 0x425139
push edx
push ecx
call ebx
cmp word [edi + 0x434], 2
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov byte [edi + 0x118], 0
jne 0x425165
mov eax, dword [edi + 0x438]
mov ecx, 2
movzx eax, byte [eax + 5]
neg eax
sbb eax, eax
jmp 0x425170
push 1
call esi
movzx ecx, word [edi + 0x434]
movzx eax, ax
test ax, ax
jns 0x42517f
or byte [edi + 0x118], 0x10
cmp cx, 2
jne 0x425195
mov eax, dword [edi + 0x438]
movzx eax, byte [eax + 6]
neg eax
sbb eax, eax
jmp 0x425199
push 2
call esi
movzx eax, ax
test ax, ax
jns 0x4251a8
or byte [edi + 0x118], 0x20
mov bl, byte [edi + 0x27]
lea edx, [edi + 0x2c]
xor esi, esi
cmp byte [edi + 0x26], 0
jbe 0x4251d9
test bl, 1
je 0x4251c6
and byte [edx], 0xcf
mov cl, byte [edi + 0x118]
or byte [edx], cl
movzx eax, byte [edi + 0x26]
inc esi
inc edx
shr bl, 1
cmp esi, eax
jl 0x4251b6
jmp 0x4251d9
call fcn.00425680
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 0x4252c6
and ecx, eax
test ecx, 0xf0f0f0f0
je 0x4252b2
xor esi, esi
cmp byte [edi + 0x26], 0
jbe 0x4252c6
nop
mov word [edi + 0xe8], si
mov al, byte [edi + esi + 0x10c]
mov ebx, dword [edi + 0xec]
test al, 0xf0
je 0x42526e
movzx eax, al
mov dword [edi + 0xec], eax
mov ecx, dword [0x49d5d4]
mov dword [ecx + 0xe4], 0xfffcfff9
mov word [ecx + 0xf4], dx
mov eax, dword [ecx + 0x78]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x42529d
mov ecx, dword [ecx + 0x7c]
add ecx, eax
cmp dword [ecx], 0xffffffff
je 0x42529d
jmp 0x425290
test al, 0xf
je 0x42529d
movzx eax, al
mov dword [edi + 0xec], eax
mov ecx, dword [0x49d5d4]
mov eax, dword [ecx + 0x78]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x42529d
mov ecx, dword [ecx + 0x7c]
add ecx, eax
mov edx, 1
call fcn.00435d70
or edx, 0xffffffff
mov dword [edi + 0xec], ebx
inc esi
movzx eax, byte [edi + 0x26]
cmp esi, eax
jl 0x425220
jmp 0x4252c6
mov eax, dword [edi + 0x78]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x4252c6
mov ecx, dword [edi + 0x7c]
add ecx, eax
call fcn.00435a20
mov ebx, dword [edi + 0x3c]
test ebx, ebx
je 0x42533f
mov esi, dword [edi + 0x1278]
mov eax, 0x400
or word [edi + 0x28], ax
xor eax, eax
mov word [edi + 0x4bc], ax
mov ecx, dword [esi]
test ecx, ecx
jne 0x4252fa
nop
mov ecx, dword [esi + 8]
add esi, 8
test ecx, ecx
je 0x4252f0
mov eax, dword [ecx + 0x2c]
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x2c], 0
cmp dword [esi + 4], 0
je 0x42531c
mov dword [edi + 0x4b8], esi
mov eax, dword [esi + 4]
push ecx
call eax
add esp, 4
movsx eax, word [edi + 0x4bc]
add esi, 8
add ebx, eax
xor eax, eax
mov word [edi + 0x4bc], ax
sub ebx, 1
jne 0x4252e0
mov eax, 0xfbff
and word [edi + 0x28], ax
inc word [edi + 0x1a4]
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ecx, dword [0x49d5d4]
cmp eax, dword [ecx + 0x14]
je 0x425365
cmp eax, dword [ecx + 0xc]
je 0x425365
cmp eax, dword [ecx + 0x10]
je 0x425365
xor eax, eax
jmp 0x42536a
mov eax, 1
mov dword [0x49d7d4], eax
call fcn.004358a0
mov ebx, dword [0x49d5d4]
mov esi, dword [ebx + 0x462]
test esi, esi
je 0x4254b3
nop dword [eax + eax]
mov eax, dword [ebx + 0xd4]
cmp eax, dword [esi + 0xc]
jb 0x4253ce
cmp dword [esi + 4], 0
jne 0x425423
mov eax, dword [esi + 8]
mov dword [ebx + 0xec], eax
mov eax, dword [ebx + 0x6c]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4253c7
mov ecx, dword [ebx + 0x7c]
mov edx, 1
add ecx, eax
call fcn.00435d70
mov dword [esi + 0x20], 1
mov esi, dword [esi]
test esi, esi
jne 0x425390
mov esi, dword [ebx + 0x462]
test esi, esi
je 0x4254b3
xor edi, edi
cmp dword [esi + 0x20], 0
mov eax, dword [esi]
mov dword [esp + 0x10], eax
je 0x42549f
push dword [esi + 8]
call fcn.004646ca
mov eax, dword [esp + 0x14]
add esp, 4
test edi, edi
jne 0x42548e
push esi
mov dword [ebx + 0x462], eax
call fcn.004646ca
mov eax, dword [esp + 0x14]
add esp, 4
jmp 0x4254a5
mov ecx, dword [esi + 0x14]
mov edx, eax
test ecx, ecx
jne 0x425437
mov dword [esi + 0x14], eax
mov ecx, eax
mov edx, dword [ebx + 0xd4]
cmp edx, ecx
jb 0x4253ce
nop dword [eax + eax]
mov eax, dword [esi + 8]
mov dword [ebx + 0xec], eax
mov eax, dword [esi + 0x1c]
mov dword [ebx + 0xf0], eax
mov eax, dword [ebx + 0x6c]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x42546b
mov ecx, dword [ebx + 0x7c]
mov edx, 1
add ecx, eax
call fcn.00435d70
inc dword [esi + 0x1c]
add dword [esi + 0x18], 0xffffffff
je 0x4253c7
mov eax, dword [esi + 0x10]
add dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
cmp dword [ebx + 0xd4], eax
jae 0x425440
jmp 0x4253ce
push esi
mov dword [edi], eax
call fcn.004646ca
mov eax, dword [esp + 0x14]
add esp, 4
jmp 0x4254a5
mov dword [esp + 0x10], esi
mov edi, esi
mov esi, eax
test eax, eax
jne 0x4253e4
mov edi, dword [esp + 0x1c]
mov ecx, dword [edi + 0x84]
test ecx, ecx
je 0x4254c8
test byte [edi + 0x28], 0x10
jne 0x4254c8
call fcn.00435a20
cmp dword [edi + 0x130], 0
je 0x42554b
mov eax, dword [0x49d5d4]
mov dword [esp + 0x10], eax
mov ebx, dword [eax + 0x130]
test ebx, ebx
je 0x425541
mov edi, eax
nop word [eax + eax]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x42552a
mov eax, dword [ebx + 0xc]
mov dword [ebx + 4], 0
mov esi, dword [edi + 0xec]
mov dword [edi + 0xec], eax
mov ax, word [ebx + 0x14]
mov word [edi + 0xe8], ax
mov eax, dword [ebx + 8]
push ecx
push dword [ebx + 0x10]
call eax
add esp, 8
mov dword [edi + 0xec], esi
push ebx
mov ebx, dword [ebx]
call fcn.004646ca
add esp, 4
test ebx, ebx
jne 0x4254f0
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov dword [eax + 0x130], 0
mov eax, dword [0x49d5d4]
mov dword [esp + 0x1c], eax
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x4255ba
mov esi, dword [eax + 0x1278]
xor eax, eax
mov dword [esp + 0x10], eax
test ecx, ecx
jle 0x4255ba
mov ecx, dword [esp + 0x1c]
nop
mov ebx, dword [esi]
test ebx, ebx
jne 0x425580
mov ebx, dword [esi + 8]
add esi, 8
test ebx, ebx
je 0x425576
add esi, 8
test dword [ebx + 0x78], 0x230
je 0x4255b0
cmp dword [ebx + 0xfc], 0
je 0x4255b0
mov eax, dword [ebx + 0x8c]
push ebx
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov dword [ebx + 0xfc], 0
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [ecx + 0x3c]
jl 0x425570
call fcn.004275d0
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 0x4255f6
cmp word [edi + 0x30], ax
je 0x4255fb
call fcn.00426cd0
movzx ecx, word [edi + 0x30]
test cx, cx
je 0x424db7
cmp cx, 1
je 0x42562e
cmp cx, 2
je 0x42562e
cmp cx, 0xfffe
je 0x42562e
cmp cx, 3
je 0x42562e
cmp cx, 0x64
je 0x42562e
mov eax, ecx
cmp cx, 4
jne 0x425653
mov esi, dword [0x49d5d4]
mov eax, dword [esi + 0x68]
mov edx, dword [eax + 8]
mov eax, ecx
test edx, edx
je 0x425653
mov ecx, dword [esi + 0x7c]
add ecx, edx
mov edx, 1
call fcn.00435d70
movzx eax, word [edi + 0x30]
pop edi
pop esi
cwde
pop ebx
mov esp, ebp
pop ebp
ret