Function at 0x4549b0
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.00464230
mov esi, eax
mov dword [esp + 0x20], esi
test esi, esi
je 0x454c05
mov edi, 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 + 0x2c], 2
movzx eax, word [edi]
mov byte [esp + 0x18], 0
mov byte [esp + 0x14], 1
mov dword [esp + 0x24], closesocket
mov dword [esp + 0x28], closesocket
test ax, ax
je 0x454b3c
mov ebx, dword [esp + 0x18]
mov ecx, eax
movzx esi, cx
test esi, 0xffffff80
je 0x454a30
xor eax, eax
jmp 0x454a3e
push 2
push esi
call edx
mov edx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
add esp, 8
mov ecx, esi
and ecx, 0xffffffdf
test eax, eax
cmove ecx, esi
add ecx, 0xffffffbc
cmp ecx, 0x15
ja case.0x454a5b.69
movzx eax, byte [ecx + 0x4550bc]
jmp dword [eax*4 + 0x4550a0]
mov dword [esp + 0x2c], 0
jmp case.0x454a5b.69
mov dword [esp + 0x2c], 1
jmp case.0x454a5b.69
movzx eax, word [edi + 2]
lea esi, [edi + 2]
mov ecx, eax
mov dword [esp + 0x18], ecx
test eax, 0xffffff80
je 0x454a94
xor eax, eax
jmp 0x454aa0
push 2
push eax
call edx
mov ecx, dword [esp + 0x20]
add esp, 8
and ecx, 0xffdf
test eax, eax
movzx eax, byte [esp + 0x14]
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 esi, edi
mov byte [esp + 0x14], cl
mov edi, esi
jmp case.0x454a5b.69
push 3
push 0x4e76e8
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
movzx ebx, bl
test eax, eax
mov ecx, 1
cmove ebx, ecx
lea ecx, [edi + 4]
cmovne ecx, edi
mov edi, ecx
jmp case.0x454a5b.69
lea eax, [edi + 2]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov dword [esp + 0x28], eax
jmp 0x454b16
lea eax, [edi + 2]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov dword [esp + 0x2c], eax
add esp, 4
movzx eax, word [edi + 2]
add edi, 2
mov edx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
mov ecx, eax
test ax, ax
jne 0x454a21
test bl, bl
mov ebx, dword [ebp + 0x14]
jne 0x454b4f
mov esi, dword [esp + 0x20]
mov edx, ebx
mov ecx, esi
call fcn.004b73c0
mov edi, eax
test edi, edi
jne 0x454cd6
push 0x2c
lea eax, [esp + 0x50]
mov dword [esp + 0x4c], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov byte [esp + 0x70], 1
nop dword [eax]
movzx eax, word [ebx]
mov esi, eax
cmp eax, 0x20
je 0x454b7f
cmp eax, 9
jne 0x454b84
add ebx, 2
jmp 0x454b70
test eax, 0xffffff80
je 0x454b8f
xor eax, eax
jmp 0x454b9b
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.0x454df0.3
cmp word [ebx + 2], 0
lea edi, [ebx + 2]
je case.0x454df0.3
mov ecx, edi
call fcn.0041a370
mov dword [esp + 0x48], eax
movzx eax, word [edi]
test ax, ax
je case.0x454df0.3
mov esi, eax
mov ecx, 0x4e6614
mov edx, 0x20
nop dword [eax]
cmp si, dx
je 0x454c36
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x454be0
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x454bd2
mov ebx, dword [esp + 0x10]
mov eax, dword [0x4f90f4]
test byte [eax + 0x100], 1
jne 0x455082
mov ecx, dword [0x4fb9e4]
push 1
push 0
push 0xffffffffffffffff
push 0x4e613c
call fcn.004b55f0
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 0x454c4d
cmp eax, 9
jne 0x454c52
add esi, 2
jmp 0x454c40
test ax, ax
je case.0x454df0.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.0x454df0.3
cmp word [esi + 2], 0
lea ecx, [esi + 2]
je case.0x454df0.3
call fcn.0041a370
mov esi, dword [esp + 0x20]
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x78]
push eax
push esi
call ebx
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 0x45c470
push esi
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov eax, dword [esp + 0x60]
mov edi, esi
mov ecx, dword [esp + 0x4c]
test eax, eax
mov dword [esp + 0x28], ecx
cmovne edi, eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.USER32.dll_ScreenToClient]
jmp 0x454cdc
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [ebp + 0xc]
cmp edx, 1
jl 0x455063
mov ecx, dword [esp + 0x24]
cmp ecx, 0x80000000
je 0x454cff
mov eax, dword [esp + 0x28]
cmp eax, 0x80000000
jne 0x454d4d
lea eax, [esp + 0x38]
push eax
push edi
call ebx
test eax, eax
je case.0x454df0.3
mov ecx, dword [esp + 0x24]
cmp ecx, 0x80000000
jne 0x454d2e
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x28]
cmp eax, 0x80000000
jne 0x454d4a
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x28], eax
mov edx, dword [ebp + 0xc]
movzx ebx, ax
shl ebx, 0x10
movzx eax, cx
or ebx, eax
mov dword [esp + 0x30], 0
mov al, byte [ebp + 8]
cmp al, 0x9f
je 0x454d6f
cmp al, 0x9e
je 0x454d6f
xor ah, ah
jmp 0x454d71
mov ah, 1
mov byte [esp + 0x15], ah
cmp al, 0x9c
je 0x454d81
cmp al, 0x9d
je 0x454d81
xor cl, cl
jmp 0x454d83
mov cl, 1
mov byte [esp + 0x16], cl
test ah, ah
je 0x454db5
cmp al, 0x9f
mov dword [esp + 0x10], 0x20a
mov eax, dword [esp + 0x18]
mov esi, 0xffffff88
mov ecx, 0x78
mov dword [esp + 0x1c], eax
cmove esi, ecx
imul esi, edx
shl esi, 0x10
jmp 0x454e68
test cl, cl
je 0x454de3
cmp al, 0x9c
mov dword [esp + 0x10], 0x20e
mov eax, dword [esp + 0x18]
mov esi, 0x78
mov ecx, 0xffffff88
mov dword [esp + 0x1c], eax
cmove esi, ecx
imul esi, edx
shl esi, 0x10
jmp 0x454e68
movzx eax, al
dec eax
cmp eax, 5
ja case.0x454df0.3
jmp dword [eax*4 + 0x4550d4]
mov dword [esp + 0x10], 0x201
mov esi, 1
mov dword [esp + 0x1c], 0x202
jmp 0x454e68
mov dword [esp + 0x10], 0x204
mov esi, 2
mov dword [esp + 0x1c], 0x205
jmp 0x454e68
mov dword [esp + 0x10], 0x207
mov esi, 0x10
mov dword [esp + 0x1c], 0x208
jmp 0x454e68
mov dword [esp + 0x30], 0x10000
mov esi, 0x10020
jmp 0x454e58
mov dword [esp + 0x30], 0x20000
mov esi, 0x20040
mov dword [esp + 0x1c], 0x20c
mov dword [esp + 0x10], 0x20b
cmp byte [esp + 0x14], 0
mov byte [esp + 0x17], 0
je 0x454f29
push 0
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [esp + 0x18], eax
test eax, eax
je 0x454f1d
cmp eax, dword [0x4fdb70]
je 0x454f1d
mov ecx, dword [0x50010c]
test cl, 1
jne 0x454ece
push str.IsHungAppWindow
or ecx, 1
push str.user32
mov dword [0x50010c], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x500110], eax
jmp 0x454ed3
mov eax, dword [0x500110]
test eax, eax
je 0x454edf
push dword [esp + 0x20]
call eax
jmp 0x454f00
lea eax, [esp + 0x34]
push eax
push 0x1388
push 2
push 0
push 0
push 0
push dword [esp + 0x38]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
neg eax
sbb eax, eax
inc eax
test eax, eax
jne 0x454f1d
push 1
push dword [esp + 0x1c]
push dword [0x4fdb70]
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x17]
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_SetActiveWindow]
jmp 0x454f31
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], eax
cmp byte [esp + 0x15], 0
jne 0x455001
cmp byte [esp + 0x16], 0
jne 0x455001
mov eax, dword [sym.imp.USER32.dll_PostMessageW]
nop dword [eax]
cmp dword [esp + 0x2c], 1
je 0x454fa8
push ebx
push esi
push dword [esp + 0x18]
push edi
call eax
mov eax, dword [0x4f90f4]
cmp dword [eax + 0x58], 0xffffffff
jle 0x454f9c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4fdb70], eax
je 0x454f89
mov eax, dword [0x4f90f4]
push dword [eax + 0x58]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x454f9c
mov ecx, dword [0x4f90f4]
mov edx, 1
mov ecx, dword [ecx + 0x58]
call fcn.004018d0
cmp dword [esp + 0x2c], 0
je 0x454ff0
mov eax, dword [sym.imp.USER32.dll_PostMessageW]
push ebx
push dword [esp + 0x34]
push dword [esp + 0x24]
push edi
call eax
mov eax, dword [0x4f90f4]
cmp dword [eax + 0x58], 0xffffffff
jle 0x454ff0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4fdb70], eax
je 0x454fdd
mov eax, dword [0x4f90f4]
push dword [eax + 0x58]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x454ff0
mov ecx, dword [0x4f90f4]
mov edx, 1
mov ecx, dword [ecx + 0x58]
call fcn.004018d0
sub dword [ebp + 0xc], 1
mov eax, dword [sym.imp.USER32.dll_PostMessageW]
jne 0x454f50
jmp 0x45504a
push ebx
push esi
push dword [esp + 0x18]
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [0x4f90f4]
cmp dword [eax + 0x58], 0xffffffff
jle 0x45504a
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4fdb70], eax
je 0x455037
mov eax, dword [0x4f90f4]
push dword [eax + 0x58]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x45504a
mov ecx, dword [0x4f90f4]
mov edx, 1
mov ecx, dword [ecx + 0x58]
call fcn.004018d0
cmp byte [esp + 0x17], 0
je 0x455063
push 0
push dword [esp + 0x1c]
push dword [0x4fdb70]
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov ecx, dword [0x4fb9e4]
push 1
push 0
push 0xffffffffffffffff
push 0x4cfcf8
call fcn.004b55f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
push 0x4cfc30
push 0
push 0x4e613c
mov ecx, ebx
call fcn.0044e0b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20