Function at 0x509a10
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x62cfd1
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x6d8314]
xor eax, esp
mov dword [esp + 0x174], eax
push esi
push edi
mov eax, dword [0x6d8314]
xor eax, esp
push eax
lea eax, [esp + 0x188]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x20], esi
mov eax, dword [ebp + 0x14]
xor edi, edi
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x28], eax
mov eax, edx
and eax, 0x40000000
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], eax
mov eax, edx
sar eax, 0x10
and eax, 0xfff
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
cmp eax, 0x100
je 0x509c61
cmp eax, 0x104
je 0x509c61
cmp eax, 0x101
je 0x509c28
cmp eax, 0x105
je 0x509c28
cmp eax, 0x204
jne 0x509ac1
mov edi, 2
jmp 0x509b83
cmp eax, 0x205
jne 0x509ad5
mov dword [esp + 0x18], 2
jmp 0x509b83
cmp eax, 0x207
jne 0x509ae6
mov edi, 4
jmp 0x509b83
cmp eax, 0x208
jne 0x509afa
mov dword [esp + 0x18], 4
jmp 0x509b83
cmp eax, 0x20b
jne 0x509b2e
xor edi, edi
test cl, 0x20
je 0x509b18
mov edi, 5
mov dword [esp + 0x14], edi
mov eax, edi
jmp 0x509c89
test cl, 0x40
mov eax, 6
cmovne edi, eax
mov dword [esp + 0x14], edi
mov eax, edi
jmp 0x509c89
cmp eax, 0x20c
jne 0x509bf3
movzx eax, word [esi + 0x7f4]
mov dword [esp + 0x18], edi
cmp eax, 5
je 0x509b6f
cmp word [esi + 0x7f6], 5
mov edx, dword [ebp + 0x10]
je 0x509b6f
cmp eax, 6
je 0x509b65
cmp word [esi + 0x7f6], 6
jne 0x509b77
mov dword [esp + 0x18], 6
jmp 0x509b77
mov dword [esp + 0x18], 5
mov eax, dword [esp + 0x18]
test eax, eax
je 0x509e28
call fcn.004f2880
cmp eax, dword [esi + 0x630]
jne 0x509ca2
cmp dx, word [esi + 0x634]
jne 0x509ca2
mov eax, dword [ebp + 8]
cmp eax, 0x100
je 0x509bb6
cmp eax, 0x104
jne 0x509ca2
cmp dword [esp + 0x24], 0
jne 0x509ca2
mov eax, dword [esi + 0x628]
cmp eax, 2
je 0x509bd5
cmp eax, 1
jne 0x509ca2
lea ecx, [esi - 0x24]
call fcn.0050fe00
push 1
lea ecx, [esi - 0x24]
call fcn.005c52a0
mov ecx, dword [esp + 0x28]
mov byte [ecx], 1
jmp 0x509e2c
cmp eax, 0x20a
jne 0x509e28
mov eax, ecx
shr eax, 0x10
movsx ecx, ax
mov eax, 0x88888889
imul ecx
add edx, ecx
mov ecx, dword [ebp + 0xc]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov eax, edi
setns al
add eax, 0x9a
jmp 0x509c82
push 0
push ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
test eax, eax
jne 0x509c50
push 1
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x18], eax
jmp 0x509b7b
mov ecx, dword [ebp + 0xc]
mov eax, ecx
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x18], eax
jmp 0x509b7b
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push 0
push ecx
call edi
test eax, eax
jne 0x509c7d
push 1
push dword [esp + 0x18]
call edi
mov ecx, dword [ebp + 0xc]
jmp 0x509c82
mov ecx, dword [ebp + 0xc]
mov eax, ecx
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x14]
cmp eax, 0x5d
jne 0x509b7b
mov ecx, dword [esp + 0x28]
mov byte [ecx], 0
jmp 0x509e2c
mov eax, dword [esi + 0x7f4]
mov ecx, eax
shr ecx, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x1f], 0
cmp ecx, 0x9b
je 0x509ccd
cmp ecx, 0x9a
je 0x509ccd
mov dx, word [esp + 0x16]
jmp 0x509cd9
xor edx, edx
mov byte [esp + 0x1f], 1
mov word [esp + 0x16], dx
mov cx, word [esp + 0x14]
movzx esi, cx
mov dword [esp + 0x24], esi
cmp esi, 0x9b
mov esi, dword [esp + 0x20]
je 0x509cfb
cmp dword [esp + 0x24], 0x9a
jne 0x509d0f
mov cx, dx
mov byte [esp + 0x1f], 1
xor edx, edx
mov word [esp + 0x14], cx
mov word [esp + 0x16], dx
test edi, edi
je 0x509d51
movzx ecx, cx
cmp ecx, edi
je 0x509d51
movzx ecx, dx
cmp ecx, edi
mov cx, word [esp + 0x14]
je 0x509d56
test cx, cx
jne 0x509d35
mov cx, di
mov word [esp + 0x14], cx
jmp 0x509d56
test dx, dx
jne 0x509d44
mov dx, di
mov word [esp + 0x16], dx
jmp 0x509d56
mov word [esp + 0x14], dx
mov dx, di
mov word [esp + 0x16], dx
mov cx, word [esp + 0x14]
cmp cx, dx
jne 0x509d62
xor edx, edx
mov word [esp + 0x16], dx
cmp dword [esp + 0x18], 0
je 0x509d8e
movzx ecx, cx
cmp ecx, dword [esp + 0x18]
jne 0x509d79
mov word [esp + 0x14], dx
jmp 0x509d82
movzx ecx, dx
cmp ecx, dword [esp + 0x18]
jne 0x509d89
xor edx, edx
mov word [esp + 0x16], dx
mov cx, word [esp + 0x14]
cmp word [esi + 0x7f4], cx
jne 0x509da0
cmp word [esi + 0x7f6], dx
je 0x509dfa
sub esp, 0x18
mov ecx, esp
mov dword [ecx], vtable.std::_Func_impl_struct_std::_Callable_obj_class__lambda_7a59145a947dd1be69abb080cb416928___0___class_std::allocator_class_std::_Func_class_void__class_view::CKeyboardMappingUI_____void__class_view::CKeyboardMappingUI__.0
mov dword [ecx + 4], eax
mov dword [ecx + 0x10], ecx
lea ecx, [esi - 0x24]
mov dword [esp + 0x1a8], 0xffffffff
call fcn.00509730
mov ecx, dword [esp + 0x20]
sub esp, 0x18
mov eax, dword [esp + 0x2c]
mov edx, esp
mov dword [ecx + 0x7f4], eax
mov dword [edx], vtable.std::_Func_impl_struct_std::_Callable_obj_class__lambda_9838e1fdfd29cfa35bf799132c2fd1c0___0___class_std::allocator_class_std::_Func_class_void__class_view::CKeyboardMappingUI_____void__class_view::CKeyboardMappingUI__.0
lea ecx, [esi - 0x24]
mov dword [edx + 4], eax
mov dword [edx + 0x10], edx
mov dword [esp + 0x1a8], 0xffffffff
call fcn.00509730
mov esi, dword [esp + 0x20]
cmp dword [esi + 0x628], 2
jne 0x509e18
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x82c]
call dword [sym.imp.USER32.dll_PostMessageW]
cmp byte [esp + 0x1f], 0
mov ecx, dword [esp + 0x28]
sete al
mov byte [ecx], al
jmp 0x509e2c
mov ecx, dword [esp + 0x28]
mov eax, dword [ebp + 8]
cmp eax, 0x201
jne 0x50a0ee
mov eax, dword [ebp + 0x10]
movzx ecx, ax
shr eax, 0x10
push eax
mov dword [esp + 0x30], ecx
push ecx
lea ecx, [esi + 8]
mov dword [esp + 0x38], eax
call fcn.005ca220
mov dword [esp + 0x14], eax
test eax, eax
je 0x50a0e1
mov edx, dword [eax]
lea ecx, [esp + 0xf4]
push ecx
mov ecx, eax
call dword [edx + 8]
lea eax, [esp + 0xf4]
mov dword [esp + 0x190], 2
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00510ca0
mov esi, dword [esp + 0x24]
mov eax, dword [0x700c64]
cmp esi, eax
je 0x509fff
cmp dword [esi + 0xb0], 0
je 0x509ff7
mov ecx, dword [esp + 0x20]
cmp dword [ecx + 0x7e0], 0
jne 0x509ff7
lea eax, [esi + 0xa0]
push eax
lea ecx, [esp + 0x58]
call fcn.00413c50
push 0x18a0
mov byte [esp + 0x194], 3
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [esp + 0x24], eax
mov byte [esp + 0x190], 4
test eax, eax
je 0x509f1f
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x7d4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
sub esp, 0x10
mov ecx, esp
push eax
call fcn.005c5d40
mov ecx, dword [esp + 0x34]
call fcn.00500890
mov edx, eax
mov dword [esp + 0x18], eax
jmp 0x509f25
xor edx, edx
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x20]
mov byte [esp + 0x190], 3
push edx
mov dword [esp + 0x28], edx
mov ecx, dword [eax + 0x7d0]
mov eax, dword [ecx + 0x760]
add ecx, 0x760
call dword [eax + 0x14]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
lea eax, [ecx + 0x14]
push eax
lea eax, [edx + 0x14]
push eax
lea eax, [ecx - 0x14]
push eax
lea eax, [edx - 0x14]
push eax
lea ecx, [esp + 0x44]
call fcn.005c5d70
mov ecx, dword [esp + 0x18]
push 1
sub esp, 0x10
movdqu xmm0, xmmword [eax]
mov edx, dword [ecx]
mov ecx, esp
movdqu xmmword [ecx], xmm0
mov ecx, dword [esp + 0x2c]
call dword [edx + 0x4c]
push dword [esi + 0x9c]
mov ecx, dword [esp + 0x1c]
call fcn.005d4810
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x3c]
add eax, 0xffffffdc
push eax
call fcn.0050a140
mov ecx, dword [esp + 0x18]
push eax
mov byte [esp + 0x194], 5
lea ecx, [ecx + 0x1818]
call fcn.00511610
lea ecx, [esp + 0x34]
call fcn.004137c0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x190], 2
mov dword [eax + 0x7e0], ecx
lea ecx, [esp + 0x54]
call fcn.00413cd0
mov eax, dword [0x700c64]
cmp esi, eax
jne 0x50a0ca
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 0x628]
cmp eax, 1
je 0x50a017
cmp eax, 2
jne 0x50a0ca
mov eax, dword [esi + 0x7e4]
test eax, eax
je 0x50a034
cmp dword [esp + 0x14], eax
je 0x50a034
lea ecx, [esi - 0x24]
call fcn.0050c780
jmp 0x50a0ca
push 0
push str.noticelabel
lea ecx, [esp + 0xfc]
call fcn.005c6510
test eax, eax
jne 0x50a0ca
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0xcc]
call eax
push eax
lea ecx, [esp + 0x70]
call fcn.005c5e60
mov byte [esp + 0x190], 6
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
lea ecx, [esp + 0x6c]
movdqu xmm0, xmmword [eax]
movdqu xmmword [esp + 0x34], xmm0
call fcn.005c6970
test al, al
jne 0x50a0b9
sub esp, 0x10
lea eax, [esp + 0x44]
mov ecx, esp
push eax
call fcn.005c5d40
sub esp, 0x84
lea eax, [esp + 0x100]
mov ecx, esp
push eax
call fcn.005c5e60
lea ecx, [esi - 0x24]
call fcn.0050c440
lea ecx, [esp + 0x6c]
mov byte [esp + 0x190], 2
call fcn.005c5f80
lea ecx, [esp + 0xf4]
mov dword [esp + 0x190], 0xffffffff
call fcn.005c5f80
mov eax, dword [ebp + 8]
cmp edi, 0x1b
jne 0x50a0fa
lea eax, [edi - 0x1a]
jmp 0x50a10e
cmp eax, 0x20a
jne 0x50a0e4
mov byte [ecx], 0
jmp 0x50a0e4
push dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.005c7310
mov ecx, dword [esp + 0x188]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x174]
xor ecx, esp
call fcn.006116d0
mov esp, ebp
pop ebp
ret 0x10