Function at 0x415800
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
call fcn.004a2460
test al, al
je 0x415842
mov ecx, dword [edi + 0x4340]
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov edx, dword [edi + 0x4344]
mov dword [eax + 4], edx
mov ecx, dword [edi + 0x4348]
mov dword [eax + 8], ecx
mov edx, dword [edi + 0x434c]
mov dword [eax + 0xc], edx
jmp 0x4159fa
cmp byte [edi + 0x436c], 0
jne 0x4159fa
push 0
call fcn.0049fe60
add esp, 4
test al, al
jne 0x4159fa
mov ecx, edi
call fcn.00405660
test al, al
je 0x4159fa
mov ecx, dword [0x50b384]
lea eax, [ebp - 0x44]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov dx, word [edi + 0x42c0]
mov eax, 0x180
and dx, ax
mov ecx, 0x80
cmp dx, cx
jne 0x4158bd
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, 0x8000
and ax, dx
mov ecx, edx
cmp ax, cx
jne 0x4158bd
mov edx, 0x100
or word [edi + 0x42c0], dx
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x10], ecx
mov ecx, dword [0x50b3a4]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
call fcn.00450dc0
mov ecx, dword [0x50b3a4]
mov ebx, eax
call fcn.00450de0
mov ecx, eax
test ebx, ebx
je 0x41590f
test ecx, ecx
je 0x41590f
lea eax, [ebx - 1]
cdq
sub eax, edx
sar eax, 1
add dword [ebp - 0xc], eax
lea eax, [ecx - 1]
cdq
sub eax, edx
sar eax, 1
add dword [ebp - 8], eax
mov ecx, dword [0x50b3a0]
call fcn.004420b0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
push 0
sub esp, 0x10
mov bl, al
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edx
mov edx, dword [ebp - 8]
mov dword [eax + 8], ecx
mov ecx, edi
mov dword [eax + 0xc], edx
call fcn.0040a5d0
push 0x10
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 7
lea ecx, [ebp - 0x34]
push ecx
mov ecx, edi
call fcn.00409f60
mov edx, dword [eax]
mov dword [ebp - 0x24], edx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax + 8]
cmp ecx, 4
mov dword [ebp - 0x1c], ecx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x18], eax
jge 0x41597d
mov dword [ebp - 0x1c], 4
mov bl, 1
cmp eax, 2
jge 0x41598b
mov dword [ebp - 0x18], 2
jmp 0x41598f
test bl, bl
je 0x4159fa
push 0x10
push 0
push 7
lea edx, [ebp - 0x24]
push edx
push 0
lea eax, [ebp - 0x54]
push eax
mov ecx, edi
call fcn.00409f60
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov edi, dword [esi + 8]
mov dword [ebp - 0x34], ecx
mov ecx, dword [esi]
mov dword [ebp - 0x30], edx
mov edx, dword [esi + 4]
add ecx, ebx
sub edi, ebx
mov ebx, dword [ebp + 8]
add edx, eax
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0xc]
sub eax, dword [ebp - 0x28]
dec ebx
cmp ebx, 7
ja case.default.0x4159d7
jmp dword [ebx*4 + 0x415a24]
mov dword [esi + 8], ecx
jmp 0x4159f4
mov dword [esi], edi
mov dword [esi + 4], eax
jmp case.default.0x4159d7
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
jmp case.default.0x4159d7
mov dword [esi], edi
mov dword [esi + 0xc], edx
mov edi, dword [ebp - 4]
mov eax, dword [0x50b3a4]
cmp byte [eax + 0x127d2], 0
je 0x415a14
push str.OnSizing.end
mov ecx, edi
call fcn.00413460
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8