Function at 0x404320
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x47b040]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, ecx
mov ecx, dword [0x53db38]
mov dword [esp + 0xc], eax
mov dword [esp + 0x40], ecx
push esi
push edi
test ecx, ecx
je case.0x404bca.527
mov edi, dword [ecx + 0x74]
lea esi, [ecx + 8]
mov dword [esp + 0x18], edi
cmp edx, 0x200
ja 0x404bb2
je 0x404b4a
lea eax, [edx - 7]
cmp eax, 0xfe
ja case.0x404bca.527
movzx eax, byte [eax + 0x404db0]
jmp dword [eax*4 + 0x404d9c]
cmp edx, 0x100
je 0x40439b
mov byte [esp + 0x14], 0
cmp edx, 0x104
jne 0x4043a0
mov byte [esp + 0x14], 1
cmp dword [ebp + 8], 0x100
jae case.0x404bca.527
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call edi
shr eax, 0xf
and al, 1
cmp byte [esi + 0x3761], 0
mov byte [esp + 0x48], al
je 0x4043ea
test al, al
je 0x4043d7
movss xmm3, dword [0x474f40]
jmp 0x4043da
xorps xmm3, xmm3
push dword [esp + 0x48]
mov ecx, esi
push 0x1000
call fcn.004253e0
push 0x10
call edi
shr eax, 0xf
and al, 1
cmp byte [esi + 0x3761], 0
mov byte [esp + 0x48], al
je 0x404421
test al, al
je 0x40440e
movss xmm3, dword [0x474f40]
jmp 0x404411
xorps xmm3, xmm3
push dword [esp + 0x48]
mov ecx, esi
push 0x2000
call fcn.004253e0
push 0x12
call edi
shr eax, 0xf
and al, 1
cmp byte [esi + 0x3761], 0
mov byte [esp + 0x48], al
je 0x404458
test al, al
je 0x404445
movss xmm3, dword [0x474f40]
jmp 0x404448
xorps xmm3, xmm3
push dword [esp + 0x48]
mov ecx, esi
push 0x4000
call fcn.004253e0
push 0x5d
call edi
shr eax, 0xf
and al, 1
cmp byte [esi + 0x3761], 0
mov byte [esp + 0x48], al
je 0x40448f
test al, al
je 0x40447c
movss xmm3, dword [0x474f40]
jmp 0x40447f
xorps xmm3, xmm3
push dword [esp + 0x48]
mov ecx, esi
push 0x8000
call fcn.004253e0
mov esi, dword [ebp + 8]
cmp esi, 0xd
jne 0x4044aa
mov eax, dword [ebp + 0xc]
shr eax, 0x10
test eax, 0x100
mov eax, 0x10d
cmovne esi, eax
mov ecx, esi
call fcn.00403de0
test eax, eax
je 0x4044c5
mov dl, byte [esp + 0x14]
push ecx
push esi
mov ecx, eax
call fcn.00403250
add esp, 8
cmp esi, 0x10
jne 0x4045e6
push 0xa0
call edi
mov cl, byte [esp + 0x14]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x40454d
mov eax, dword [0x53db38]
test eax, eax
jne 0x40450c
push 0xfe1
push str.C:UsersmegawOneDrivePlochaTE_LoaderTE_Loader_SrcTE_Loader_SrcImGuiimgui.cpp
push str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov eax, dword [0x53db38]
add esp, 0xc
mov cl, byte [esp + 0x14]
cmp byte [eax + 0x3769], 0
lea esi, [eax + 8]
je 0x404539
test cl, cl
je 0x404526
movss xmm3, dword [0x474f40]
jmp 0x404529
xorps xmm3, xmm3
push dword [esp + 0x14]
mov ecx, esi
push 0x210
call fcn.004253e0
mov dword [esi + 0x334], 0x210
mov dword [esi + 0x8f4], 0xa0
push 0xa1
call edi
mov cl, byte [esp + 0x14]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x404bca.527
mov esi, dword [0x53db38]
test esi, esi
jne 0x404591
push 0xfe1
push str.C:UsersmegawOneDrivePlochaTE_LoaderTE_Loader_SrcTE_Loader_SrcImGuiimgui.cpp
push str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov esi, dword [0x53db38]
add esp, 0xc
mov cl, byte [esp + 0x14]
cmp byte [esi + 0x3769], 0
je 0x4045bf
test cl, cl
je 0x4045a8
movss xmm0, dword [0x474f40]
jmp 0x4045ab
xorps xmm0, xmm0
push dword [esp + 0x14]
movaps xmm3, xmm0
lea ecx, [esi + 8]
push 0x214
call fcn.004253e0
mov dword [esi + 0x340], 0x214
xor eax, eax
mov dword [esi + 0x90c], 0xa1
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00461666
mov esp, ebp
pop ebp
ret
cmp esi, 0x11
jne 0x404707
push 0xa2
call edi
mov cl, byte [esp + 0x14]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x40466e
mov eax, dword [0x53db38]
test eax, eax
jne 0x40462d
push 0xfe1
push str.C:UsersmegawOneDrivePlochaTE_LoaderTE_Loader_SrcTE_Loader_SrcImGuiimgui.cpp
push str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov eax, dword [0x53db38]
add esp, 0xc
mov cl, byte [esp + 0x14]
cmp byte [eax + 0x3769], 0
lea esi, [eax + 8]
je 0x40465a
test cl, cl
je 0x404647
movss xmm3, dword [0x474f40]
jmp 0x40464a
xorps xmm3, xmm3
push dword [esp + 0x14]
mov ecx, esi
push 0x20f
call fcn.004253e0
mov dword [esi + 0x33c], 0x20f
mov dword [esi + 0x8f0], 0xa2
push 0xa3
call edi
mov cl, byte [esp + 0x14]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x404bca.527
mov esi, dword [0x53db38]
test esi, esi
jne 0x4046b2
push 0xfe1
push str.C:UsersmegawOneDrivePlochaTE_LoaderTE_Loader_SrcTE_Loader_SrcImGuiimgui.cpp
push str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov esi, dword [0x53db38]
add esp, 0xc
mov cl, byte [esp + 0x14]
cmp byte [esi + 0x3769], 0
je 0x4046e0
test cl, cl
je 0x4046c9
movss xmm0, dword [0x474f40]
jmp 0x4046cc
xorps xmm0, xmm0
push dword [esp + 0x14]
movaps xmm3, xmm0
lea ecx, [esi + 8]
push 0x213
call fcn.004253e0
mov dword [esi + 0x348], 0x213
xor eax, eax
mov dword [esi + 0x908], 0xa3
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00461666
mov esp, ebp
pop ebp
ret
cmp esi, 0x12
jne case.0x404bca.527
push 0xa4
call edi
mov cl, byte [esp + 0x14]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x40478f
mov eax, dword [0x53db38]
test eax, eax
jne 0x40474e
push 0xfe1
push str.C:UsersmegawOneDrivePlochaTE_LoaderTE_Loader_SrcTE_Loader_SrcImGuiimgui.cpp
push str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov eax, dword [0x53db38]
add esp, 0xc
mov cl, byte [esp + 0x14]
cmp byte [eax + 0x3769], 0
lea esi, [eax + 8]
je 0x40477b
test cl, cl
je 0x404768
movss xmm3, dword [0x474f40]
jmp 0x40476b
xorps xmm3, xmm3
push dword [esp + 0x14]
mov ecx, esi
push 0x211
call fcn.004253e0
mov dword [esi + 0x344], 0x211
mov dword [esi + 0x8f8], 0xa4
push 0xa5
call edi
mov cl, byte [esp + 0x14]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x404bca.527
mov esi, dword [0x53db38]
test esi, esi
jne 0x4047d3
push 0xfe1
push str.C:UsersmegawOneDrivePlochaTE_LoaderTE_Loader_SrcTE_Loader_SrcImGuiimgui.cpp
push str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov esi, dword [0x53db38]
add esp, 0xc
mov cl, byte [esp + 0x14]
cmp byte [esi + 0x3769], 0
je 0x404801
test cl, cl
je 0x4047ea
movss xmm0, dword [0x474f40]
jmp 0x4047ed
xorps xmm0, xmm0
push dword [esp + 0x14]
movaps xmm3, xmm0
lea ecx, [esi + 8]
push 0x215
call fcn.004253e0
mov dword [esi + 0x350], 0x215
xor eax, eax
mov dword [esi + 0x910], 0xa5
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00461666
mov esp, ebp
pop ebp
ret
cmp edx, 7
mov eax, ecx
mov dword [esp + 0x18], eax
sete byte [esp + 0x1f]
add eax, 8
cmp eax, esi
mov eax, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
je 0x404865
push 0x5d8
push str.C:UsersmegawOneDrivePlochaTE_LoaderTE_Loader_SrcTE_Loader_SrcImGuiimgui.cpp
push str.g.IO__this___Can_only_add_events_to_current_context._
call eax
mov ecx, dword [0x53db38]
add esp, 0xc
mov eax, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov dword [esp + 0x48], ecx
mov esi, dword [ecx + 0x3780]
sub esi, 1
js 0x4048b4
lea edi, [esi + esi*2]
shl edi, 3
test esi, esi
js 0x404882
cmp esi, dword [ecx + 0x3780]
jl 0x40489a
push 0x6fb
push str.C:UsersmegawOneDrivePlochaTE_LoaderTE_Loader_SrcTE_Loader_SrcImGuiimgui.h
push str.i___0__i___Size
call eax
mov ecx, dword [esp + 0x54]
add esp, 0xc
mov eax, dword [ecx + 0x3788]
add eax, edi
cmp dword [eax], 6
je 0x404904
mov eax, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
sub edi, 0x18
sub esi, 1
jns 0x404876
mov esi, dword [esp + 0x18]
cmp byte [esi + 0x3768], 0
sete al
mov cl, byte [esp + 0x1f]
cmp al, cl
je case.0x404bca.527
mov edi, dword [esi + 0x3784]
add esi, 0x3780
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
mov byte [esp + 0x28], cl
mov ecx, dword [esi]
mov dword [esp + 0x20], 6
cmp ecx, edi
jne 0x404923
inc ecx
test edi, edi
je 0x404911
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x404916
test eax, eax
je 0x4048b4
mov al, byte [eax + 8]
mov esi, dword [esp + 0x18]
jmp 0x4048c2
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.0043e3d0
mov eax, dword [esi]
movups xmm0, xmmword [esp + 0x20]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 8]
movups xmmword [eax + ecx*8], xmm0
xorps xmm0, xmm0
movq qword [eax + ecx*8 + 0x10], xmm0
inc dword [esi]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00461666
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x404a2e
mov ecx, dword [ebp + 8]
lea eax, [ecx - 1]
cmp eax, 0xfffe
ja case.0x404bca.527
movzx edi, cx
mov eax, edi
test ax, ax
jne 0x40498d
cmp word [esi + 0x3764], ax
je case.0x404bca.527
cmp byte [esi + 0x3761], 0
je case.0x404bca.527
movzx edx, word [esi + 0x3764]
mov ecx, eax
and ecx, 0xfc00
mov dword [esp + 0x48], 0xd800
cmp cx, word [esp + 0x48]
jne 0x4049e3
test dx, dx
je 0x4049c9
push 0xfffd
mov ecx, esi
call fcn.004252a0
mov word [esi + 0x3764], di
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00461666
mov esp, ebp
pop ebp
ret
test dx, dx
je 0x404a10
mov eax, 0xdc00
cmp cx, ax
je 0x404a02
push 0xfffd
mov ecx, esi
call fcn.004252a0
mov eax, edi
jmp 0x404a07
mov eax, 0xfffd
xor ecx, ecx
mov word [esi + 0x3764], cx
movzx eax, ax
mov ecx, esi
push eax
call fcn.004252a0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00461666
mov esp, ebp
pop ebp
ret
push 1
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], 0
push eax
push 1
lea eax, [ebp + 8]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [0x53db38]
movzx edi, word [esp + 0x48]
mov dword [esp + 0x18], ecx
lea eax, [ecx + 8]
cmp eax, esi
je 0x404a7f
push 0x4d8
push str.C:UsersmegawOneDrivePlochaTE_LoaderTE_Loader_SrcTE_Loader_SrcImGuiimgui.cpp
push str.g.IO__this___Can_only_add_events_to_current_context._
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov ecx, dword [esp + 0x24]
add esp, 0xc
test edi, edi
je case.0x404bca.527
cmp byte [esi + 0x3761], 0
je case.0x404bca.527
lea esi, [ecx + 0x3780]
mov dword [esp + 0x28], edi
mov ecx, dword [esi]
xorps xmm0, xmm0
mov edi, dword [esi + 4]
movlpd qword [esp + 0x2c], xmm0
mov dword [esp + 0x34], 0
mov dword [esp + 0x20], 5
mov dword [esp + 0x24], 2
cmp ecx, edi
jne 0x404aea
inc ecx
test edi, edi
je 0x404ad8
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x404add
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.0043e3d0
mov eax, dword [esi]
movups xmm0, xmmword [esp + 0x20]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 8]
movups xmmword [eax + ecx*8], xmm0
movq xmm0, qword [esp + 0x30]
movq qword [eax + ecx*8 + 0x10], xmm0
inc dword [esi]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00461666
mov esp, ebp
pop ebp
ret
cmp word [ebp + 0xc], 1
jne case.0x404bca.527
call fcn.00403100
test al, al
je case.0x404bca.527
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00461666
mov esp, ebp
pop ebp
ret
cmp byte [edi + 8], 0
mov dword [edi + 4], eax
jne 0x404b7e
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], 0x10
mov dword [esp + 0x28], 2
mov dword [esp + 0x30], 0
call dword [sym.imp.USER32.dll_TrackMouseEvent]
mov byte [edi + 8], 1
mov ecx, dword [ebp + 0xc]
mov eax, ecx
shr eax, 0x10
cwde
movd xmm2, eax
movsx eax, cx
mov ecx, esi
cvtdq2ps xmm2, xmm2
movd xmm1, eax
cvtdq2ps xmm1, xmm1
call fcn.00425610
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00461666
mov esp, ebp
pop ebp
ret
lea eax, [edx - 0x201]
cmp eax, 0xa2
ja case.0x404bca.527
movzx eax, byte [eax + 0x404ecc]
jmp dword [eax*4 + 0x404eb0]
mov ecx, dword [esp + 0x14]
cmp dword [edi + 4], ecx
jne 0x404be1
mov dword [edi + 4], 0
movss xmm1, dword [0x475050]
mov ecx, esi
movaps xmm2, xmm1
mov byte [edi + 8], 0
call fcn.00425610
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00461666
mov esp, ebp
pop ebp
ret
xor edi, edi
cmp edx, 0x204
je 0x404c1c
cmp edx, 0x206
jne 0x404c21
mov edi, 1
cmp edx, 0x207
je 0x404c31
cmp edx, 0x209
jne 0x404c36
mov edi, 2
cmp edx, 0x20b
je 0x404c46
cmp edx, 0x20d
jne 0x404c56
mov edi, dword [ebp + 8]
shr edi, 0x10
dec edi
neg edi
sbb edi, edi
neg edi
add edi, 3
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 0xc], 0
jne 0x404c79
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x404c75
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_SetCapture]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0xc]
bts eax, edi
push 1
mov dword [ecx + 0xc], eax
mov ecx, esi
push edi
call fcn.004257f0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00461666
mov esp, ebp
pop ebp
ret
xor ecx, ecx
cmp edx, 0x205
sete cl
mov dword [esp + 0x18], ecx
cmp edx, 0x208
jne 0x404cbd
mov ecx, 2
jmp 0x404cd5
cmp edx, 0x20c
jne 0x404cd9
mov ecx, dword [ebp + 8]
shr ecx, 0x10
dec ecx
neg ecx
sbb ecx, ecx
neg ecx
add ecx, 3
mov dword [esp + 0x18], ecx
mov eax, dword [edi + 0xc]
btr eax, ecx
mov dword [edi + 0xc], eax
test eax, eax
jne 0x404cfc
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [esp + 0x14]
jne 0x404cf8
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [esp + 0x18]
push 0
push ecx
mov ecx, esi
call fcn.004257f0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00461666
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
xorps xmm1, xmm1
shr eax, 0x10
mov ecx, esi
cwde
movd xmm2, eax
cvtdq2ps xmm2, xmm2
divss xmm2, dword [0x474fe4]
call fcn.00425960
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00461666
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
xorps xmm2, xmm2
shr eax, 0x10
mov ecx, esi
cwde
movd xmm1, eax
cvtdq2ps xmm1, xmm1
divss xmm1, dword [0x474fe4]
call fcn.00425960
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00461666
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 7
jne case.0x404bca.527
mov byte [edi + 0x25], 1
mov ecx, dword [esp + 0x4c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00461666
mov esp, ebp
pop ebp
ret