Function at 0x454d10
Capabilities:
Log keystrokes
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
push ebx
push esi
push edi
push dword [ebp + 0x24]
mov ebx, ecx
push dword [ebp + 0x20]
mov dword [esp + 0x18], ebx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call fcn.004645c0
mov dword [esp + 0x1c], eax
test eax, eax
je 0x454f55
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov edx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
mov dword [esp + 0x28], 2
movzx eax, word [esi]
mov byte [esp + 0xf], 0
mov byte [esp + 0x15], 1
mov dword [esp + 0x20], closesocket
mov dword [esp + 0x24], closesocket
test ax, ax
je 0x454e8b
mov bl, byte [esp + 0xf]
mov ecx, eax
nop
movzx edi, cx
test edi, 0xffffff80
je 0x454d8f
xor eax, eax
jmp 0x454d9d
push 2
push edi
call edx
mov edx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
add esp, 8
mov ecx, edi
and ecx, 0xffffffdf
test eax, eax
cmove ecx, edi
add ecx, 0xffffffbc
cmp ecx, 0x15
ja case.0x454dba.69
movzx eax, byte [ecx + 0x4553fc]
jmp dword [eax*4 + 0x4553e0]
mov dword [esp + 0x28], 0
jmp case.0x454dba.69
mov dword [esp + 0x28], 1
jmp case.0x454dba.69
movzx eax, word [esi + 2]
lea edi, [esi + 2]
mov ecx, eax
mov dword [esp + 0x18], ecx
test eax, 0xffffff80
je 0x454df3
xor eax, eax
jmp 0x454dff
push 2
push eax
call edx
mov ecx, dword [esp + 0x20]
add esp, 8
and ecx, 0xffdf
test eax, eax
movzx eax, byte [esp + 0x15]
movzx edx, cx
mov ecx, dword [esp + 0x18]
movzx ecx, cx
cmove edx, ecx
xor ecx, ecx
movzx edx, dx
cmp edx, 0x41
cmovne ecx, eax
cmovne edi, esi
mov byte [esp + 0x15], cl
mov esi, edi
jmp case.0x454dba.69
push 3
push 0x4e76e8
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne case.0x454dba.69
add esi, 4
mov bl, 1
jmp case.0x454dba.69
lea eax, [esi + 2]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov dword [esp + 0x24], eax
jmp 0x454e69
lea eax, [esi + 2]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov dword [esp + 0x28], eax
add esp, 4
movzx eax, word [esi + 2]
add esi, 2
mov edx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
mov ecx, eax
test ax, ax
jne 0x454d80
test bl, bl
mov ebx, dword [ebp + 0x14]
jne 0x454ea0
mov ecx, dword [esp + 0x1c]
mov edx, ebx
call fcn.004b7940
mov edi, eax
test edi, edi
jne 0x455026
push 0x30
lea eax, [esp + 0x4c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov byte [esp + 0x70], 1
movzx eax, word [ebx]
mov esi, eax
cmp eax, 0x20
je 0x454ec5
cmp eax, 9
jne 0x454eca
add ebx, 2
jmp 0x454eb6
test eax, 0xffffff80
je 0x454ed5
xor eax, eax
jmp 0x454ee1
push 2
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
add esp, 8
mov ecx, esi
and ecx, 0xffdf
test eax, eax
movzx edx, cx
mov ecx, esi
cmove edx, ecx
cmp dx, 0x58
jne case.0x455138.3
cmp word [ebx + 2], 0
lea edi, [ebx + 2]
je case.0x455138.3
mov ecx, edi
call fcn.0041a370
mov dword [esp + 0x48], eax
movzx eax, word [edi]
test ax, ax
je case.0x455138.3
mov esi, eax
nop dword [eax + eax]
mov ecx, 0x4e6614
mov edx, 0x20
nop word [eax + eax]
cmp si, dx
je 0x454f86
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x454f30
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x454f20
mov ebx, dword [esp + 0x10]
mov eax, dword [0x4f90f4]
test byte [eax + 0x100], 1
jne 0x4553c3
mov ecx, dword [0x4fb9cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4e613c
call fcn.004b5b70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
lea esi, [edi + 2]
nop dword [eax]
movzx eax, word [esi]
cmp eax, 0x20
je 0x454f9d
cmp eax, 9
jne 0x454fa2
add esi, 2
jmp 0x454f90
test ax, ax
je case.0x455138.3
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towupper]
add esp, 4
cmp ax, 0x59
jne case.0x455138.3
cmp word [esi + 2], 0
lea ecx, [esi + 2]
je case.0x455138.3
call fcn.0041a370
mov ebx, dword [esp + 0x1c]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x78]
push eax
push ebx
call esi
mov eax, dword [esp + 0x78]
add dword [esp + 0x48], eax
mov eax, dword [esp + 0x7c]
add dword [esp + 0x4c], eax
lea eax, [esp + 0x48]
push eax
push 0x45c820
push ebx
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov eax, dword [esp + 0x60]
mov edi, ebx
mov ecx, dword [esp + 0x4c]
test eax, eax
mov dword [esp + 0x24], ecx
cmovne edi, eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.USER32.dll_ScreenToClient]
jmp 0x45502c
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [ebp + 0xc], 1
jl 0x4553a4
mov ecx, dword [esp + 0x20]
cmp ecx, 0x80000000
je 0x45504d
mov eax, dword [esp + 0x24]
cmp eax, 0x80000000
jne 0x455098
lea eax, [esp + 0x38]
push eax
push edi
call esi
test eax, eax
je case.0x455138.3
mov ecx, dword [esp + 0x20]
cmp ecx, 0x80000000
jne 0x45507c
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x24]
cmp eax, 0x80000000
jne 0x455098
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x24], eax
movzx edx, ax
shl edx, 0x10
movzx eax, cx
or edx, eax
mov dword [esp + 0x2c], 0
mov al, byte [ebp + 8]
mov dword [esp + 0x30], edx
cmp al, 0x9f
je 0x4550be
cmp al, 0x9e
je 0x4550be
xor bl, bl
jmp 0x4550c0
mov bl, 1
mov byte [esp + 0x16], bl
cmp al, 0x9c
je 0x4550d0
cmp al, 0x9d
je 0x4550d0
xor cl, cl
jmp 0x4550d2
mov cl, 1
mov byte [esp + 0x17], cl
test bl, bl
je 0x455102
cmp al, 0x9f
mov esi, 0xffffff88
mov eax, dword [esp + 0x18]
mov ecx, 0x78
cmove esi, ecx
mov dword [esp + 0x10], eax
imul esi, dword [ebp + 0xc]
mov ebx, 0x20a
shl esi, 0x10
jmp 0x4551a4
test cl, cl
je 0x45512b
cmp al, 0x9c
mov esi, 0x78
mov eax, dword [esp + 0x18]
mov ecx, 0xffffff88
cmove esi, ecx
mov dword [esp + 0x10], eax
imul esi, dword [ebp + 0xc]
mov ebx, 0x20e
shl esi, 0x10
jmp 0x4551a4
movzx eax, al
dec eax
cmp eax, 5
ja case.0x455138.3
jmp dword [eax*4 + 0x455414]
mov ebx, 0x201
mov dword [esp + 0x10], 0x202
mov esi, 1
jmp 0x4551a4
mov ebx, 0x204
mov dword [esp + 0x10], 0x205
mov esi, 2
jmp 0x4551a4
mov ebx, 0x207
mov dword [esp + 0x10], 0x208
mov esi, 0x10
jmp 0x4551a4
mov dword [esp + 0x2c], 0x10000
mov esi, 0x10020
jmp 0x455197
mov dword [esp + 0x2c], 0x20000
mov esi, 0x20040
mov dword [esp + 0x10], 0x20c
mov ebx, 0x20b
cmp byte [esp + 0x15], 0
mov byte [esp + 0xf], 0
je 0x455269
push 0
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [esp + 0x18], eax
test eax, eax
je 0x455259
cmp eax, dword [0x4fd2ec]
je 0x455259
mov ecx, dword [0x5000fc]
test cl, 1
jne 0x45520a
push str.IsHungAppWindow
or ecx, 1
push str.user32
mov dword [0x5000fc], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x500100], eax
jmp 0x45520f
mov eax, dword [0x500100]
test eax, eax
je 0x45521b
push dword [esp + 0x1c]
call eax
jmp 0x45523c
lea eax, [esp + 0x34]
push eax
push 0x1388
push 2
push 0
push 0
push 0
push dword [esp + 0x34]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
neg eax
sbb eax, eax
inc eax
test eax, eax
jne 0x455259
push 1
push dword [esp + 0x1c]
push dword [0x4fd2ec]
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0xf]
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x30]
jmp 0x455271
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], eax
cmp byte [esp + 0x16], 0
jne 0x455345
cmp byte [esp + 0x17], 0
jne 0x455345
mov eax, dword [sym.imp.USER32.dll_PostMessageW]
nop dword [eax]
cmp dword [esp + 0x28], 1
je 0x4552e5
push edx
push esi
push ebx
push edi
call eax
mov eax, dword [0x4f90f4]
cmp dword [eax + 0x58], 0xffffffff
jle 0x4552d9
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4fd2ec], eax
je 0x4552c6
mov eax, dword [0x4f90f4]
push dword [eax + 0x58]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4552d9
mov ecx, dword [0x4f90f4]
mov edx, 1
mov ecx, dword [ecx + 0x58]
call fcn.004018f0
cmp dword [esp + 0x28], 0
je 0x455330
mov eax, dword [sym.imp.USER32.dll_PostMessageW]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x18]
push edi
call eax
mov eax, dword [0x4f90f4]
cmp dword [eax + 0x58], 0xffffffff
jle 0x455330
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4fd2ec], eax
je 0x45531d
mov eax, dword [0x4f90f4]
push dword [eax + 0x58]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x455330
mov ecx, dword [0x4f90f4]
mov edx, 1
mov ecx, dword [ecx + 0x58]
call fcn.004018f0
sub dword [ebp + 0xc], 1
mov edx, dword [esp + 0x30]
mov eax, dword [sym.imp.USER32.dll_PostMessageW]
jne 0x455290
jmp 0x45538b
push edx
push esi
push ebx
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [0x4f90f4]
cmp dword [eax + 0x58], 0xffffffff
jle 0x45538b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4fd2ec], eax
je 0x455378
mov eax, dword [0x4f90f4]
push dword [eax + 0x58]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x45538b
mov ecx, dword [0x4f90f4]
mov edx, 1
mov ecx, dword [ecx + 0x58]
call fcn.004018f0
cmp byte [esp + 0xf], 0
je 0x4553a4
push 0
push dword [esp + 0x1c]
push dword [0x4fd2ec]
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov ecx, dword [0x4fb9cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4cfd08
call fcn.004b5b70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
push 0x4cfc40
push 0
push 0x4e613c
mov ecx, ebx
call fcn.0044e3e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20