Function at 0x46a20c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf273
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov byte [ebp - 0x18], 0
mov byte [ebp - 0x10], 0
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x14], 0xffffffff
xor eax, eax
mov al, byte [0x5d3fc5]
test eax, eax
je 0x46a254
xor ecx, ecx
mov cl, byte [0x5d450c]
test ecx, ecx
je 0x46a29f
push 0x60f870
mov edx, dword [ebp + 0x10]
push edx
call fcn.004936f0
add esp, 8
push 0x60f874
mov eax, dword [ebp + 0x14]
push eax
call fcn.004936f0
add esp, 8
push 0x60f878
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004936f0
add esp, 8
push 0x60f87c
mov edx, dword [ebp + 8]
push edx
call fcn.004936f0
add esp, 8
xor al, al
jmp 0x46a705
xor eax, eax
mov al, byte [0x5d4378]
test eax, eax
jne 0x46a2b5
call dword [sym.imp.RtlLib.dll_RT_GetStatusMediaStatus]
mov byte [ebp - 0x10], al
jmp 0x46a2b9
mov byte [ebp - 0x10], 0
mov ecx, dword [ebp - 0x10]
and ecx, 0xff
test ecx, ecx
je 0x46a2e1
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.RtlLib.dll_RT_GetStatusSignalInfo]
add esp, 8
cmp dword [ebp - 0x14], 0xffffffff
jne 0x46a2e1
mov byte [ebp - 0x10], 0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.RtlLib.dll_RT_GetStatusLinkInfo]
add esp, 0x10
mov edx, dword [ebp + 0x10]
push edx
call fcn.00493490
add esp, 4
test eax, eax
je 0x46a355
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x28]
call fcn.004ad12e
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040d4c0
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004ad4f0
push eax
push 0x566fb4
mov edx, dword [ebp + 0x10]
push edx
call fcn.004936f0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004ad0c0
xor eax, eax
mov al, byte [0x5d4005]
test eax, eax
jne 0x46a36f
cmp dword [ebp - 0x1c], 2
je 0x46a36f
call dword [sym.imp.RtlLib.dll_RT_Need_check_USB]
mov byte [ebp - 0x18], al
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x46a3c1
mov byte [ebp - 0x10], 0
xor ecx, ecx
mov cl, byte [0x5d4380]
test ecx, ecx
jne 0x46a3bc
xor edx, edx
mov dl, byte [0x5d450c]
test edx, edx
jne 0x46a3bc
mov byte [0x5d4380], 1
mov byte [0x5d4370], 1
push 0x32
push 0
push 0x5b83f4
call fcn.00493430
add esp, 0xc
call fcn.00410f70
mov ecx, eax
call fcn.00428ad5
jmp 0x46a4a7
cmp dword [ebp - 0x1c], 0x17
je 0x46a3d7
mov eax, dword [ebp - 0x18]
and eax, 0xff
test eax, eax
je 0x46a47f
cmp dword [ebp - 0x1c], 2
je 0x46a47f
xor ecx, ecx
mov cl, byte [0x5d4515]
test ecx, ecx
je 0x46a444
xor edx, edx
mov dl, byte [0x5b8441]
test edx, edx
jne 0x46a444
push str._UI_Need_to_check_USB2.0_USB3.0__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
mov al, byte [0x5d450c]
test eax, eax
jne 0x46a425
push 0
push 0
push 0
push 0
push 0
push 0x46a04e
call fcn.004ac601
jmp 0x46a430
push str._b_Check_Switch_USB__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [ebp - 0x10], 0
mov byte [0x5d4378], 1
mov dword [ebp - 0x1c], 3
jmp 0x46a47d
xor ecx, ecx
mov cl, byte [0x5d4515]
test ecx, ecx
jne 0x46a45b
push str.__bUIHaveLinkDefaultProfileOK__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor edx, edx
mov dl, byte [0x5b8441]
test edx, edx
je 0x46a472
push str._UseAP_VWiFi_Flag__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [ebp - 0x10], 1
mov byte [0x5d4378], 0
jmp 0x46a4a7
cmp dword [ebp - 0x1c], 4
jne 0x46a499
mov byte [ebp - 0x10], 0
mov byte [0x5d4378], 1
mov dword [ebp - 0x1c], 3
jmp 0x46a4a7
mov byte [0x5d4380], 0
mov byte [0x5d4378], 0
mov eax, dword [ebp - 0x10]
and eax, 0xff
cmp eax, 1
jne 0x46a50f
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00493490
add esp, 4
test eax, eax
je 0x46a50f
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x30]
call fcn.004ad12e
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.0040d4c0
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x30]
call fcn.004ad4f0
push eax
push 0x567038
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004936f0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004ad0c0
xor edx, edx
mov dl, byte [0x5b834e]
test edx, edx
je 0x46a53b
mov byte [ebp - 0x10], 0
mov ecx, 0x60f860
call fcn.00406f50
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004936f0
add esp, 8
jmp 0x46a67e
xor ecx, ecx
mov cl, byte [0x5b834f]
test ecx, ecx
je 0x46a567
mov byte [ebp - 0x10], 0
mov ecx, 0x60f85c
call fcn.00406f50
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.004936f0
add esp, 8
jmp 0x46a67e
xor eax, eax
mov al, byte [0x5d3c43]
test eax, eax
je 0x46a59b
mov ecx, dword [ebp - 0x10]
and ecx, 0xff
test ecx, ecx
je 0x46a59b
mov ecx, 0x60f858
call fcn.00406f50
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.004936f0
add esp, 8
jmp 0x46a67e
mov byte [ebp - 0x38], 0
cmp dword [ebp - 0x1c], 0
jne 0x46a5c8
mov ecx, 0x60f854
call fcn.00406f50
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004936f0
add esp, 8
mov dword [ebp - 0x20], 0xffffffff
jmp 0x46a666
cmp dword [ebp - 0x1c], 1
jne 0x46a5f8
mov ecx, dword [ebp - 0x10]
and ecx, 0xff
test ecx, ecx
je 0x46a5f8
mov ecx, 0x60f850
call fcn.00406f50
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.004936f0
add esp, 8
mov byte [ebp - 0x38], 1
jmp 0x46a666
cmp dword [ebp - 0x1c], 2
jne 0x46a64f
mov eax, dword [ebp - 0x10]
and eax, 0xff
test eax, eax
je 0x46a64f
call dword [sym.imp.RtlLib.dll_RT_GetStatusMediaStatus]
and eax, 0xff
test eax, eax
je 0x46a636
mov ecx, 0x60f84c
call fcn.00406f50
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004936f0
add esp, 8
mov byte [ebp - 0x38], 1
jmp 0x46a64d
mov ecx, 0x60f848
call fcn.00406f50
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.004936f0
add esp, 8
jmp 0x46a666
mov ecx, 0x60f844
call fcn.00406f50
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004936f0
add esp, 8
mov ecx, dword [ebp - 0x38]
and ecx, 0xff
test ecx, ecx
jne 0x46a67e
mov byte [0x53c0e0], 1
mov byte [ebp - 0x10], 0
cmp dword [ebp - 0x20], 0
jne 0x46a69d
mov ecx, 0x60f840
call fcn.00406f50
push eax
mov edx, dword [ebp + 0xc]
push edx
call fcn.004936f0
add esp, 8
jmp 0x46a6cd
cmp dword [ebp - 0x20], 1
jne 0x46a6bc
mov ecx, 0x60f83c
call fcn.00406f50
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.004936f0
add esp, 8
jmp 0x46a6cd
push 0x60f880
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004936f0
add esp, 8
cmp dword [ebp - 0x20], 1
jne 0x46a702
mov edx, dword [ebp - 0x10]
and edx, 0xff
test edx, edx
jne 0x46a702
push 0x60f884
mov eax, dword [ebp + 0x10]
push eax
call fcn.004936f0
add esp, 8
push 0x60f888
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004936f0
add esp, 8
mov al, byte [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret