Function at 0x40cc70
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x26c
push ebx
mov ebx, dword [esp + 0x274]
push ebp
mov ebp, dword [esp + 0x280]
mov eax, dword [ebx + 0x6c]
push esi
xor esi, esi
push edi
cmp eax, esi
je 0x40cea7
cmp ebp, 0x5c20
ja 0x40cd10
je 0x40ccf5
cmp ebp, 7
je 0x40cce9
cmp ebp, 0x14
je 0x40d08e
cmp ebp, 0xbd3
jne 0x40cea7
cmp dword [esp + 0x28c], 1
jne 0x40d1d1
cmp dword [esp + 0x290], 2
jne 0x40d1d1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x26c
ret 0x14
mov ecx, ebx
call fcn.0040dd90
jmp 0x40cec4
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x24]
test eax, eax
je 0x40d1d1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x54]
jmp 0x40d1d1
cmp ebp, 0x5c23
je 0x40cd30
cmp ebp, 0x6789
jne 0x40cea7
mov ecx, ebx
call fcn.0040dce0
jmp 0x40d1d1
cmp dword [0x515a90], esi
je 0x40d1d1
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x24]
test eax, eax
je 0x40d1d1
cmp dword [0x620098], esi
jne 0x40d1d1
mov eax, dword [esp + 0x284]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
cmp edi, esi
mov dword [esp + 0x14], edi
je 0x40d1d1
push 1
push 1
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, eax
test esi, esi
mov dword [esp + 0x18], esi
je 0x40ce91
push esi
call fcn.0047e370
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40ce83
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
xor edx, edx
push 0
mov dx, word [ebp + 0xe]
mov ecx, dword [esp + 0x34]
shr edx, 3
imul edx, ecx
mov eax, dword [esp + 0x38]
push 0
imul edx, eax
mov dword [ebp + 8], eax
lea eax, [esp + 0x18]
push eax
push 0
push ebp
push edi
mov dword [ebp + 4], ecx
mov dword [ebp + 0x14], edx
mov dword [esp + 0x28], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov esi, eax
test esi, esi
mov dword [esp + 0x24], esi
je 0x40ce78
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
mov dword [esp + 0x1c], edi
je 0x40ce6d
push esi
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebx + 4]
push 0
push edi
push ecx
mov dword [esp + 0x2c], eax
call dword [0x515a90]
mov eax, dword [ebp + 0x14]
mov ecx, 0xb
mov edx, dword [esp + 0x10]
mov esi, ebp
lea edi, [esp + 0x40]
push 0x3c
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x3c]
push 1
push ecx
push 0x5f
mov ecx, ebx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], eax
call fcn.0040db20
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [esp + 0x24]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edi, dword [esp + 0x14]
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ebp, dword [esp + 0x288]
mov eax, dword [esp + 0x284]
push edi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
xor esi, esi
jmp 0x40d1d1
cmp ebp, 0x210
ja 0x40d0fe
je 0x40d0a0
cmp ebp, 0x21
ja 0x40d031
je 0x40cf39
mov eax, ebp
dec eax
je 0x40cf2b
sub eax, 4
je 0x40cf04
sub eax, 0xb
jne 0x40d1d1
cmp dword [ebx + 0x6c], esi
je 0x40d005
push 1
push esi
mov ecx, ebx
call fcn.0040de20
push esi
push esi
push 0x12
mov ecx, ebx
call fcn.0040dad0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x26c
ret 0x14
mov eax, dword [esp + 0x290]
mov edx, dword [ebx]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
push ecx
push eax
mov eax, dword [esp + 0x294]
mov ecx, ebx
push eax
call dword [edx + 0x34]
jmp 0x40d005
push ebx
lea ecx, [ebx + 0x74]
call fcn.00498e20
jmp 0x40d005
cmp eax, esi
je 0x40d005
mov eax, dword [ebx + 0x5c]
mov ebp, 1
cmp eax, ebp
je 0x40cffe
mov ecx, dword [ebx + 4]
push ecx
mov ecx, ebx
call fcn.0040de00
test eax, eax
jne 0x40cffe
mov eax, dword [0x5ed660]
test eax, eax
je 0x40cfe9
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x76]
mov word [esp + 0x74], 0
lea edx, [esp + 0x74]
rep stosd dword es:[edi], eax
push 0x104
push edx
push esi
stosw word es:[edi], ax
call dword [sym.imp.USER32.dll_GetClassNameW]
lea eax, [esp + 0x74]
push str.DV2ControlHost
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40cfe9
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40cfe9
push 0
push 0x1b
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edi, dword [sym.imp.USER32.dll_keybd_event]
mov esi, eax
push 0
push 0
push esi
push 0x1b
call edi
push 0
push 2
push esi
push 0x1b
call edi
mov ecx, ebx
call fcn.0040de70
mov ecx, dword [ebx + 4]
push 0
push ebx
push 0xbd1
push ecx
mov dword [ebx + 0x5c], ebp
call dword [sym.imp.USER32.dll_PostMessageW]
mov ebp, dword [esp + 0x288]
mov ecx, dword [esp + 0x290]
mov edx, dword [esp + 0x28c]
mov eax, dword [esp + 0x284]
push ecx
push edx
push ebp
push eax
call dword [sym.imp.USER32.dll_DefWindowProcW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x26c
ret 0x14
mov eax, ebp
sub eax, 0x111
je 0x40d06f
sub eax, 2
jne 0x40d1d1
mov eax, dword [esp + 0x28c]
cmp eax, 0x3000
jne 0x40d065
mov edx, dword [ebx + 4]
push eax
push edx
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, ebx
call fcn.0040de70
jmp 0x40d005
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 0x30]
jmp 0x40d005
mov eax, dword [esp + 0x290]
mov ecx, dword [esp + 0x28c]
mov edx, dword [ebx + 0x28]
push eax
push ecx
push 0x111
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x26c
ret 0x14
mov ecx, dword [esp + 0x28c]
mov eax, ecx
and eax, 0xffff
sub eax, 2
je 0x40d0ce
sub eax, 0x1ff
jne 0x40d005
push 0x620088
call dword [sym.imp.USER32.dll_GetCursorPos]
jmp 0x40d005
mov eax, dword [ebx]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x294]
push edx
push ecx
mov ecx, ebx
mov dword [esp + 0x1c], esi
call dword [eax + 0x38]
cmp dword [esp + 0x10], esi
je 0x40d005
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x26c
ret 0x14
cmp ebp, 0xbd2
ja 0x40d1b9
je 0x40d1ac
mov eax, ebp
sub eax, 0x319
je 0x40d17b
sub eax, 0x8b7
je 0x40d16f
dec eax
jne 0x40d1d1
cmp dword [esp + 0x28c], ebx
jne 0x40d005
mov eax, dword [ebx + 0x2c]
mov ecx, ebx
push eax
mov dword [ebx + 0x5c], esi
call fcn.0040de00
test eax, eax
jne 0x40d163
push 1
push 1
mov ecx, ebx
call fcn.0040de20
mov ecx, dword [ebx + 4]
push esi
push 0x64
push 0x3000
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, ebx
call fcn.0040dd60
jmp 0x40d005
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x10]
jmp 0x40d005
mov ecx, dword [esp + 0x290]
mov edx, dword [esp + 0x28c]
mov eax, dword [ebx]
push ecx
push edx
mov ecx, ebx
call dword [eax + 0x2c]
test eax, eax
je 0x40d005
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x26c
ret 0x14
mov eax, dword [ebx]
push esi
mov ecx, ebx
call dword [eax + 0x14]
jmp 0x40d005
cmp ebp, 0x4400
je 0x40d328
cmp ebp, 0x5678
je 0x40d300
cmp dword [ebx + 0x58], esi
jne 0x40d005
mov ecx, dword [0x51502c]
cmp ecx, ebp
je 0x40d2d1
mov eax, dword [0x515030]
cmp eax, ebp
je 0x40d2d1
cmp dword [0x515038], ebp
jne 0x40d261
cmp dword [ebx + 0x68], esi
je 0x40d231
mov ecx, dword [esp + 0x290]
mov edx, dword [esp + 0x28c]
push ecx
push edx
push eax
mov eax, dword [esp + 0x290]
push eax
mov ecx, ebx
call fcn.0040d350
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x26c
ret 0x14
mov eax, dword [esp + 0x290]
mov ecx, dword [esp + 0x28c]
mov edx, dword [ebx]
push eax
push ecx
mov ecx, ebx
mov dword [ebx + 0x68], 1
call dword [edx + 0x40]
mov dword [ebx + 0x68], esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x26c
ret 0x14
cmp dword [0x515034], ebp
jne 0x40d005
cmp dword [ebx + 0x64], esi
je 0x40d2a1
mov edx, dword [esp + 0x290]
mov eax, dword [esp + 0x28c]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x290]
push ecx
mov ecx, ebx
call fcn.0040d350
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x26c
ret 0x14
mov eax, dword [esp + 0x290]
mov ecx, dword [esp + 0x28c]
mov edx, dword [ebx]
push eax
push ecx
mov ecx, ebx
mov dword [ebx + 0x64], 1
call dword [edx + 0x3c]
mov dword [ebx + 0x64], esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x26c
ret 0x14
mov edx, dword [esp + 0x290]
mov eax, dword [esp + 0x28c]
mov ecx, dword [esp + 0x284]
push edx
push eax
push ebp
push ecx
mov ecx, ebx
call fcn.0040d350
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x26c
ret 0x14
cmp dword [esp + 0x28c], 1
jne 0x40d005
cmp dword [esp + 0x290], 2
jne 0x40d005
mov ecx, ebx
call fcn.0040d5e0
jmp 0x40d005
mov edx, dword [esp + 0x28c]
mov eax, dword [esp + 0x284]
neg edx
sbb edx, edx
and edx, 5
push edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40d005