Function at 0x506140
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x613957
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x67f864]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push esi
push edi
mov eax, dword [0x67f864]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
xor edi, edi
push 0x12
mov dword [esp + 0x34], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
test ax, ax
setl cl
cmp dword [esi + 0x1c0], edi
mov dword [esp + 0x2c], ecx
je 0x5066d1
mov eax, dword [esi + 0x54]
xor ecx, ecx
cmp eax, edi
je 0x5061cd
mov eax, dword [eax + 0x158]
cmp eax, edi
je 0x5061cb
mov ecx, dword [eax + 0x48]
jmp 0x5061cd
xor ecx, ecx
cmp dword [0x695370], ecx
jne 0x5066d1
mov eax, dword [esi + 0x1bc]
cmp eax, edi
mov dword [esp + 0x10], eax
je 0x5066d1
mov dword [esp + 0x20], edi
lea edi, [esp + 0x24]
lea ebx, [ebp + 0x10]
call fcn.00502410
xor eax, eax
cmp dword [esp + 0x10], 1
lea edx, [esp + 0x20]
sete al
push edx
mov ebx, edi
push eax
call fcn.004a90c0
add esp, 8
test eax, eax
je 0x5066d1
mov ecx, esi
call fcn.00502150
lea edx, [esp + 0x34]
call fcn.00404050
mov ebx, dword [esp + 0x1c]
push 0
push 0xf
mov ecx, ebx
call fcn.005a59f0
test eax, eax
je 0x50632e
push 0
push 0xf
mov ecx, ebx
call fcn.005a5ad5
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
je 0x50632e
push 0
push 0
push 0xffffffffffffffff
push esi
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x28], eax
jbe 0x506318
xor edi, edi
mov dword [esp + 0x18], edi
push 0x208
lea ecx, [esp + 0x60]
push ecx
push ebx
push esi
mov dword [esp + 0x288], edi
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
lea eax, [esp + 0x5c]
call fcn.004fb990
test eax, eax
je 0x5062f7
mov edx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x60]
push eax
call fcn.004fadd0
add esp, 8
cmp eax, edi
mov dword [esp + 0x18], eax
je 0x5062f7
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
neg ecx
sbb ecx, ecx
and ecx, 2
push ecx
lea edx, [esp + 0x28]
push edx
lea edi, [esp + 0x20]
call fcn.00505fe0
mov esi, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x5062f7
mov dword [esp + 0x14], 1
mov dword [esp + 0x20], 0
lea eax, [esp + 0x18]
mov dword [esp + 0x278], 0xffffffff
call fcn.004d61f0
add ebx, 1
cmp ebx, dword [esp + 0x28]
jb 0x506278
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [esp + 0x14], 0
jne 0x506682
mov ebx, dword [esp + 0x1c]
mov edi, dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
push 0
push str.FileGroupDescriptorW
call edi
push eax
mov ecx, ebx
call fcn.005a59f0
test eax, eax
je 0x506572
push 0
push str.FileGroupDescriptorW
call edi
push eax
mov ecx, ebx
call fcn.005a5ad5
mov esi, eax
test esi, esi
mov dword [esp + 0x40], esi
je 0x506572
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [esp + 0x3c], eax
je 0x506572
xor ebx, ebx
cmp dword [eax], ebx
jle 0x50655c
add eax, 4
mov dword [esp + 0x10], eax
jmp 0x506398
mov edi, dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov dword [esp + 0x18], 0
mov dword [esp + 0x278], 1
mov eax, dword [esp + 0x10]
push eax
call fcn.00505d00
mov esi, eax
add esp, 4
test esi, esi
je 0x50652d
push str.FileContents
call edi
lea ecx, [esp + 0x44]
mov word [esp + 0x44], ax
mov eax, 1
push ecx
push str.FileContents
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ebx
mov dword [esp + 0x50], 0
mov dword [esp + 0x5c], eax
call edi
mov ecx, dword [esp + 0x20]
push eax
call fcn.005a5ad5
mov edi, eax
test edi, edi
je 0x50652d
cmp esi, 2
jne 0x5064de
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x50652d
mov eax, str._InternetShortcut__r_nURL
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x506430
sub eax, edx
push eax
push str._InternetShortcut__r_nURL
push esi
call fcn.005d4bf8
add esp, 0xc
test eax, eax
jne 0x5064d5
mov eax, str._InternetShortcut__r_nURL
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x506460
sub eax, edx
lea ecx, [esp + 0x28]
add esi, eax
call fcn.0044b580
mov byte [esp + 0x278], 2
mov al, byte [esi]
cmp al, 0xd
je 0x50649c
movsx dx, al
lea ecx, [esp + 0x28]
push edx
call fcn.004f2120
mov al, byte [esi + 1]
add esi, 1
cmp al, 0xd
jne 0x506484
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
lea esi, [esp + 0x3c]
call fcn.00506030
add esp, 4
push eax
lea esi, [esp + 0x1c]
call fcn.00506b10
lea eax, [esp + 0x38]
call fcn.004d61f0
lea ecx, [esp + 0x28]
mov byte [esp + 0x278], 1
call fcn.0044b670
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x5064f1
mov edx, dword [esp + 0x2c]
push edx
mov ecx, edi
call fcn.004fad20
add esp, 4
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
je 0x50652d
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
neg eax
sbb eax, eax
and eax, 2
push eax
lea ecx, [esp + 0x28]
push ecx
lea edi, [esp + 0x20]
call fcn.00505fe0
add esp, 8
test eax, eax
je 0x50652d
mov dword [esp + 0x14], 1
mov dword [esp + 0x20], 0
lea eax, [esp + 0x18]
mov dword [esp + 0x278], 0xffffffff
call fcn.004d61f0
mov edx, dword [esp + 0x3c]
add dword [esp + 0x10], 0x250
add ebx, 1
cmp ebx, dword [edx]
jl 0x506392
mov esi, dword [esp + 0x40]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [esp + 0x14], 0
jne 0x506682
mov ebx, dword [esp + 0x1c]
push 0
push 8
mov ecx, ebx
call fcn.005a59f0
test eax, eax
je 0x5065fb
push 0
push 8
mov ecx, ebx
call fcn.005a5ad5
mov esi, eax
mov dword [esp + 0x10], 0
test esi, esi
mov dword [esp + 0x278], 3
je 0x5065d8
mov ecx, esi
call fcn.004fa4a0
mov edi, eax
push esi
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test edi, edi
je 0x5065d8
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x24]
push 0
push eax
lea edi, [esp + 0x18]
call fcn.00505fe0
add esp, 8
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x278], 0xffffffff
call fcn.004d61f0
cmp dword [esp + 0x14], 0
jne 0x506682
mov ebx, dword [esp + 0x1c]
push 0
push 0xe
mov ecx, ebx
call fcn.005a59f0
test eax, eax
je 0x506690
push 0
push 0xe
mov ecx, ebx
call fcn.005a5ad5
mov esi, eax
mov dword [esp + 0x10], 0
test esi, esi
mov dword [esp + 0x278], 4
je 0x506667
mov ecx, dword [esp + 0x2c]
call fcn.004fb370
mov edi, eax
push esi
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test edi, edi
je 0x506667
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x24]
push 0
push ecx
lea edi, [esp + 0x18]
call fcn.00505fe0
add esp, 8
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x278], 0xffffffff
call fcn.004d61f0
cmp dword [esp + 0x14], 0
je 0x50668c
push 1
call fcn.004dbed0
add esp, 4
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
xor edx, edx
call fcn.00404050
mov esi, dword [esp + 0x30]
cmp dword [esi + 0x1c0], 0
je 0x5066ad
call fcn.004a9200
cmp dword [esp + 0x14], 0
je 0x5066bb
mov eax, 1
jmp 0x5066d3
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ecx
push ebx
mov ecx, esi
call fcn.0059edd5
jmp 0x5066d3
xor eax, eax
mov ecx, dword [esp + 0x270]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.005ce60a
mov esp, ebp
pop ebp
ret 0x10