Function at 0x506ba0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x581a80
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x5fc150]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
cmp ecx, 0x110
ja 0x506fb6
je 0x506f8e
mov eax, ecx
sub eax, 2
je 0x506fff
sub eax, 0x4c
jne 0x507050
cmp esi, 0x1b59
jne 0x507050
mov eax, dword [ebx + 8]
cmp eax, 0xffffff4f
jne 0x506e54
test byte [ebx + 0xc], 1
je 0x506cf0
mov eax, dword [ebx + 0x20]
xor ecx, ecx
mov word [eax], cx
mov edx, dword [edi + 0x3c]
mov ecx, dword [ebx + 0x10]
cmp ecx, dword [edx + 0x10]
jae 0x506e4d
mov eax, dword [edi + 0x44]
sub eax, dword [edi + 0x40]
sar eax, 2
cmp ecx, eax
jae 0x506e4d
mov eax, dword [edi + 0x40]
push dword [eax + ecx*4]
mov ecx, edx
call fcn.00439b00
mov edi, eax
call fcn.00439ba0
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x506cfa
mov esi, dword [ebx + 0x24]
lea ecx, [esi - 1]
push ecx
push dword [edi + 0x8c]
push dword [ebx + 0x20]
call fcn.00557035
mov eax, dword [ebx + 0x20]
add esp, 0xc
xor ecx, ecx
mov word [eax + esi*2 - 2], cx
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp byte [edi + 0x30], 0
mov esi, eax
je 0x506cbe
cmp esi, dword [ebx + 0x24]
jge 0x506cf0
mov eax, dword [ebx + 0x20]
mov ecx, 0x2a
mov word [eax + esi*2], cx
xor ecx, ecx
mov eax, dword [ebx + 0x20]
mov word [eax + esi*2 + 2], cx
lea eax, [ecx + 1]
jmp 0x507059
mov ecx, edi
call fcn.004443f0
test al, al
je 0x506cf0
push dword [0x5fc0d8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add esi, eax
mov eax, dword [ebx + 0x24]
cmp esi, eax
jg 0x506cf0
push dword [0x5fc0d8]
push eax
push dword [ebx + 0x20]
call fcn.0054bc95
add esp, 0xc
mov eax, 1
jmp 0x507059
cmp eax, 1
jne 0x506d68
cmp dword [edi + 0x88], 8
lea eax, [edi + 0x74]
mov dword [ebp - 0x44], eax
jb 0x506d13
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
push dword [edi + 0x8c]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call esi
push dword [ebp - 0x44]
mov edi, eax
call esi
mov esi, eax
sub esi, edi
jne 0x506d3a
mov esi, 1
mov ecx, 0x5883b8
jmp 0x506d3d
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebx + 0x24]
cmp eax, esi
jge 0x506d46
mov esi, eax
lea eax, [esi - 1]
push eax
push ecx
push dword [ebx + 0x20]
call fcn.00557035
mov eax, dword [ebx + 0x20]
add esp, 0xc
xor ecx, ecx
mov word [eax + esi*2 - 2], cx
lea eax, [ecx + 1]
jmp 0x507059
cmp eax, 2
jne 0x506dac
mov esi, dword [ebx + 0x24]
call fcn.0040baa0
push dword [edi + 0x14]
mov ecx, eax
call fcn.004c3030
test eax, eax
je 0x506cf0
cmp dword [eax + 0x18], 8
lea ecx, [eax + 4]
jb 0x506d92
mov ecx, dword [ecx]
lea eax, [esi - 1]
push eax
push ecx
push dword [ebx + 0x20]
call fcn.00557035
add esp, 0xc
mov eax, 1
jmp 0x507059
cmp eax, 3
jne 0x506cf0
push dword [edi + 0xc]
mov ecx, dword [edi]
call fcn.0041af60
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00507090
add esp, 8
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
mov esi, dword [ebp - 0x28]
jae 0x506ddf
lea esi, [ebp - 0x28]
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x28]
call fcn.0042e7c0
lea ecx, [ebp - 0x49]
push ecx
lea ecx, [ebp - 0x40]
push dword [eax]
push esi
call fcn.00428740
mov byte [ebp - 4], 1
cmp dword [ebp - 0x2c], 8
mov edi, dword [ebp - 0x40]
jae 0x506e0a
lea edi, [ebp - 0x40]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
push esi
push edi
push dword [ebx + 0x20]
call fcn.00557035
mov ecx, dword [ebx + 0x20]
xor eax, eax
add esp, 0xc
mov word [ecx + esi*2], ax
mov byte [ebp - 4], al
lea ecx, [ebp - 0x40]
call fcn.004038c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403840
mov eax, 1
jmp 0x507059
xor eax, eax
jmp 0x507059
cmp eax, 0xffffff94
jne 0x506e9a
cmp dword [ebx + 0xc], 0xffffffff
jne 0x506fff
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x4c], eax
cmp dword [edi + 0x50], eax
jne 0x506e7b
mov byte [edi + 0x54], 1
mov dword [edi + 0x50], 0xffffffff
jmp 0x506e82
mov byte [edi + 0x54], 0
mov dword [edi + 0x50], eax
mov ecx, edi
call fcn.005071a0
mov ecx, edi
call fcn.005056d0
mov eax, 1
jmp 0x507059
cmp eax, 0xffffff8e
je 0x506f7d
cmp eax, 0xffffff9b
je 0x506f7d
cmp eax, 0xffffff8d
je 0x506f7d
cmp eax, 0xfffffffd
jne 0x506ed6
push 0
push 1
push 0x111
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, 1
jmp 0x507059
cmp eax, 0xffffff65
jne 0x507050
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
movzx eax, ax
push 0x12
mov dword [ebp - 0x44], eax
call esi
movzx eax, ax
push 0x10
mov dword [ebp - 0x48], eax
call esi
cmp word [ebx + 0xc], 0x41
movzx eax, ax
jne 0x506fff
cmp word [ebp - 0x44], 0
jge 0x506fff
cmp word [ebp - 0x48], 0
jl 0x506fff
test ax, ax
js 0x506fff
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x1004
push dword [edi + 0x28]
call ebx
xor esi, esi
mov dword [ebp - 0x48], eax
test eax, eax
jle 0x506fff
lea ecx, [ecx]
lea eax, [ebp - 0x80]
mov dword [ebp - 0x70], 2
push eax
push esi
push 0x102b
push dword [edi + 0x28]
mov dword [ebp - 0x74], 2
call ebx
inc esi
cmp esi, dword [ebp - 0x48]
jl 0x506f50
mov eax, 1
jmp 0x507059
mov ecx, edi
call fcn.005070f0
mov eax, 1
jmp 0x507059
call fcn.0040baa0
push 0
push 0
push str.Window
push dword [edi + 0xc]
mov ecx, dword [eax + 0x234d8]
call fcn.0045e090
push ebx
push esi
push pe_nt_image_headers32
jmp 0x507053
cmp ecx, 0x111
jne 0x507050
cmp esi, 0x1b5a
ja 0x507014
je 0x507006
mov eax, esi
sub eax, 1
je 0x506ff8
sub eax, 1
jne 0x507050
push 0x611478
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, 1
jmp 0x507059
mov ecx, edi
call fcn.005050c0
mov eax, 1
jmp 0x507059
mov ecx, edi
call fcn.005059b0
mov eax, 1
jmp 0x507059
mov eax, esi
sub eax, 0x1b5b
je 0x507077
sub eax, 1
jne 0x507050
cmp dword [edi + 0x4c], 0xffffffff
jne 0x50703f
mov ecx, edi
mov dword [edi + 0x4c], eax
mov byte [edi + 0x54], al
mov dword [edi + 0x50], eax
call fcn.005071a0
mov ecx, edi
call fcn.005056d0
mov ecx, edi
call fcn.00505ac0
mov ecx, edi
call fcn.005056d0
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push ecx
push edi
call fcn.004e73b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052c233
mov esp, ebp
pop ebp
ret 0x10
mov ecx, edi
call fcn.005052d0
mov eax, 1
jmp 0x507059