Function at 0x49b180
Capabilities:
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x6af761
push eax
mov al, byte [0x21fe666]
mov dword fs:[0], esp
sub esp, 8
cmp al, 0xff
push ebx
push ebp
push esi
push edi
mov esi, ecx
jne 0x49b1fa
lea ebp, [esi + 0x41e0]
push 1
mov ecx, ebp
call fcn.00527270
lea ebx, [esi + 0x47b8]
push 0
mov ecx, ebx
call fcn.00527270
mov eax, dword [esi + 0x2f50]
test eax, eax
lea edi, [esi + 0x4d90]
mov ecx, edi
je 0x49b1ef
push 1
call fcn.00527270
push 1
lea ecx, [esi + 0x2958]
call fcn.00527270
push 0
jmp 0x49b240
push 0
call fcn.00527270
push 0
jmp 0x49b240
mov eax, dword [esi + 0x2f50]
test eax, eax
je 0x49b211
push 1
lea ecx, [esi + 0x2958]
call fcn.00527270
lea ebp, [esi + 0x41e0]
push 0
mov ecx, ebp
call fcn.00527270
lea ebx, [esi + 0x47b8]
push 1
mov ecx, ebx
call fcn.00527270
lea edi, [esi + 0x4d90]
push 0
mov ecx, edi
call fcn.00527270
push 1
lea ecx, [esi + 0x5368]
call fcn.00527270
mov ecx, dword [esi + 0x2f74]
test ecx, ecx
je 0x49b32f
call fcn.004c49d0
cmp eax, 1
jne 0x49b2d4
mov eax, dword [esi + 0x2f78]
dec eax
cmp eax, 3
ja case.default.0x49b26f
jmp dword [eax*4 + 0x49bb44]
call fcn.0059b7b0
jmp case.default.0x49b26f
call fcn.0059b8e0
jmp case.default.0x49b26f
mov eax, dword [esi + 0x2f50]
push eax
call fcn.0059b870
add esp, 4
jmp case.default.0x49b26f
mov ecx, 0x2203adc
call fcn.00531b00
mov ecx, 0x2203adc
lea edi, [esi + 0x2f58]
call fcn.00532dc0
push eax
push 0x6be170
push edi
call fcn.005cd489
add esp, 0xc
mov ecx, esi
call fcn.0049af00
test eax, eax
je case.default.0x49b26f
push edi
call fcn.0059b770
add esp, 4
jmp case.default.0x49b26f
test eax, eax
je 0x49b317
xor ebx, ebx
push ebx
mov ecx, 0x2203adc
mov dword [0x719a58], ebx
call fcn.005325b0
mov edi, dword [esi + 0x2f74]
cmp edi, ebx
mov dword [esi + 0x2f54], ebx
mov dword [esi + 0x2f78], ebx
je 0x49b317
mov ecx, edi
call fcn.004c5470
push edi
call fcn.005cc620
add esp, 4
mov dword [esi + 0x2f74], ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
cmp dword [esi + 0x2f78], 4
jne 0x49b5e1
push 9
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
mov edi, 2
je 0x49b3e6
mov al, byte [esi + 0x2954]
test al, al
jne 0x49b3ed
mov eax, dword [esi + 0x2378]
mov ebx, 1
cmp eax, ebx
mov byte [esi + 0x2954], 1
mov ecx, 0x2203adc
jne 0x49b3a8
call fcn.00532dc0
push eax
lea ecx, [esi + 0x2f58]
push 0x6be170
push ecx
call fcn.005cd489
add esp, 0xc
xor ebp, ebp
push ebp
push ebx
push 0x1f4
mov dword [esi + 0x2378], edi
push 0x3e
jmp 0x49b3d0
call fcn.00532dc0
push eax
lea edx, [esi + 0x24]
push 0x6be170
push edx
call fcn.005cd489
add esp, 0xc
xor ebp, ebp
push ebp
push ebx
push 0x96
mov dword [esi + 0x2378], ebx
push 0x19
mov ecx, 0x2203adc
call fcn.00532400
mov ecx, 0x2203adc
call fcn.005347d0
jmp 0x49b3ef
mov byte [esi + 0x2954], 0
xor ebp, ebp
lea ecx, [esi + 0x17c8]
call fcn.00527790
test eax, eax
je 0x49b472
mov eax, dword [esi + 0x2378]
cmp eax, edi
jne 0x49b41e
mov ecx, 0x2203adc
call fcn.00532dc0
push eax
push 0x6be170
lea eax, [esi + 0x24]
push eax
jmp 0x49b43a
cmp eax, 1
jne 0x49b442
mov ecx, 0x2203adc
call fcn.00532dc0
push eax
push 0x6be170
lea ecx, [esi + 0x2f58]
push ecx
call fcn.005cd489
add esp, 0xc
mov ecx, 0x2203adc
mov dword [esi + 0x2378], ebp
call fcn.00531b00
mov ecx, esi
call fcn.0049b000
test eax, eax
je 0x49b481
lea edx, [esi + 0x24]
push edx
lea eax, [esi + 0x2f58]
push eax
call fcn.0059c8d0
add esp, 8
jmp 0x49b481
lea ecx, [esi + 0x1da0]
call fcn.00527790
test eax, eax
je 0x49b49e
mov ecx, 0x2203adc
push ebp
mov dword [0x719a58], ebp
call fcn.005325b0
mov dword [esi + 0x2f54], ebp
mov dword [esi + 0x2f78], ebp
cmp dword [0x2203690], edi
jne 0x49b5c9
mov eax, dword [esi + 0x41d8]
mov ecx, dword [esi + 0x41dc]
mov edi, dword [0x71c2a4]
mov ebx, dword [0x71c2a8]
add eax, 0xaa
lea edx, [eax + 0x18]
add ecx, 0x8c
cmp edi, edx
jl 0x49b5c9
lea ebp, [eax + 0xec]
cmp edi, ebp
jg 0x49b556
lea ebp, [ecx + 0x3d]
cmp ebx, ebp
jl 0x49b556
lea ebp, [ecx + 0x5b]
cmp ebx, ebp
jg 0x49b556
cmp dword [esi + 0x2378], 2
jne 0x49b515
mov ecx, 0x2203adc
call fcn.00532dc0
push eax
lea ecx, [esi + 0x24]
push 0x6be170
push ecx
call fcn.005cd489
add esp, 0xc
push 0
push 1
push 0x96
push 0x19
mov ecx, 0x2203adc
call fcn.00532400
mov ecx, 0x2203adc
mov dword [esi + 0x2378], 1
call fcn.005347d0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
xor ebp, ebp
cmp edi, edx
jl 0x49b5c9
add eax, 0xec
cmp edi, eax
jg 0x49b5c9
lea edx, [ecx + 0x81]
cmp ebx, edx
jl 0x49b5c9
add ecx, 0xc1
cmp ebx, ecx
jg 0x49b5c9
cmp dword [esi + 0x2378], 1
jne 0x49b5a1
mov ecx, 0x2203adc
call fcn.00532dc0
push eax
lea eax, [esi + 0x2f58]
push 0x6be170
push eax
call fcn.005cd489
add esp, 0xc
push ebp
push 1
push 0x1f4
push 0x3e
mov ecx, 0x2203adc
call fcn.00532400
mov ecx, 0x2203adc
mov dword [esi + 0x2378], 2
call fcn.005347d0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov al, byte [esi + 0x2955]
test al, al
je 0x49b619
lea ecx, [esi + 0x237c]
call fcn.00527790
test eax, eax
je 0x49b601
mov byte [esi + 0x2955], 0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov ecx, dword [esi + 0x41dc]
mov edx, dword [esi + 0x41d8]
push ecx
push edx
lea ecx, [esi + 0x68]
call fcn.00527450
test eax, eax
je 0x49b657
push 1
mov ecx, 0x8655e8
call fcn.004d70a0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov eax, dword [esi + 0x41dc]
mov ecx, dword [esi + 0x41d8]
push eax
push ecx
lea ecx, [esi + 0x640]
call fcn.00527450
test eax, eax
je 0x49b698
push 2
mov ecx, 0x8655e8
call fcn.004d70a0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov edx, dword [esi + 0x41dc]
mov eax, dword [esi + 0x41d8]
push edx
push eax
lea ecx, [esi + 0xc18]
call fcn.00527450
test eax, eax
je 0x49b6d9
push 3
mov ecx, 0x8655e8
call fcn.004d70a0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov ecx, dword [esi + 0x41dc]
mov edx, dword [esi + 0x41d8]
push ecx
push edx
lea ecx, [esi + 0x11f0]
call fcn.00527450
test eax, eax
je 0x49b71a
push 4
mov ecx, 0x8655e8
call fcn.004d70a0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov ecx, ebp
call fcn.00527790
test eax, eax
je 0x49b7ec
push 0x447a0000
push 0x22094c8
push 0x1e
push 0
mov ecx, 0x22071e0
call fcn.0053b0e0
mov dword [0x864e00], 0
xor eax, eax
mov ebx, 1
mov dword [0x719a58], ebx
mov dword [esi + 0x2f78], 4
mov dword [esi + 0x2f54], ebx
lea ebp, [esi + 0x2f58]
mov ecx, ebp
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov byte [ecx + 0x18], al
push ebx
mov ecx, 0x2203adc
call fcn.005325b0
mov ecx, 0x2203adc
call fcn.005347d0
push 0
push ebx
push 0x96
push 0x19
mov ecx, 0x2203adc
mov dword [esi + 0x2378], ebx
call fcn.00532400
xor eax, eax
lea edi, [esi + 0x24]
mov ecx, 0x10
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
xor edx, edx
mov dword [ebp], edx
mov dword [ebp + 4], edx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], edx
pop edi
mov dword [ebp + 0x14], edx
pop esi
mov byte [ebp + 0x18], dl
pop ebp
mov eax, ebx
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov ecx, ebx
call fcn.00527790
test eax, eax
je 0x49b876
mov eax, dword [esi + 0x2f74]
test eax, eax
jne 0x49b93a
push 0xc48
mov dword [esi + 0x2f78], 1
call fcn.005cc96d
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
test edi, edi
mov dword [esp + 0x20], 0
je 0x49b932
push 0x2715
call fcn.0041d4a0
add esp, 4
push eax
push 0xff
push 0xff
push 0xff
push 1
mov ecx, edi
call fcn.004c4d10
pop edi
mov dword [esi + 0x2f74], eax
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov ecx, edi
call fcn.00527790
test eax, eax
je 0x49b8e9
mov eax, dword [esi + 0x2f74]
test eax, eax
jne 0x49b93a
mov eax, dword [esi + 0x2f50]
push eax
mov ecx, 0x22012e8
call fcn.0043b3f0
test eax, eax
je 0x49b93a
add eax, 4
push eax
push 0x71a3c0
mov dword [esi + 0x2f78], 3
call fcn.0041d3b0
push 0xc48
call fcn.005cc96d
mov edi, eax
add esp, 0xc
mov dword [esp + 0x14], edi
test edi, edi
mov dword [esp + 0x20], 1
je 0x49b932
push 0x1f62
jmp 0x49b837
lea ecx, [esi + 0x5368]
call fcn.00527790
test eax, eax
je 0x49b952
mov eax, dword [esi + 0x2f74]
test eax, eax
jne 0x49b93a
mov ebx, 2
push 0xc48
mov dword [esi + 0x2f78], ebx
call fcn.005cc96d
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
test edi, edi
mov dword [esp + 0x20], ebx
je 0x49b932
push 0x2722
jmp 0x49b837
xor eax, eax
mov dword [esi + 0x2f74], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
lea ecx, [esi + 0x2958]
call fcn.00527790
test eax, eax
je 0x49b980
mov byte [esi + 0x2955], 1
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
fild dword [0x22012f4]
push 0x41400000
push ecx
lea edi, [esi + 0x2f7c]
mov ecx, edi
fstp dword [esp]
call fcn.0052ad90
mov ecx, dword [esi + 0x41dc]
mov edx, dword [esi + 0x41d8]
push ecx
push edx
mov ecx, edi
call fcn.0052bc80
test ah, 2
jne 0x49b968
mov eax, dword [esi + 0x41dc]
mov ecx, dword [esi + 0x41d8]
push eax
push ecx
lea ecx, [esi + 0x59b0]
call fcn.0052bc80
test ah, 2
jne 0x49b968
cmp dword [0x2203690], 1
jne 0x49bac9
mov eax, dword [0x2203694]
xor ebp, ebp
cmp eax, ebp
jne 0x49bac9
mov ebx, dword [0x71c2a8]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
mov edi, edi
mov ecx, dword [0x2201304]
test ecx, ecx
jne 0x49ba0e
xor eax, eax
jmp 0x49ba18
mov eax, dword [0x2201308]
sub eax, ecx
sar eax, 2
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jge 0x49bac9
mov edx, ecx
push edx
mov ecx, 0x22012fc
call fcn.004bf5f0
mov edi, eax
test edi, edi
je 0x49bac0
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fcomp dword [esi + 0x4184]
fnstsw ax
test ah, 5
jnp 0x49bac0
mov eax, dword [esi + 0x41d8]
mov edx, dword [0x71c2a4]
lea ecx, [eax + 0x112]
cmp edx, ecx
jl 0x49bab5
add eax, 0x230
mov ecx, edx
cmp ecx, eax
jg 0x49bab5
mov edx, dword [esi + 0x41dc]
lea eax, [edx + ebp]
lea ecx, [eax + 0x6e]
cmp ebx, ecx
jl 0x49bab5
add eax, 0x80
cmp ebx, eax
jg 0x49bab5
push 0x447a0000
push 0x22094c8
push 0x1e
push 0
mov ecx, 0x22071e0
call fcn.0053b0e0
mov edx, dword [edi]
mov dword [esi + 0x2f50], edx
mov ebx, dword [0x71c2a8]
add ebp, 0x1b
cmp ebp, 0x144
jg 0x49bac9
inc dword [esp + 0x10]
jmp 0x49ba00
lea ecx, [esi + 0x6c0c]
call fcn.00527790
test eax, eax
je 0x49baf0
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
cmp dword [0x2203690], 1
jne 0x49bb2f
mov eax, dword [esi + 0x41d8]
mov ecx, dword [0x71c2a4]
cmp ecx, eax
jl 0x49bb2f
add eax, 0x24a
cmp ecx, eax
jg 0x49bb2f
mov esi, dword [esi + 0x41dc]
mov eax, dword [0x71c2a8]
cmp eax, esi
jl 0x49bb2f
add esi, 0x1f4
cmp eax, esi
jle 0x49b968
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret