Function at 0x41e470
Capabilities:
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x4b6e99
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x4de8bc]
xor eax, esp
mov dword [esp + 0x1a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4de8bc]
xor eax, esp
push eax
lea eax, [esp + 0x1c0]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1d0]
push str.winusb.dll
mov esi, ecx
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ebx, ebx
cmp eax, ebx
jne 0x41e4ce
mov dword [esi + 0x70], ebx
jmp 0x41e4d5
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esi + 0x70], ebx
je 0x41e71e
push 0xa2
call dword [sym.imp.USER32.dll_GetKeyState]
mov ebp, 0x10
cmp dword [esi + 0x5c], ebp
jb 0x41e4f8
mov eax, dword [esi + 0x48]
jmp 0x41e4fb
lea eax, [esi + 0x48]
push ebx
push 0x40000080
push 3
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x68], eax
jne 0x41e5c6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
jne 0x41e569
push 0x4bad50
lea ecx, [esp + 0x1c]
call fcn.00406160
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x20]
push eax
mov ecx, edi
mov dword [esp + 0x1d4], ebx
call fcn.004054b0
cmp dword [esp + 0x30], ebp
jb 0x41e5bf
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0042e631
add esp, 4
xor al, al
jmp 0x41e9ce
call esi
push eax
lea edx, [esp + 0xc0]
push str.WinUsb_Device_could_not_be_opened__err_d_n
push edx
call fcn.0042f6b4
add esp, 0xc
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x1c]
call fcn.00406160
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
mov dword [esp + 0x1d4], 1
call fcn.004054b0
cmp dword [esp + 0x30], ebp
jb 0x41e5bf
mov edx, dword [esp + 0x1c]
push edx
call fcn.0042e631
add esp, 4
xor al, al
jmp 0x41e9ce
lea ebp, [esi + 0x64]
push ebp
push eax
call sub.WINUSB.DLL_WinUsb_Initialize
test eax, eax
jne 0x41e5f0
mov eax, dword [esi + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
push ecx
mov ecx, esi
mov dword [esi + 0x70], ebx
call fcn.0041e470
jmp 0x41e9ce
mov eax, dword [ebp]
lea edx, [esp + 0x50]
push edx
push ebx
push eax
call sub.WINUSB.DLL_WinUsb_QueryInterfaceSettings
test eax, eax
jne 0x41e655
lea ecx, [esp + 0xbc]
push str.Fail_to_query_interface_n
push ecx
call fcn.0042f6b4
add esp, 8
lea edx, [esp + 0xbc]
push edx
lea ecx, [esp + 0x1c]
call fcn.00406160
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x1d4], 2
call fcn.004054b0
lea ecx, [esp + 0x18]
call fcn.004053a0
xor al, al
jmp 0x41e9ce
xor edi, edi
cmp byte [esp + 0x54], bl
jbe 0x41e693
lea ecx, [ecx]
mov edx, dword [ebp]
lea ecx, [esp + 0x5c]
push ecx
push edi
push ebx
push edx
call sub.WINUSB.DLL_WinUsb_QueryPipe
cmp dword [esp + 0x5c], 2
jne 0x41e6ea
mov al, byte [esp + 0x60]
test al, al
jns 0x41e684
mov byte [esi + 0x6c], al
jmp 0x41e687
mov byte [esi + 0x6d], al
movzx eax, byte [esp + 0x54]
add edi, 1
cmp edi, eax
jl 0x41e660
cmp byte [esi + 0x6c], bl
je 0x41e6a1
cmp byte [esi + 0x6d], bl
jne 0x41e9cc
push str.No_WinUsb_pipes_found.
lea ecx, [esp + 0x1c]
call fcn.00406160
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x1d4], 4
call fcn.004054b0
cmp dword [esp + 0x30], 0x10
jb 0x41e5bf
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0042e631
add esp, 4
xor al, al
jmp 0x41e9ce
push str.Wrong_WinUsb_pipes_found.
lea ecx, [esp + 0x1c]
call fcn.00406160
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1d4], 3
call fcn.004054b0
cmp dword [esp + 0x30], 0x10
jmp 0x41e5b0
push str.BulkRead
lea edi, [esi + 0x44]
lea edx, [esp + 0x38]
push edi
push edx
call fcn.00417d20
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xac]
mov dword [esp + 0x1d4], 5
mov dword [esp + 0xc4], 0xf
mov dword [esp + 0xc0], ebx
mov byte [esp + 0xb0], bl
call fcn.004054b0
mov ebp, 0x10
cmp dword [esp + 0x4c], ebp
mov byte [esp + 0x1c8], 7
jb 0x41e788
mov eax, dword [esp + 0x38]
push eax
call fcn.0042e631
add esp, 4
push str.BulkWrite
lea ecx, [esp + 0x1c]
push edi
push ecx
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.00417d20
add esp, 0xc
push 0xffffffffffffffff
push ebx
mov edi, 0xf
push eax
lea ecx, [esp + 0x90]
mov byte [esp + 0x1d4], 8
mov dword [esp + 0xa8], edi
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
call fcn.004054b0
cmp dword [esp + 0x30], ebp
mov byte [esp + 0x1c8], 0xa
jb 0x41e7f8
mov edx, dword [esp + 0x1c]
push edx
call fcn.0042e631
add esp, 4
cmp dword [esp + 0xb8], ebp
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
jae 0x41e81b
lea eax, [esp + 0xa4]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push ebx
push 3
push ebx
push 1
push connect
push eax
call edi
cmp eax, 0xffffffff
mov dword [esi + 0x3c], eax
jne 0x41e8eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0xc0]
push str.In_Pipe_could_not_be_opened__err_d_n
push eax
call fcn.0042f6b4
add esp, 0xc
lea ecx, [esp + 0xbc]
push ecx
lea ecx, [esp + 0x38]
call fcn.00406160
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0x1d4], 0xb
call fcn.004054b0
cmp dword [esp + 0x4c], ebp
jb 0x41e895
mov eax, dword [esp + 0x38]
push eax
call fcn.0042e631
add esp, 4
cmp dword [esp + 0x9c], ebp
jb 0x41e8ae
mov ecx, dword [esp + 0x88]
push ecx
call fcn.0042e631
add esp, 4
cmp dword [esp + 0xb8], ebp
mov dword [esp + 0x9c], 0xf
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
jb 0x41e5bf
mov edx, dword [esp + 0xa4]
push edx
call fcn.0042e631
add esp, 4
xor al, al
jmp 0x41e9ce
cmp dword [esp + 0x9c], ebp
mov eax, dword [esp + 0x88]
jae 0x41e902
lea eax, [esp + 0x88]
push ebx
push ebx
push 3
push ebx
push 2
push 0x40000000
push eax
call edi
cmp eax, 0xffffffff
mov dword [esi + 0x40], eax
jne 0x41e981
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0xc0]
push str.Out_Pipe_could_not_be_opened__err_d_n
push eax
call fcn.0042f6b4
add esp, 0xc
lea ecx, [esp + 0xbc]
push ecx
lea ecx, [esp + 0x6c]
call fcn.00406160
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x70]
push edx
mov byte [esp + 0x1d4], 0xc
call fcn.004054b0
cmp dword [esp + 0x80], ebp
jb 0x41e975
mov eax, dword [esp + 0x6c]
push eax
call fcn.0042e631
add esp, 4
mov ecx, esi
call fcn.0041cc20
jmp 0x41e895
cmp dword [esp + 0x9c], ebp
jb 0x41e99a
mov eax, dword [esp + 0x88]
push eax
call fcn.0042e631
add esp, 4
cmp dword [esp + 0xb8], ebp
mov dword [esp + 0x9c], 0xf
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
jb 0x41e9cc
mov ecx, dword [esp + 0xa4]
push ecx
call fcn.0042e631
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x1c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1a8]
xor ecx, esp
call fcn.0042e636
add esp, 0x1b8
ret 4