Function at 0x545960
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.USER32.dll_GetActiveWindow]
push edi
mov dword [0x7106fc], eax
mov dword [0x7106f4], ecx
call esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [ebp + 0x10]
mov dword [0x710854], eax
mov eax, dword [0x710a9c]
mov dword [0x710874], ecx
test ecx, ecx
mov dword [0x710860], eax
je 0x545b18
mov edx, dword [eax]
push 0
push 0x710864
push 0x598f68
push eax
call dword [edx + 0xc]
test eax, eax
jge 0x5459d8
push eax
call fcn.00545bd0
add esp, 4
push eax
push str.DirectInput::CreateDevice:__s
call fcn.005588f0
add esp, 8
mov eax, dword [0x710864]
push 0x5855f0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test eax, eax
jge 0x545a03
push eax
call fcn.00545bd0
add esp, 4
push eax
push str.DirectInput::SetDataFormat:__s
call fcn.005588f0
add esp, 8
mov eax, dword [0x710864]
push 5
push edi
push eax
mov edx, dword [eax]
call dword [edx + 0x34]
test eax, eax
jge 0x545a2c
push eax
call fcn.00545bd0
add esp, 4
push eax
push str.DirectInput::SetCooperativeLevel:__s
call fcn.005588f0
add esp, 8
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [0x71086c], eax
jne 0x545a55
push str.CreateEvent:_failed.
call fcn.005588f0
mov eax, dword [0x71086c]
add esp, 4
mov ecx, dword [0x710864]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x30]
test eax, eax
jge 0x545a89
push 0
push 0x5c432c
push str.Could_not_associate_event
call esi
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
push eax
call edi
push 1
call fcn.005697a0
add esp, 4
jmp 0x545a8f
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x710864]
push 0x5c4248
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
test eax, eax
jge 0x545ac0
push 0
push str.System_mouse
push 0x5c4368
call esi
push eax
call edi
push 1
call fcn.005697a0
add esp, 4
mov eax, dword [0x710864]
mov dword [0x5c4270], 0
push 0x5c4260
push 2
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
test eax, eax
jge 0x545afb
push 0
push str.System_mouse__absolute_mode_
push str.Could_not_set_properties
call esi
push eax
call edi
push 1
call fcn.005697a0
add esp, 4
mov eax, dword [0x710864]
test eax, eax
je 0x545b11
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [0x710860]
jmp 0x545b1e
mov eax, dword [0x710860]
jmp 0x545b1e
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [eax]
push 0
push 0x710868
push 0x598f78
push eax
call dword [edx + 0xc]
test eax, eax
jge 0x545b4f
push 0
push str.System_keyboard_COM_interface
push str.Can_not_create_device
call esi
push eax
call edi
push 1
call fcn.005697a0
add esp, 4
mov eax, dword [0x710868]
push 0x585560
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test eax, eax
jge 0x545b7e
push 0
push str.System_keyboard
push str.Could_not_set_device_parameters
call esi
push eax
call edi
push 1
call fcn.005697a0
add esp, 4
mov eax, dword [0x710868]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x14
mov dword [ebp - 0x10], 0x10
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0x20
mov edx, dword [eax]
push ecx
push 1
push eax
call dword [edx + 0x18]
mov eax, dword [0x710868]
test eax, eax
je 0x545bc1
mov edx, dword [eax]
push eax
call dword [edx + 0x1c]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret