Function at 0x40270c
Capabilities:
Log keystrokes via polling
Resolve function by parsing pe exports

Disassembly:
jmp 0x456320
sub esp, 0x19c
mov eax, dword [esp + 0x1a4]
push ebx
push edi
xor ebx, ebx
mov edi, ecx
push ebx
push 0x20
lea ecx, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x28], edi
mov dword [edi], 1
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], ebx
mov dword [edi + 4], ebx
call sub.AVIFIL32.dll_AVIFileOpenA
test eax, eax
je 0x456367
pop edi
xor eax, eax
pop ebx
add esp, 0x19c
ret 0x10
mov eax, dword [esp + 0x10]
push ebp
push esi
push ebx
lea edx, [esp + 0x14]
push 0x73647561
push edx
push eax
call sub.AVIFIL32.dll_AVIFileGetStream
mov ebp, dword [esp + 0x1b0]
test eax, eax
jne 0x456520
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x120]
push 0x8c
push ecx
push edx
call sub.AVIFIL32.dll_AVIStreamInfoA
test eax, eax
je 0x4563ba
push ebx
push 0x53296c
push str.Error_with_the_audio_stream_
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edi, dword [esp + 0x138]
xor edx, edx
mov eax, edi
mov ecx, dword [esp + 0x150]
div dword [esp + 0x134]
mov edx, ecx
mov esi, ecx
imul esi, dword [esp + 0x140]
and edx, 0xffff
mov word [esp + 0x28], 1
shl esi, 1
mov word [esp + 0x34], cx
and eax, 0xffff
imul edx, eax
mov dword [esp + 0x30], edx
mov edx, 1
cmp cx, dx
mov dword [esp + 0x2c], eax
jne 0x45641b
mov word [esp + 0x36], 8
mov word [esp + 0x2a], dx
jmp 0x456450
mov eax, 2
cmp cx, ax
jne 0x456444
cmp edi, 0xac44
jne 0x45643b
mov word [esp + 0x36], 0x10
mov word [esp + 0x2a], dx
jmp 0x456450
mov word [esp + 0x36], 8
jmp 0x45644b
mov word [esp + 0x36], 0x10
mov word [esp + 0x2a], ax
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x90]
lea edx, [esp + 0x44]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
push ebx
mov dword [esp + 0xa4], eax
mov eax, dword [0x5469c4]
push edx
lea edx, [esp + 0x98]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x98], 0x24
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], esi
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
mov edi, dword [esp + 0x44]
lea ecx, [esp + 0x50]
push ebx
lea edx, [esp + 0x4c]
mov eax, dword [edi]
push ecx
push edx
lea ecx, [esp + 0x58]
lea edx, [esp + 0x48]
push ecx
push edx
push esi
push ebx
push edi
mov dword [esp + 0x44], edi
call dword [eax + 0x2c]
mov eax, dword [esp + 0x140]
mov ecx, dword [esp + 0x10]
push 0x3e8
push eax
push ebx
push ecx
call sub.AVIFIL32.dll_AVIStreamBeginStreaming
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x140]
mov ecx, dword [esp + 0x10]
push ebx
push ebx
push esi
push edx
push eax
push ebx
push ecx
call sub.AVIFIL32.dll_AVIStreamRead
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x44]
push eax
push ecx
push edi
call dword [edx + 0x4c]
mov edx, dword [edi]
push ebx
push ebx
push ebx
push edi
call dword [edx + 0x30]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
push ebx
lea eax, [esp + 0x20]
push 0x73646976
push eax
push ecx
call sub.AVIFIL32.dll_AVIFileGetStream
test eax, eax
je 0x45654b
push ebx
push 0x53296c
push str.Error_could_not_locate_the_video_stream
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0xb4]
push 0x6c
push edx
push eax
call sub.AVIFIL32.dll_AVIFileInfoA
test eax, eax
je 0x456575
push ebx
push 0x53296c
push str.Error_with_reading_video_stream
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x5469b8]
lea edx, [esp + 0x14]
push ebx
push edx
mov ecx, dword [eax]
push 0x5469c8
push eax
call dword [ecx + 0x18]
cmp eax, ebx
je 0x456598
push eax
call fcn.00401e65
add esp, 4
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0xcc]
push edx
mov dword [esp + 0x68], 0x28
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
mov word [esp + 0x74], 1
mov word [esp + 0x76], 0x10
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
call sub.AVIFIL32.dll_AVIStreamLength
mov ecx, dword [esp + 0x1c]
mov esi, eax
lea eax, [esp + 0x64]
mov dword [esp + 0x38], esi
push eax
push ecx
call sub.AVIFIL32.dll_AVIStreamGetFrameOpen
mov edx, dword [esp + 0xc8]
mov ebp, eax
mov eax, dword [esp + 0xcc]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x24]
cmp eax, ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], edx
jne 0x456631
mov dword [edi], ebx
mov dword [0x546a54], 1
cmp esi, ebx
mov dword [edi + 4], ebx
jbe 0x456705
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
jmp 0x456652
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 4]
inc edx
mov dword [eax + 4], edx
mov eax, edx
cmp eax, esi
jae 0x456703
push eax
push ebp
call sub.AVIFIL32.dll_AVIStreamGetFrame
mov esi, eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x40]
mov edi, dword [esi]
mov ecx, dword [eax]
push edx
push eax
add edi, esi
call dword [ecx + 0x44]
mov eax, dword [esp + 0xcc]
push 0
push esi
push edi
push eax
mov ecx, dword [esp + 0x50]
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0xe8]
push eax
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_SetDIBitsToDevice]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x40]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x68]
mov eax, dword [0x5469bc]
push 0
lea ecx, [esp + 0x58]
push 0x1000000
mov edx, dword [eax]
push ecx
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x1c8]
push ecx
push eax
call dword [edx + 0x14]
push 0x20
call ebx
test ah, 0x80
jne 0x456703
push 1
call ebx
test ah, 0x80
jne 0x456703
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x38]
cmp dword [eax + 4], edx
jb 0x45664e
xor ebx, ebx
push ebp
mov dword [0x546a54], ebx
call sub.AVIFIL32.dll_AVIStreamGetFrameClose
mov esi, dword [esp + 0x24]
cmp esi, ebx
je 0x456739
mov ecx, dword [esp + 0x10]
push ecx
call sub.AVIFIL32.dll_AVIStreamEndStreaming
mov edx, dword [esp + 0x10]
push edx
call sub.AVIFIL32.dll_AVIStreamRelease
mov eax, dword [esi]
push esi
call dword [eax + 0x48]
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
mov edx, dword [esp + 0x1c]
push edx
call sub.AVIFIL32.dll_AVIStreamEndStreaming
mov eax, dword [esp + 0x1c]
push eax
call sub.AVIFIL32.dll_AVIStreamRelease
mov ecx, dword [esp + 0x18]
push ecx
call sub.AVIFIL32.dll_AVIFileRelease
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
pop esi
pop ebp
pop edi
mov eax, 1
pop ebx
add esp, 0x19c
ret 0x10