Function at 0x438fc0
Capabilities:
Check for time delay via queryperformancecounter
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push edi
test bl, bl
je 0x43907f
lea edi, [esi + 0x120]
push edi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [edi]
mov edi, dword [edi + 4]
mov ecx, eax
sub ecx, dword [esi + 0x128]
mov edx, edi
sbb edx, dword [esi + 0x12c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
fild qword [esp + 0x10]
fild qword [esi + 0x118]
mov dword [esi + 0x128], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x264]
fdivp st(1)
mov ecx, esi
mov dword [esi + 0x12c], edi
fstp qword [esi + 0xca0]
fld qword [esi + 0xcd8]
fmul qword [esi + 0xca0]
fsub qword [esi + 0xcb0]
fst qword [esi + 0xcb8]
fld st(0)
fadd qword [esi + 0xca8]
fst qword [esi + 0xcc0]
fsub qword [esi + 0xca8]
fsubrp st(1)
fstp qword [esi + 0xcb0]
fld qword [esi + 0xcc0]
fstp qword [esi + 0xca8]
call edx
fcomp qword [0x4872b0]
fnstsw ax
test ah, 1
jne 0x43907f
fldz
fstp qword [esi + 0xca0]
push 1
push 0
push 0
push 0
lea edi, [esi + 0x140]
push edi
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x43910b
jmp 0x4390a0
cmp dword [esi + 0xb94], 0
je 0x4390e7
mov eax, dword [esi + 0xb90]
mov ebx, dword [eax]
mov dword [esp + 0xc], eax
cmp ebx, eax
je 0x4390f5
lea esp, [esp]
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
push edi
call edx
test eax, eax
jne 0x4390dd
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
mov ebx, dword [ebx]
cmp ebx, dword [esp + 0xc]
jne 0x4390c0
jmp 0x4390f5
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x4390a0
mov ebx, dword [ebp + 8]
cmp byte [esi + 0x84c], 0
je 0x439175
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0xffff8000
test cx, ax
jne 0x43912f
mov byte [esi + 0x84c], 0
jmp 0x439175
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esp + 0x14]
sub eax, dword [esi + 0x848]
mov ecx, dword [esp + 0x10]
sub ecx, dword [esi + 0x844]
mov edx, dword [esi + 0xc58]
push 5
push 0
push 0
push eax
push ecx
mov byte [esi + 0x111], 1
mov eax, dword [edx]
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov byte [esi + 0x111], 0
push ebx
push esi
call fcn.00439460
cmp byte [esi + 0x8b0], 0
jne 0x43918f
mov al, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
mov ecx, esi
call fcn.00439e20
cmp byte [esi + 0x110], 0
je 0x4391cd
mov edi, dword [esi + 0xc58]
cmp edi, dword [esi + 0xc5c]
je 0x4391c6
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi]
push 5
push ecx
call ebx
add edi, 4
cmp edi, dword [esi + 0xc5c]
jne 0x4391b4
mov byte [esi + 0x110], 0
add dword [esi + 0x8a8], 1
adc dword [esi + 0x8ac], 0
call fcn.00461b63
mov ebx, eax
sub ebx, dword [esi + 0xc68]
mov eax, dword [esi + 0x8bc]
mov dword [esp + 0xc], ebx
cmp eax, 2
jne 0x439349
mov eax, dword [esi + 0x8b8]
cdq
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
call fcn.00461b63
cdq
push 0
mov edi, edx
mov edx, dword [0x4aa06c]
push 0x3e8
mov ebx, eax
mov eax, dword [0x4aa068]
push edx
push eax
call fcn.00465600
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push ecx
push edx
push eax
call fcn.00465640
sub ebx, eax
mov eax, dword [esi + 0xc68]
sbb edi, edx
cdq
sub ebx, eax
mov eax, dword [esp + 0x10]
sbb edi, edx
mov edx, dword [esp + 0x14]
push edx
push eax
push 0
push 0x7d0
call fcn.00465640
cmp edi, edx
jl 0x439298
jg 0x43926d
cmp ebx, eax
jb 0x439298
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
push edi
push ebx
call fcn.00465600
push 0
push 0x3e8
push edx
push eax
call fcn.00465640
add dword [0x4aa068], eax
adc dword [0x4aa06c], edx
call fcn.00461b63
mov ecx, dword [0x4aa068]
cdq
mov ebx, eax
mov eax, dword [esi + 0xc68]
mov edi, edx
cdq
push 0
sub ebx, eax
mov eax, dword [0x4aa06c]
push 0x3e8
push eax
push ecx
sbb edi, edx
call fcn.00465600
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push ecx
push edx
push eax
call fcn.00465640
cmp edi, edx
jg 0x439332
jl 0x4392e1
cmp ebx, eax
jae 0x439332
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00461b63
cdq
mov ebx, eax
mov eax, dword [esi + 0xc68]
mov edi, edx
cdq
sub ebx, eax
mov eax, dword [0x4aa068]
push 0
sbb edi, edx
mov edx, dword [0x4aa06c]
push 0x3e8
push edx
push eax
call fcn.00465600
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push ecx
push edx
push eax
call fcn.00465640
cmp edi, edx
jl 0x4392e1
jg 0x439332
cmp ebx, eax
jb 0x4392e1
add dword [0x4aa068], 1
mov ebx, dword [esp + 0xc]
adc dword [0x4aa06c], 0
jmp 0x4393f5
test eax, eax
jne 0x4393f5
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x10]
sub eax, dword [esi + 0x120]
mov ecx, dword [esp + 0x14]
sbb ecx, dword [esi + 0x124]
push 0
push 0x3e8
push ecx
push eax
call fcn.00465600
mov ecx, dword [esi + 0x11c]
push ecx
mov ecx, dword [esi + 0x118]
push ecx
push edx
push eax
call fcn.00465640
test edx, edx
jg 0x4393f5
jl 0x43939e
cmp eax, 4
ja 0x4393f5
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call edi
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x10]
sub eax, dword [esi + 0x120]
mov ecx, dword [esp + 0x14]
sbb ecx, dword [esi + 0x124]
push 0
push 0x3e8
push ecx
push eax
call fcn.00465600
mov ecx, dword [esi + 0x11c]
push ecx
mov ecx, dword [esi + 0x118]
push ecx
push edx
push eax
call fcn.00465640
test edx, edx
jl 0x4393a4
jg 0x4393f5
cmp eax, 4
jbe 0x4393a4
mov edx, dword [esi + 0x108]
add edx, 0x3e8
cmp ebx, edx
jl 0x439455
mov edi, dword [esi + 0x8a8]
fld qword [esi + 0x130]
fstp qword [esi + 0x138]
mov eax, edi
sub eax, dword [esi + 0x10c]
fldz
cmp byte [esi + 0xb34], 0
fstp qword [esi + 0x130]
mov dword [esi + 0x8b4], eax
je 0x439449
mov ecx, dword [esi + 0xb38]
test ecx, ecx
je 0x439449
cdq
idiv ecx
mov dword [esi + 0x8b4], eax
mov dword [esi + 0x10c], edi
mov dword [esi + 0x108], ebx
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4