Function at 0x40fa88
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10dc
call fcn.0041afa0
push ebx
push esi
push edi
mov esi, ecx
push 0
push 0
mov eax, dword [esi]
push 0x147
push 0xbcd
call dword [eax + 0xe0]
lea ebx, [eax + eax*2]
xor eax, eax
shl ebx, 3
push 0xbf4
mov ecx, esi
cmp dword [ebx + 0x404ab0], 3
mov dword [ebp - 0x34], ebx
sete al
mov dword [ebp - 8], eax
mov eax, dword [esi]
call dword [eax + 0xb0]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
push 0xbc4
shr edi, 1
mov ecx, esi
and edi, 1
call dword [eax + 0xb0]
mov dword [esi + 0x528], eax
mov eax, dword [ebx + 0x404ab0]
mov dword [esi + 0x52c], eax
mov eax, dword [ebx + 0x404ab4]
mov dword [esi + 0x530], eax
xor eax, eax
cmp dword [0x41b4bc], eax
setne al
mov dword [esi + 0x534], eax
cmp dword [esi + 0x5b0], 0
jle 0x40fb3a
cmp dword [0x41b4bc], 0
je 0x40fb3a
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
jmp 0x40fb3c
xor eax, eax
mov dword [esi + 0x560], eax
mov eax, dword [esi]
push 0xbf5
mov ecx, esi
call dword [eax + 0xb0]
test eax, eax
je 0x40fb67
cmp dword [0x41b4bc], 0
je 0x40fb67
mov dword [ebp - 0x1c], 0x200
jmp 0x40fb6b
and dword [ebp - 0x1c], 0
mov eax, dword [esi]
push 0xbf6
mov ecx, esi
call dword [eax + 0xb0]
test eax, eax
je 0x40fb91
xor ebx, ebx
cmp dword [0x41b4bc], ebx
je 0x40fb93
mov dword [ebp - 4], 0x400
jmp 0x40fb96
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 8], ebx
jne 0x40fc29
mov eax, dword [esi]
push 0xbf1
mov ecx, esi
call dword [eax + 0xb0]
test eax, eax
je 0x40fc29
cmp edi, ebx
jne 0x40fc29
mov dword [ebp - 0xc], 8
xor ebx, ebx
xor ecx, ecx
cmp dword [esi + 0x658], ecx
je 0x40fbd5
cmp dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], 0x20
jne 0x40fbd8
mov dword [ebp - 0x14], ecx
cmp dword [esi + 0x870], ecx
jne 0x40fbff
cmp dword [0x41b4bc], ecx
je 0x40fbff
mov eax, dword [esi + 0x52c]
cmp eax, 2
je 0x40fbff
cmp eax, 3
mov dword [ebp - 0x10], 0x6000
jne 0x40fc02
mov dword [ebp - 0x10], ecx
cmp edi, ecx
je 0x40fc62
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ah, 0x80
je 0x40fc60
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ah, 0x80
je 0x40fc60
mov dword [ebp - 0x18], 0x8000000
jmp 0x40fc65
cmp dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
je 0x40fbbd
mov eax, dword [esi]
push 0xbf7
mov ecx, esi
call dword [eax + 0xb0]
test eax, eax
je 0x40fbbd
mov ebx, dword [esi + 0x5cc]
mov eax, 0x800
neg ebx
sbb ebx, ebx
and ebx, eax
add ebx, eax
jmp 0x40fbbf
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov eax, dword [esi + 0x648]
test eax, eax
je 0x40fc7a
dec eax
neg eax
sbb eax, eax
and eax, 0x40
add eax, 0x40
mov ecx, dword [esi + 0x5bc]
mov edx, dword [esi + 0x5e4]
neg ecx
sbb ecx, ecx
push 1
and ecx, 0x100
neg edx
sbb edx, edx
and edx, 0x10
or ecx, edx
neg edi
sbb edi, edi
and edi, 0x10000000
or ecx, edi
xor edi, edi
or ecx, dword [esi + 0x598]
push edi
push 0xbc1
or ecx, eax
or ecx, dword [ebp - 0x18]
or ecx, dword [ebp - 0x10]
or ecx, dword [ebp - 0x14]
or ecx, ebx
or ecx, dword [ebp - 0xc]
or ecx, dword [ebp - 4]
or ecx, dword [ebp - 0x1c]
mov dword [esi + 0x538], ecx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xa0]
shl eax, 0x14
mov dword [esi + 0x53c], eax
mov eax, dword [esi + 0x574]
shl eax, 0x14
mov dword [esi + 0x544], eax
mov eax, dword [esi + 0x578]
mov dword [esi + 0x540], eax
mov eax, dword [esi + 0x57c]
mov dword [esi + 0x548], eax
mov eax, dword [esi + 0x580]
mov dword [esi + 0x54c], eax
mov eax, dword [esi + 0x584]
shl eax, 0xa
mov dword [esi + 0x550], eax
mov eax, dword [esi + 0x588]
shl eax, 0xa
mov dword [esi + 0x554], eax
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x558], eax
mov dword [esi + 0xae8], edi
mov dword [esi + 0xae4], edi
mov ecx, 0x43a
xor eax, eax
lea edi, [esi + 0xb28]
mov dword [esi + 0x55c], 0x464
push 0xbbe
rep stosd dword es:[edi], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xa8]
push eax
call dword [0x41b484]
mov ebx, eax
mov eax, dword [esi]
inc ebx
push 0xbbf
mov ecx, esi
mov dword [ebp - 0x30], ebx
call dword [eax + 0xa8]
push eax
call dword [0x41b484]
inc eax
cmp ebx, 1
jle 0x4105e1
cmp dword [ebp - 8], 0
jne 0x40fdae
cmp eax, 1
jle 0x4105e1
lea eax, [ebx + ebx]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [ebp - 0xc], eax
mov ax, word [0x41b394]
pop ecx
mov word [ebp - 0x10dc], ax
mov ecx, 0x40f
xor eax, eax
lea edi, [ebp - 0x10da]
cmp dword [esi + 0x5f8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 4], 1
jne 0x40fdf6
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ah, 0x80
je 0x40fe01
mov dword [ebp - 0x18], 1
xor edi, edi
jmp 0x40fe45
xor edi, edi
cmp dword [esi + 0x650], edi
je 0x40fe2a
test byte [ebp + 8], 4
je 0x40fe2a
cmp dword [ebp - 8], edi
je 0x40fe20
xor eax, eax
cmp dword [esi + 0x5f4], edi
jmp 0x40fe37
xor eax, eax
cmp dword [esi + 0x5f0], edi
jmp 0x40fe37
cmp dword [ebp - 8], edi
je 0x40fe3c
xor eax, eax
cmp dword [esi + 0x644], edi
sete al
jmp 0x40fe42
mov eax, dword [esi + 0x5f8]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
push ebx
push dword [ebp - 0xc]
mov ecx, esi
push 0xbbe
call dword [eax + 0x94]
test eax, eax
je 0x40fe80
cmp dword [ebp - 8], edi
jne 0x40feaf
mov eax, dword [esi]
lea ecx, [ebp - 0x10dc]
push 0x820
push ecx
push 0xbbf
mov ecx, esi
call dword [eax + 0x94]
test eax, eax
jne 0x40feaf
push esi
lea ecx, [ebp - 0x94]
call fcn.00415b30
mov edx, dword [eax]
push edi
push 0x404cc0
push 0x404ca8
mov ecx, eax
call dword [edx + 0x14c]
lea ecx, [ebp - 0x94]
call fcn.00415b80
mov dword [ebp - 4], edi
mov eax, dword [esi]
mov ebx, 0x41b380
push ebx
push edi
push 0xc
push 0xbcc
mov ecx, esi
call dword [eax + 0xe0]
mov eax, dword [esi]
push ebx
push edi
push 0xc
push 0xbc7
mov ecx, esi
call dword [eax + 0xe0]
lea ecx, [ebp - 0x2c]
call fcn.0041a110
lea ecx, [ebp - 0x44]
call fcn.0041a110
lea ecx, [ebp - 0x3c]
call fcn.0041a110
lea ecx, [ebp - 0x4c]
call fcn.0041a110
push dword [0x41b43c]
lea ecx, [ebp - 0x2c]
push dword [ebp - 0xc]
call fcn.0041a190
cmp dword [ebp - 8], edi
jne 0x40ff1f
lea eax, [ebp - 0x10dc]
lea ecx, [ebp - 0x44]
push eax
call fcn.0041a340
cmp dword [ebp - 0x20], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
je 0x40ffda
mov eax, dword [esi]
mov edi, 0xbf2
push edi
mov ecx, esi
call dword [eax + 0xa8]
push eax
call dword [0x41b484]
mov ebx, eax
mov eax, dword [esi]
push 0xbf3
mov ecx, esi
mov dword [ebp - 0x24], ebx
call dword [eax + 0xa8]
push eax
call dword [0x41b484]
inc ebx
mov dword [ebp - 0x1c], eax
lea eax, [ebx + ebx]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
inc eax
add eax, eax
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
pop ecx
push ebx
mov ecx, esi
push dword [ebp - 0x10]
push edi
call dword [eax + 0x94]
cmp eax, dword [ebp - 0x24]
jne 0x40ffd6
mov edi, dword [ebp - 0x1c]
mov edx, dword [esi]
mov ecx, esi
lea eax, [edi + 1]
push eax
push dword [ebp - 0x14]
push 0xbf3
call dword [edx + 0x94]
cmp eax, edi
jne 0x40ffd6
push dword [0x41b43c]
lea ecx, [ebp - 0x3c]
push dword [ebp - 0x10]
call fcn.0041a190
push dword [0x41b43c]
lea ecx, [ebp - 0x4c]
push dword [ebp - 0x14]
call fcn.0041a190
jmp 0x40ffda
and dword [ebp - 4], 0
xor ebx, ebx
cmp dword [ebp - 4], ebx
je 0x410007
lea eax, [ebp - 0x4c]
lea ecx, [esi + 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [esi + 0x528]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00408000
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x41001b
mov eax, dword [esi]
push 0x404ca0
push 0xbc7
mov ecx, esi
call dword [eax + 0x98]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
lea edi, [ecx + eax*4]
lea eax, [edi + edi]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp dword [ebp - 4], ebx
pop ecx
mov dword [ebp - 0x1c], eax
je 0x4101e0
cmp dword [ebp - 0x18], ebx
je 0x410180
test byte [ebp + 8], 2
jne 0x410180
push dword [0x41b46c]
lea ecx, [ebp - 0x2c]
push dword [0x41b3c0]
push edi
push eax
call fcn.0041a1f0
cmp dword [esi + 0x52c], 2
jne 0x41007b
push ebx
push 0x2b
call fcn.004165b0
pop ecx
mov dword [ebp + 8], eax
pop ecx
jmp 0x41008b
cmp dword [esi + 0x564], ebx
je 0x410088
push ebx
push 0x41
jmp 0x41006f
mov dword [ebp + 8], ebx
mov eax, dword [esi + 0x538]
lea ebx, [esi + 0x528]
mov dword [ebp - 0x24], eax
xor eax, eax
cmp dword [ebx + 4], 3
mov edi, dword [esi + 0x650]
push esi
lea ecx, [ebp - 0x9c]
setne al
dec eax
and eax, 0xc
add eax, 0x939
push eax
call fcn.004171b0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10dc]
mov dword [ebp - 0x5c], eax
lea eax, [esi + 0x568]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 8]
neg eax
sbb eax, eax
mov dword [ebp - 0x54], ebx
not eax
and eax, ecx
lea ecx, [ebp - 0x9c]
push eax
mov dword [ebp - 0x50], edi
push dword [ebp - 0x1c]
mov dword [ebp - 0x9c], 0x4015cc
call fcn.00414040
lea ecx, [ebp - 0x9c]
mov edi, eax
call fcn.00417200
mov eax, edi
dec eax
je 0x410149
sub eax, 0xc20
je 0x41013c
xor eax, eax
cmp dword [esi + 0x650], eax
mov dword [ebp - 4], eax
je 0x4101e0
cmp dword [ebp - 8], eax
jne 0x4101e0
mov dword [esi + 0x638], eax
jmp 0x4101e0
and dword [ebp - 4], 0
push 1
mov ecx, esi
call fcn.00410d68
cmp dword [ebp - 4], 0
je 0x4101e0
cmp dword [ebp - 8], 0
je 0x410180
mov eax, dword [ebp - 0x24]
cmp dword [esi + 0x538], eax
je 0x410180
lea eax, [ebp - 0x4c]
lea ecx, [esi + 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x44]
push ebx
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00408000
mov dword [ebp - 4], eax
xor ebx, ebx
cmp dword [ebp - 4], ebx
je 0x4101e0
cmp dword [ebp - 8], ebx
lea edi, [esi + 0x568]
je 0x41019e
push dword [ebp - 0xc]
mov ecx, edi
call fcn.004066a0
jmp 0x4101af
lea eax, [ebp - 0x10dc]
mov ecx, edi
push eax
push dword [ebp - 0xc]
call fcn.00406660
cmp eax, ebx
je 0x4101bb
push ebx
mov ecx, esi
call fcn.0040e191
cmp dword [ebp - 0x20], ebx
je 0x4101d9
push dword [ebp - 0x14]
mov ecx, edi
push dword [ebp - 0x10]
call fcn.004066d0
test eax, eax
je 0x4101d9
push ebx
mov ecx, esi
call fcn.0040e1db
mov ecx, edi
call fcn.00406220
mov eax, dword [0x41b3f0]
xor edi, edi
imul eax, dword [ebp - 0x30]
add eax, 0x1040
cmp dword [ebp - 4], edi
je 0x41044c
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, edi
pop ecx
mov dword [esi + 0xb1c], eax
je 0x41044c
cmp dword [esi + 0x86c], edi
je 0x410223
push edi
push dword [ebp - 0xc]
call fcn.00418700
pop ecx
pop ecx
jmp 0x410239
cmp dword [0x41b4bc], edi
je 0x410236
push edi
push dword [ebp - 0xc]
call fcn.00418780
jmp 0x41021f
mov eax, dword [ebp - 0xc]
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
push eax
push 0x404c94
push dword [esi + 0xb1c]
call edi
add esp, 0xc
cmp dword [ebp - 8], 0
mov ebx, eax
jne 0x4102a8
cmp dword [esi + 0x86c], 0
je 0x410273
lea eax, [ebp - 0x10dc]
push 0
push eax
call fcn.00418700
pop ecx
pop ecx
jmp 0x410292
cmp dword [0x41b4bc], 0
je 0x41028c
lea eax, [ebp - 0x10dc]
push 0
push eax
call fcn.00418780
jmp 0x41026f
lea eax, [ebp - 0x10dc]
push eax
mov eax, dword [esi + 0xb1c]
add eax, ebx
push 0x404c84
push eax
call edi
add esp, 0xc
add ebx, eax
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x410302
mov edx, dword [0x41b4bc]
test edx, edx
je 0x4102be
mov ax, word [ecx]
jmp 0x4102c2
movsx ax, byte [ecx]
test ax, ax
je 0x410302
cmp dword [esi + 0x86c], 0
je 0x4102dc
push 0
push ecx
call fcn.00418700
pop ecx
pop ecx
jmp 0x4102ec
test edx, edx
je 0x4102ea
push 0
push ecx
call fcn.00418780
jmp 0x4102d8
mov eax, ecx
push eax
mov eax, dword [esi + 0xb1c]
add eax, ebx
push 0x404c74
push eax
call edi
add esp, 0xc
add ebx, eax
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x41035c
mov edx, dword [0x41b4bc]
test edx, edx
je 0x410318
mov ax, word [ecx]
jmp 0x41031c
movsx ax, byte [ecx]
test ax, ax
je 0x41035c
cmp dword [esi + 0x86c], 0
je 0x410336
push 0
push ecx
call fcn.00418700
pop ecx
pop ecx
jmp 0x410346
test edx, edx
je 0x410344
push 0
push ecx
call fcn.00418780
jmp 0x410332
mov eax, ecx
push eax
mov eax, dword [esi + 0xb1c]
add eax, ebx
push 0x404c64
push eax
call edi
add esp, 0xc
add ebx, eax
cmp dword [esi + 0x86c], 0
je 0x410379
mov eax, dword [ebp - 0x34]
push 0
push dword [eax + 0x404aa4]
call fcn.00418800
pop ecx
pop ecx
jmp 0x410382
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x404aa4]
push eax
mov eax, dword [esi + 0xb1c]
add eax, ebx
push 0x404c58
push eax
call edi
add esp, 0xc
add ebx, eax
test byte [esi + 0x539], 0x1e
je 0x41043a
mov eax, dword [esi + 0xb1c]
push 0x404c50
add eax, ebx
push eax
call edi
pop ecx
add ebx, eax
cmp dword [ebp - 8], 0
pop ecx
jne 0x4103ec
test byte [esi + 0x539], 2
je 0x4103dc
mov eax, dword [esi + 0xb1c]
push 0x404c48
add eax, ebx
push eax
call edi
pop ecx
add ebx, eax
pop ecx
test byte [esi + 0x539], 4
je 0x410426
push 0x404c3c
jmp 0x410417
test byte [esi + 0x539], 8
je 0x410409
mov eax, dword [esi + 0xb1c]
push 0x404c34
add eax, ebx
push eax
call edi
pop ecx
add ebx, eax
pop ecx
test byte [esi + 0x539], 0x10
je 0x410426
push 0x404c2c
mov eax, dword [esi + 0xb1c]
add eax, ebx
push eax
call edi
pop ecx
add ebx, eax
pop ecx
mov eax, dword [esi + 0xb1c]
push 0x404c28
add eax, ebx
push eax
call edi
pop ecx
add ebx, eax
pop ecx
mov eax, dword [esi + 0xb1c]
push 0x404c20
add eax, ebx
push eax
call edi
pop ecx
pop ecx
push dword [ebp - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor ebx, ebx
add esp, 0x10
cmp dword [ebp - 4], ebx
je 0x4105a2
mov ecx, dword [esi + 0x538]
mov eax, dword [esi]
push 1
shr ecx, 0x1c
pop edi
and ecx, edi
push ecx
push ebx
push 0x448
push 0xbcc
mov ecx, esi
call dword [eax + 0xe0]
mov ecx, esi
call fcn.0040e31c
mov eax, dword [esi]
push 0x41b380
push 0xbce
mov ecx, esi
call dword [eax + 0x98]
mov eax, dword [esi + 0x65c]
cmp eax, edi
je 0x41050c
cmp eax, ebx
jne 0x4104cc
cmp dword [ebp - 8], ebx
jne 0x41050c
lea ecx, [esi + 0x38]
call fcn.00408360
test eax, eax
jne 0x41050c
push ebx
push 0x12c
push 0x64
mov dword [esi + 0xb00], edi
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_SetTimer]
cmp dword [esi + 0x63c], ebx
je 0x41052b
push 0x404c0c
mov ecx, esi
push dword [esi + 0x634]
push edi
call fcn.004122e0
jmp 0x41052b
cmp dword [esi + 0x65c], edi
jne 0x410521
cmp dword [ebp - 8], ebx
jne 0x410521
lea ecx, [esi + 0x38]
call fcn.00408360
mov ecx, esi
call fcn.004105ea
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
je 0x4105a2
mov edi, dword [esi + 0x538]
mov ebx, dword [esi]
shr edi, 0x1c
push 0
push 0x1d
and edi, 1
call fcn.00417fc0
neg edi
sbb edi, edi
pop ecx
and edi, 0xbf8
pop ecx
inc edi
push eax
push edi
mov ecx, esi
call dword [ebx + 0x98]
push 1
mov ecx, esi
call fcn.0040efe2
mov eax, dword [0x41b53c]
cmp al, 6
jb 0x4105bc
cmp eax, 0x80000000
jae 0x4105bc
call fcn.004188c0
test eax, eax
jne 0x4105bc
push 3
push 0x7544
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_DrawMenuBar]
jmp 0x4105bc
mov eax, dword [esi + 0xb1c]
add esi, 0xb1c
cmp eax, ebx
je 0x4105bc
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
and dword [esi], 0
pop ecx
lea ecx, [ebp - 0x4c]
call fcn.0041a140
lea ecx, [ebp - 0x3c]
call fcn.0041a140
lea ecx, [ebp - 0x44]
call fcn.0041a140
lea ecx, [ebp - 0x2c]
call fcn.0041a140
mov eax, dword [ebp - 4]
jmp 0x4105e3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4