Function at 0x4081b0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ce05
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x440040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [0x440b34]
mov esi, dword [eax + 0xc]
movzx eax, byte [ebx + 0x3a5]
add eax, 0xfffffffd
cmp eax, 8
ja case.0x4081f8.5
jmp dword [eax*4 + 0x4085d8]
mov ecx, esi
call fcn.004183b0
push str.Successfully_cleared_registered_Bluetooth_devices__r_n
jmp 0x408289
mov ecx, esi
call fcn.004183b0
push str.Successfully_erased_all_memory_slots_on_your_Cronus_Zen__r_n
jmp 0x408289
mov ecx, esi
call fcn.004183b0
cmp byte [ebx + 0x484], 0
mov ecx, str.enabled
mov eax, str.disabled
cmove eax, ecx
push eax
push str.Successfully__ws_PS4_Specialty__r_n
push 0x4aa657
push esi
call fcn.00418430
add esp, 0x10
jmp case.0x4081f8.5
mov ecx, esi
call fcn.004183b0
cmp byte [ebx + 0x485], 0
mov ecx, str.enabled
mov eax, str.disabled
cmove eax, ecx
push eax
push str.Successfully__ws_Remote_Play__r_n
push 0x4aa657
push esi
call fcn.00418430
add esp, 0x10
jmp case.0x4081f8.5
mov ecx, esi
call fcn.004183b0
push str.Successfully_requested_to_turn_off_the_Bluetooth_connected_controller__r_n
push 0x4aa657
push esi
call fcn.00418430
add esp, 0xc
movzx eax, byte [ebx + 0x3a4]
sub eax, 2
je 0x40833a
sub eax, 1
je 0x4082f9
sub eax, 1
jne 0x40837c
mov ecx, esi
call fcn.004183b0
movzx eax, byte [ebx + 0x3e8]
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x314]
add eax, ebx
cmp dword [eax + 0x14], 7
jbe 0x4082d7
mov eax, dword [eax]
push eax
push str.Successfully_set_remote_slot_change_to__ws__r_n
push 0x4aa657
push esi
call fcn.00418430
mov al, byte [ebx + 0x3e8]
mov byte [ebx + 0x483], al
jmp 0x408379
mov ecx, esi
call fcn.004183b0
movzx eax, byte [ebx + 0x3e8]
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x26c]
add eax, ebx
cmp dword [eax + 0x14], 7
jbe 0x40831b
mov eax, dword [eax]
push eax
push str.Successfully_set_emulator_output_protocol_to__ws__r_n
push 0x4aa657
push esi
call fcn.00418430
mov al, byte [ebx + 0x3e8]
mov byte [ebx + 0x482], al
jmp 0x408379
mov ecx, esi
call fcn.004183b0
movzx eax, byte [ebx + 0x3e8]
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x224]
add eax, ebx
cmp dword [eax + 0x14], 7
jbe 0x40835c
mov eax, dword [eax]
push eax
push str.Successfully_set_operational_mode_to__ws__r_n
push 0x4aa657
push esi
call fcn.00418430
mov al, byte [ebx + 0x3e8]
mov byte [ebx + 0x481], al
add esp, 0x10
cmp byte [ebx + 0x3a4], 0
je 0x4083b6
mov eax, dword [ebx + 0x3a8]
cmp eax, 0xffffffff
je 0x4083af
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebx + 0x3a8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x3a8], 0xffffffff
mov byte [ebx + 0x3a4], 0
lea eax, [ebx + 0x420]
mov ecx, esi
push eax
call fcn.0041e360
mov al, byte [ebx + 0x3a5]
cmp al, 4
jne 0x408480
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.0040de60
push 0x41
mov dword [ebp - 4], 0
call fcn.0042b8ab
push 0x41
mov edi, eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x18], edi
mov eax, dword [esi + 4]
movzx eax, word [eax]
mov word [edi], ax
movzx eax, word [esi + 0xc]
sub ax, 2
movzx eax, ax
mov word [edi + 2], ax
mov byte [edi + 4], 1
mov eax, dword [esi + 0xc]
sub eax, 2
push eax
mov eax, dword [esi + 4]
add eax, 2
push eax
lea eax, [edi + 5]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x1c
lea eax, [ebp - 0x18]
lea ecx, [ebx + 0x35c]
push eax
call fcn.0040d270
cmp dword [ebx + 0x36c], 1
jne 0x408459
push dword [ebp - 0x18]
mov ecx, ebx
call fcn.0041cbe0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi + 4]
test eax, eax
je 0x408470
push eax
call fcn.0042b8a6
add esp, 4
push 0x10
push esi
call fcn.0042b893
add esp, 8
jmp 0x408515
cmp al, 9
je 0x4084fb
cmp al, 0xa
je 0x4084fb
mov edi, dword [sym.imp.USER32.dll_EnableMenuItem]
push 0
push 0x323
push dword [esi + 0x3c]
call edi
push 0x400
push 3
push dword [esi + 0x3c]
call edi
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_DrawMenuBar]
mov edi, 0x6e
push 1
push edi
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
inc edi
cmp edi, 0x73
jbe 0x4084b4
mov eax, dword [0x440b34]
mov edi, dword [sym.imp.USER32.dll_EnableMenuItem]
push 0
push 0x321
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x3c]
push esi
mov byte [ebx + 0x3a5], 2
call edi
push 0
push 0x323
push esi
call edi
jmp 0x408515
mov ecx, esi
call fcn.004183b0
push str.Please_wait_for_your_Cronus_Zen_to_reset..._r_n
push 0xc8c8c8
push esi
call fcn.00418430
add esp, 0xc
lea edx, [ebp - 0x19]
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
mov byte [ebp - 0x19], 0
call fcn.0040d5b0
push 0x41
mov dword [ebp - 4], 1
call fcn.0042b8ab
push 0x41
mov edi, eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x14], edi
mov eax, dword [esi + 4]
movzx eax, word [eax]
mov word [edi], ax
movzx eax, word [esi + 0xc]
sub ax, 2
mov word [edi + 2], ax
mov byte [edi + 4], 1
mov eax, dword [esi + 0xc]
sub eax, 2
push eax
mov eax, dword [esi + 4]
add eax, 2
push eax
lea eax, [edi + 5]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x1c
lea eax, [ebp - 0x14]
lea ecx, [ebx + 0x35c]
push eax
call fcn.0040d270
cmp dword [ebx + 0x36c], 1
jne 0x4085a0
push dword [ebp - 0x14]
mov ecx, ebx
call fcn.0041cbe0
mov eax, dword [esi + 4]
test eax, eax
je 0x4085b0
push eax
call fcn.0042b8a6
add esp, 4
push 0x10
push esi
call fcn.0042b893
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b832
mov esp, ebp
pop ebp
ret