Function at 0x4093c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa1c
mov eax, dword [0x5eb10c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xa10]
mov dword [ebp - 0xa10], 0
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
push str.SOFTWAREConexantMicTrayHotkey
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xa0c], 0
mov dword [ebp - 0xa08], 4
mov dword [ebp - 0xa1c], eax
call eax
mov eax, dword [ebp - 0xa10]
test eax, eax
je 0x40a6f1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0xa08]
push edi
push ecx
lea ecx, [ebp - 0xa0c]
push ecx
push 0
push 0
push str.CustomSettings
push eax
call esi
mov edx, dword [0x5f0498]
test eax, eax
jne 0x40961d
mov ecx, dword [ebp - 0xa0c]
mov edi, 1
mov eax, dword [0x5f0488]
test cl, 1
cmovne edx, edi
test cl, 2
mov dword [0x5f0498], edx
cmovne eax, edi
test cl, 4
mov dword [0x5f0488], eax
mov eax, dword [0x5f048c]
cmovne eax, edi
test cl, 0x20
mov dword [0x5f048c], eax
mov eax, dword [0x5f049c]
cmovne eax, edi
test cl, 0x40
mov dword [0x5f049c], eax
mov eax, dword [0x5f04a0]
cmovne eax, edi
test cl, 0x80
mov dword [0x5f04a0], eax
mov eax, dword [0x5f04a4]
cmovne eax, edi
test ecx, 0x100
mov dword [0x5f04a4], eax
mov eax, dword [0x5f04a8]
cmovne eax, edi
test ecx, 0x200
mov dword [0x5f04a8], eax
mov eax, dword [0x5f04ac]
cmovne eax, edi
test ecx, 0x400
mov dword [0x5f04ac], eax
mov eax, dword [0x5f04b0]
cmovne eax, edi
test ecx, 0x800
mov dword [0x5f04b0], eax
mov eax, dword [0x5f04b4]
cmovne eax, edi
test ecx, 0x1000
mov dword [0x5f04b4], eax
mov eax, dword [0x5f04b8]
cmovne eax, edi
test ecx, 0x2000
mov dword [0x5f04b8], eax
mov eax, dword [0x5f04c0]
cmovne eax, edi
test ecx, 0x4000
mov dword [0x5f04c0], eax
mov eax, dword [0x5f04c4]
cmovne eax, edi
test ecx, 0x8000
mov dword [0x5f04c4], eax
mov eax, dword [0x5f005c]
cmovne eax, edi
test ecx, 0x10000
mov dword [0x5f005c], eax
mov eax, dword [0x5f0450]
cmovne eax, edi
test ecx, 0x20000
mov dword [0x5f0450], eax
mov eax, dword [0x5f0424]
cmovne eax, edi
test ecx, 0x40000
mov dword [0x5f0424], eax
mov eax, dword [0x5f0428]
cmovne eax, edi
test ecx, 0x80000
mov dword [0x5f0428], eax
mov eax, dword [0x5f042c]
cmovne eax, edi
test ecx, 0x100000
mov dword [0x5f042c], eax
mov eax, dword [0x5f0430]
cmovne eax, edi
test ecx, 0x200000
mov dword [0x5f0430], eax
mov eax, dword [0x5f0434]
cmovne eax, edi
mov dword [0x5f0434], eax
mov eax, dword [0x5f04c8]
test ecx, 0x400000
cmovne eax, edi
test ecx, 0x800000
mov dword [0x5f04c8], eax
mov eax, dword [0x5f04cc]
cmovne eax, edi
test ecx, 0x1000000
mov dword [0x5f04cc], eax
mov eax, dword [0x5f04d0]
cmovne eax, edi
test ecx, 0x2000000
mov dword [0x5f04d0], eax
mov eax, dword [0x5f04d4]
cmovne eax, edi
test ecx, 0x4000000
mov dword [0x5f04d4], eax
mov eax, dword [0x5f0058]
cmovne eax, edi
mov dword [0x5f0058], eax
push edx
push str.EnableHotkey__d
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.00402260
add esp, 0x10
mov dword [ebp - 0xa0c], 0
lea eax, [ebp - 0xa08]
mov dword [ebp - 0xa08], 4
push eax
lea eax, [ebp - 0xa0c]
push eax
push 0
push 0
push str.MicMuteScancodeSettings
push dword [ebp - 0xa10]
call esi
mov ecx, dword [0x5f06e0]
test eax, eax
push 0x60
cmove ecx, dword [ebp - 0xa0c]
push 0xcc
push 0x5f0090
mov dword [0x5f06e0], ecx
mov dword [ebp - 0xa08], 0xc
mov dword [0x5f0088], 0xffffffff
mov dword [0x5f008c], 0xffffffff
call fcn.00553d40
push 0x60
push 0xcc
push 0x5f00f0
call fcn.00553d40
push 0x60
push 0xcc
push 0x5f0150
call fcn.00553d40
add esp, 0x24
lea eax, [ebp - 0xa08]
push eax
push 0x5f0090
push 0
push 0
push str.HotKeyMicScancode
push dword [ebp - 0xa10]
call esi
test eax, eax
jne 0x409793
test byte [0x5f06e0], 0x10
mov al, byte [ebp - 0xa08]
mov byte [0x5f0088], al
mov dword [ebp - 0xa08], 0xc
je 0x40974b
lea eax, [ebp - 0xa08]
push eax
push 0x5f00f0
push 0
push 0
push str.HotKeyMicScancodeVK
push dword [ebp - 0xa10]
call esi
test eax, eax
jne 0x409744
mov al, byte [0x5f0088]
cmp al, byte [ebp - 0xa08]
je 0x40974b
mov byte [0x5f0088], 0xff
test byte [0x5f06e0], 2
mov dword [ebp - 0xa08], 0xc
je 0x409793
lea eax, [ebp - 0xa08]
push eax
push 0x5f0150
push 0
push 0
push str.HotKeyMicScancodeFLAG
push dword [ebp - 0xa10]
call esi
test eax, eax
jne 0x40978c
mov al, byte [0x5f0088]
cmp al, byte [ebp - 0xa08]
je 0x409793
mov byte [0x5f0088], 0xff
lea eax, [ebp - 0xa08]
mov dword [ebp - 0xa0c], 0
push eax
lea eax, [ebp - 0xa0c]
mov dword [ebp - 0xa08], 4
push eax
push 0
push 0
push str.SpkMuteScancodeSettings
push dword [ebp - 0xa10]
call esi
mov ecx, dword [0x5f06e4]
test eax, eax
push 0x60
cmove ecx, dword [ebp - 0xa0c]
push 0xcc
push 0x5f01b8
mov dword [0x5f06e4], ecx
mov dword [ebp - 0xa08], 0xc
mov dword [0x5f01b0], 0xffffffff
mov dword [0x5f01b4], 0xffffffff
call fcn.00553d40
push 0x60
push 0xcc
push 0x5f0218
call fcn.00553d40
push 0x60
push 0xcc
push 0x5f0278
call fcn.00553d40
add esp, 0x24
lea eax, [ebp - 0xa08]
push eax
push 0x5f01b8
push 0
push 0
push str.HotKeySpkScancode
push dword [ebp - 0xa10]
call esi
test eax, eax
jne 0x4098ef
test byte [0x5f06e4], 0x10
mov al, byte [ebp - 0xa08]
mov byte [0x5f01b0], al
mov dword [ebp - 0xa08], 0xc
je 0x4098a7
lea eax, [ebp - 0xa08]
push eax
push 0x5f0218
push 0
push 0
push str.HotKeySpkScancodeVK
push dword [ebp - 0xa10]
call esi
test eax, eax
jne 0x4098a0
mov al, byte [0x5f01b0]
cmp al, byte [ebp - 0xa08]
je 0x4098a7
mov byte [0x5f01b0], 0xff
test byte [0x5f06e4], 2
mov dword [ebp - 0xa08], 0xc
je 0x4098ef
lea eax, [ebp - 0xa08]
push eax
push 0x5f0278
push 0
push 0
push str.HotKeySpkScancodeFLAG
push dword [ebp - 0xa10]
call esi
test eax, eax
jne 0x4098e8
mov al, byte [0x5f01b0]
cmp al, byte [ebp - 0xa08]
je 0x4098ef
mov byte [0x5f01b0], 0xff
mov edi, 0x5f0089
mov dword [ebp - 0xa14], 1
mov eax, 2
sub eax, edi
push ebx
mov dword [ebp - 0xa18], eax
mov ebx, 0xc
add eax, edi
push eax
push str.HotKeyMicScancode_d
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.00402260
add esp, 0x10
mov dword [ebp - 0xa08], 0xc
lea eax, [ebp - 0xa08]
push eax
lea eax, [ebx + 0x5f0090]
push eax
push 0
push 0
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0xa10]
call esi
test eax, eax
jne 0x409a60
mov al, byte [ebp - 0xa08]
mov byte [edi], al
mov eax, dword [0x5f06e0]
test al, 0x10
je 0x4099d5
mov eax, dword [ebp - 0xa18]
add eax, edi
push eax
push str.HotKeyMicScancodeVK_d
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.00402260
add esp, 0x10
mov dword [ebp - 0xa08], 0xc
lea eax, [ebp - 0xa08]
push eax
lea eax, [ebx + 0x5f00f0]
push eax
push 0
push 0
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0xa10]
call esi
test eax, eax
jne 0x409a5d
mov al, byte [edi]
cmp al, byte [ebp - 0xa08]
jne 0x409a4e
mov eax, dword [0x5f06e0]
test al, 2
je 0x409a34
mov eax, dword [ebp - 0xa18]
add eax, edi
push eax
push str.HotKeyMicScancodeFLAG_d
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.00402260
add esp, 0x10
mov dword [ebp - 0xa08], 0xc
lea eax, [ebp - 0xa08]
push eax
lea eax, [ebx + 0x5f0150]
push eax
push 0
push 0
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0xa10]
call esi
test eax, eax
jne 0x409a5d
mov al, byte [edi]
cmp al, byte [ebp - 0xa08]
jne 0x409a4e
inc dword [ebp - 0xa14]
add ebx, 0xc
inc edi
cmp ebx, 0x60
jae 0x409a60
mov eax, dword [ebp - 0xa18]
jmp 0x409911
mov eax, dword [ebp - 0xa14]
mov byte [eax + 0x5f0088], 0xff
jmp 0x409a60
mov byte [edi], 0xff
mov edi, 0x5f01b1
mov dword [ebp - 0xa18], 1
mov eax, 2
mov ebx, 0xc
sub eax, edi
mov dword [ebp - 0xa14], eax
add eax, edi
push eax
push str.HotKeySpkScancode_d
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.00402260
add esp, 0x10
mov dword [ebp - 0xa08], 0xc
lea eax, [ebp - 0xa08]
push eax
lea eax, [ebx + 0x5f01b8]
push eax
push 0
push 0
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0xa10]
call esi
test eax, eax
jne 0x409bd0
mov al, byte [ebp - 0xa08]
mov byte [edi], al
mov eax, dword [0x5f06e4]
test al, 0x10
je 0x409b45
mov eax, dword [ebp - 0xa14]
add eax, edi
push eax
push str.HotKeySpkScancodeVK_d
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.00402260
add esp, 0x10
mov dword [ebp - 0xa08], 0xc
lea eax, [ebp - 0xa08]
push eax
lea eax, [ebx + 0x5f0218]
push eax
push 0
push 0
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0xa10]
call esi
test eax, eax
jne 0x409bcd
mov al, byte [edi]
cmp al, byte [ebp - 0xa08]
jne 0x409bbe
mov eax, dword [0x5f06e4]
test al, 2
je 0x409ba4
mov eax, dword [ebp - 0xa14]
add eax, edi
push eax
push str.HotKeySpkScancodeFLAG_d
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.00402260
add esp, 0x10
mov dword [ebp - 0xa08], 0xc
lea eax, [ebp - 0xa08]
push eax
lea eax, [ebx + 0x5f0278]
push eax
push 0
push 0
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0xa10]
call esi
test eax, eax
jne 0x409bcd
mov al, byte [edi]
cmp al, byte [ebp - 0xa08]
jne 0x409bbe
inc dword [ebp - 0xa18]
add ebx, 0xc
inc edi
cmp ebx, 0x60
jae 0x409bd0
mov eax, dword [ebp - 0xa14]
jmp 0x409a81
mov eax, dword [ebp - 0xa18]
mov byte [eax + 0x5f01b0], 0xff
jmp 0x409bd0
mov byte [edi], 0xff
lea eax, [ebp - 0xa08]
mov dword [ebp - 0xa0c], 0
push eax
lea eax, [ebp - 0xa0c]
mov dword [ebp - 0xa08], 4
push eax
push 0
push 0
push str.NCScancodeSettings
push dword [ebp - 0xa10]
call esi
mov ecx, dword [0x5f06e8]
test eax, eax
push 0x60
cmove ecx, dword [ebp - 0xa0c]
push 0xcc
push 0x5f02e0
mov dword [0x5f06e8], ecx
mov dword [ebp - 0xa08], 0xc
mov dword [0x5f02d8], 0xffffffff
mov dword [0x5f02dc], 0xffffffff
call fcn.00553d40
push 0x60
push 0xcc
push 0x5f0340
call fcn.00553d40
push 0x60
push 0xcc
push 0x5f03a0
call fcn.00553d40
add esp, 0x24
lea eax, [ebp - 0xa08]
push eax
push 0x5f02e0
push 0
push 0
push str.HotKeyNCScancode
push dword [ebp - 0xa10]
call esi
test eax, eax
jne 0x409d2c
test byte [0x5f06e8], 0x10
mov al, byte [ebp - 0xa08]
mov byte [0x5f02d8], al
mov dword [ebp - 0xa08], 0xc
je 0x409ce4
lea eax, [ebp - 0xa08]
push eax
push 0x5f0340
push 0
push 0
push str.HotKeyNCScancodeVK
push dword [ebp - 0xa10]
call esi
test eax, eax
jne 0x409cdd
mov al, byte [0x5f02d8]
cmp al, byte [ebp - 0xa08]
je 0x409ce4
mov byte [0x5f02d8], 0xff
test byte [0x5f06e8], 2
mov dword [ebp - 0xa08], 0xc
je 0x409d2c
lea eax, [ebp - 0xa08]
push eax
push 0x5f03a0
push 0
push 0
push str.HotKeyNCScancodeFLAG
push dword [ebp - 0xa10]
call esi
test eax, eax
jne 0x409d25
mov al, byte [0x5f02d8]
cmp al, byte [ebp - 0xa08]
je 0x409d2c
mov byte [0x5f02d8], 0xff
lea eax, [ebp - 0xa08]
mov dword [ebp - 0xa0c], 0
push eax
lea eax, [ebp - 0xa0c]
mov dword [ebp - 0xa08], 4
push eax
push 0
push 0
push str.PlaybackGPIO
push dword [ebp - 0xa10]
call esi
test eax, eax
jne 0x409d8a
mov eax, dword [ebp - 0xa0c]
push eax
push str.PlaybackGPIO_is__d
mov dword [0x5f06dc], eax
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.00402260
add esp, 0x10
jmp 0x409dad
push str.fail_to_get_PlaybackGPIO_key__default_is_GPIO0
lea eax, [ebp - 0x204]
mov dword [0x5f06dc], 0
push 0x100
push eax
call fcn.00402260
add esp, 0xc
lea eax, [ebp - 0xa08]
mov dword [ebp - 0xa0c], 0
push eax
lea eax, [ebp - 0xa0c]
mov dword [ebp - 0xa08], 4
push eax
push 0
push 0
push str.CaptureGPIO
push dword [ebp - 0xa10]
call esi
test eax, eax
jne 0x409e0b
mov eax, dword [ebp - 0xa0c]
push eax
push str.CaptureGPIO_is__d
mov dword [0x5ea14c], eax
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.00402260
add esp, 0x10
jmp 0x409e2e
push str.fail_to_get_CaptureGPIO_key__default_is_GPIO1
lea eax, [ebp - 0x204]
mov dword [0x5ea14c], 1
push 0x100
push eax
call fcn.00402260
add esp, 0xc
lea eax, [ebp - 0xa08]
mov dword [ebp - 0xa0c], 0
push eax
lea eax, [ebp - 0xa0c]
mov dword [ebp - 0xa08], 4
push eax
push 0
push 0
push str.InitSecDelay
push dword [ebp - 0xa10]
call esi
test eax, eax
jne 0x409e8a
mov eax, dword [ebp - 0xa0c]
push eax
push str.Delay__d_sec_when_initiate_MicTray
mov dword [0x5f5790], eax
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.00402260
add esp, 0x10
lea eax, [ebp - 0xa08]
mov dword [ebp - 0xa0c], 0
push eax
lea eax, [ebp - 0xa0c]
mov dword [ebp - 0xa08], 4
push eax
push 0
push 0
push str.HPSilentToneSecDelay
push dword [ebp - 0xa10]
call esi
test eax, eax
jne 0x409ee6
mov eax, dword [ebp - 0xa0c]
push eax
push str.Delay__d_sec_when_HP_play_silent_tone
mov dword [0x5f5794], eax
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.00402260
add esp, 0x10
mov eax, dword [0x5f04a8]
test eax, eax
je 0x40a007
xor ebx, ebx
xor edi, edi
nop word [eax + eax]
push ebx
push str.HIDMake_d
lea eax, [ebp - 0xa04]
mov dword [ebp - 0xa0c], 0
push 0x400
push eax
mov dword [ebp - 0xa08], 0x400
call fcn.00402260
add esp, 0x10
lea eax, [ebp - 0xa08]
push eax
lea eax, [edi + 0x5f06f4]
push eax
push 0
push 0
lea eax, [ebp - 0xa04]
push eax
push dword [ebp - 0xa10]
call esi
test eax, eax
jne 0x409f66
mov eax, dword [ebp - 0xa08]
mov dword [edi + 0x5f0af4], eax
mov eax, 1
jmp 0x409f68
xor eax, eax
mov dword [edi + 0x5f06f0], eax
inc ebx
add edi, 0x1020
cmp edi, 0x50a0
jb 0x409f00
mov eax, dword [0x5f04a8]
test eax, eax
je 0x40a007
xor ebx, ebx
mov edi, 0x5f06f0
push ebx
push str.HIDBreak_d
lea eax, [ebp - 0xa04]
mov dword [ebp - 0xa08], 0x400
push 0x400
push eax
call fcn.00402260
add esp, 0x10
cmp dword [edi], 0
je 0x409fed
lea eax, [ebp - 0xa08]
push eax
lea eax, [edi + 0x408]
push eax
push 0
push 0
lea eax, [ebp - 0xa04]
push eax
push dword [ebp - 0xa10]
call esi
test eax, eax
jne 0x409fed
mov eax, dword [ebp - 0xa08]
mov dword [edi + 0x808], eax
jmp 0x409ff3
mov dword [edi], 0
add edi, 0x1020
inc ebx
cmp edi, 0x5f5790
jl 0x409f91
mov eax, dword [0x5f04a8]
mov dword [ebp - 0xa08], 4
test eax, eax
je 0x40a09a
xor ebx, ebx
mov edi, 0x5f06f0
push ebx
push str.HIDUsage_d
lea eax, [ebp - 0xa04]
push 0x400
push eax
call fcn.00402260
add esp, 0x10
cmp dword [edi], 0
je 0x40a085
lea ecx, [ebp - 0xa08]
push ecx
lea eax, [edi + 0x80c]
push eax
push 0
push 0
lea eax, [ebp - 0xa04]
push eax
push dword [ebp - 0xa10]
call esi
test eax, eax
jne 0x40a085
push dword [edi + 0x80c]
lea eax, [ebp - 0x204]
push str.HIDUsage_0x_x_n
push 0x100
push eax
call fcn.00402260
add esp, 0x10
jmp 0x40a08b
mov dword [edi], 0
add edi, 0x1020
inc ebx
cmp edi, 0x5f5790
jl 0x40a020
lea eax, [ebp - 0xa08]
mov dword [ebp - 0xa08], 4
push eax
lea eax, [ebp - 0xa0c]
push eax
push 0
push 0
push str.RenderRunning
push dword [ebp - 0xa10]
call esi
test eax, eax
jne 0x40a0ec
mov eax, dword [ebp - 0xa0c]
push eax
push str.current_RenderState_is__d
mov dword [0x5f041c], eax
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.00402260
add esp, 0x10
lea eax, [ebp - 0xa08]
mov dword [ebp - 0xa08], 4
push eax
lea eax, [ebp - 0xa0c]
mov dword [ebp - 0xa0c], 0
push eax
push 0
push 0
push str.FirstReboot
push dword [ebp - 0xa10]
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xa18], ebx
test eax, eax
jne 0x40a15e
mov eax, dword [ebp - 0xa0c]
cmp eax, 0xffffffff
je 0x40a15e
push eax
push str.FirstReboot__d
mov dword [0x5f04bc], eax
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.00402260
add esp, 0x10
jmp 0x40a207
lea eax, [ebp - 0xa08]
mov dword [ebp - 0xa08], 0x100
push eax
lea eax, [ebp - 0x204]
push eax
call fcn.00411a10
push str.SettingsOEM_
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.0055a1a7
add esp, 0x14
mov dword [ebp - 0xa14], 0
lea eax, [ebp - 0xa14]
push eax
lea eax, [ebp - 0x204]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [ebp - 0xa1c]
mov eax, dword [ebp - 0xa14]
test eax, eax
je 0x40a207
lea ecx, [ebp - 0xa08]
mov dword [ebp - 0xa08], 4
push ecx
lea ecx, [ebp - 0xa0c]
push ecx
push 0
push 0
push str.FirstReboot
push eax
call esi
mov ecx, dword [0x5f04bc]
test eax, eax
mov eax, dword [ebp - 0xa14]
cmove ecx, dword [ebp - 0xa0c]
mov dword [0x5f04bc], ecx
test eax, eax
je 0x40a207
push eax
call ebx
mov eax, dword [0x5f0434]
test eax, eax
je 0x40a332
xor ebx, ebx
mov edi, 0x5f0f04
nop dword [eax + eax]
push ebx
push str.HIDLEDON_d
lea eax, [ebp - 0xa04]
mov dword [ebp - 0xa0c], 0
push 0x400
push eax
mov dword [ebp - 0xa08], 0x400
call fcn.00402260
add esp, 0x10
cmp dword [edi - 0x814], 0
je 0x40a289
lea eax, [ebp - 0xa08]
push eax
push edi
push 0
push 0
lea eax, [ebp - 0xa04]
push eax
push dword [ebp - 0xa10]
call esi
test eax, eax
jne 0x40a289
mov eax, dword [ebp - 0xa08]
mov dword [edi + 0x400], eax
mov eax, 1
jmp 0x40a28b
xor eax, eax
mov dword [edi - 4], eax
inc ebx
add edi, 0x1020
cmp edi, 0x5f5fa4
jl 0x40a220
mov eax, dword [0x5f0434]
test eax, eax
je 0x40a332
xor ebx, ebx
mov edi, 0x5f1308
push ebx
push str.HIDLEDOFF_d
lea eax, [ebp - 0xa04]
mov dword [ebp - 0xa08], 0x400
push 0x400
push eax
call fcn.00402260
add esp, 0x10
cmp dword [edi - 0xc18], 0
je 0x40a314
cmp dword [edi - 0x408], 0
je 0x40a314
lea eax, [ebp - 0xa08]
push eax
push edi
push 0
push 0
lea eax, [ebp - 0xa04]
push eax
push dword [ebp - 0xa10]
call esi
test eax, eax
jne 0x40a314
mov eax, dword [ebp - 0xa08]
mov dword [edi + 0x400], eax
jmp 0x40a31e
mov dword [edi - 0x408], 0
add edi, 0x1020
inc ebx
cmp edi, 0x5f63a8
jl 0x40a2b1
mov eax, dword [0x5f0434]
mov dword [ebp - 0xa08], 4
test eax, eax
je 0x40a3d5
xor ebx, ebx
mov edi, 0x5f170c
nop dword [eax + eax]
push ebx
push str.HIDLEDUsage_d
lea eax, [ebp - 0xa04]
push 0x400
push eax
call fcn.00402260
add esp, 0x10
cmp dword [edi - 0x101c], 0
je 0x40a3b8
cmp dword [edi - 0x80c], 0
je 0x40a3b8
lea eax, [ebp - 0xa08]
push eax
push edi
push 0
push 0
lea eax, [ebp - 0xa04]
push eax
push dword [ebp - 0xa10]
call esi
test eax, eax
jne 0x40a3b8
push dword [edi]
lea eax, [ebp - 0x204]
push str.HIDLEDUsage_0x_x_n
push 0x100
push eax
call fcn.00402260
add esp, 0x10
jmp 0x40a3c2
mov dword [edi - 0x80c], 0
add edi, 0x1020
inc ebx
cmp edi, 0x5f67ac
jl 0x40a350
lea eax, [ebp - 0xa08]
mov dword [ebp - 0xa0c], 0x3e8
push eax
lea eax, [ebp - 0xa0c]
mov dword [ebp - 0xa08], 4
push eax
push 0
push 0
push str.VolRecoverDelay
push dword [ebp - 0xa10]
call esi
pop ebx
test eax, eax
jne 0x40a432
mov eax, dword [ebp - 0xa0c]
push eax
push str.Delay__d_ms_after_S3_S4
mov dword [0x5f0400], eax
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.00402260
add esp, 0x10
lea eax, [ebp - 0xa08]
mov dword [ebp - 0xa0c], 0x50
push eax
lea eax, [ebp - 0xa0c]
mov dword [ebp - 0xa08], 4
push eax
push 0
push 0
push str.GpioRegUpdateDelay
push dword [ebp - 0xa10]
call esi
test eax, eax
mov eax, dword [ebp - 0xa0c]
mov dword [0x5f0404], eax
jne 0x40a48e
push eax
push str.Delay__d_ms_to_update_gpio_reg
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.00402260
add esp, 0x10
push 0x100
push 0
push 0x5f04d8
call fcn.00553d40
add esp, 0xc
mov dword [ebp - 0xa08], 0x100
lea eax, [ebp - 0xa08]
push eax
push 0x5f04d8
push 0
push 0
push str.ProcessName
push dword [ebp - 0xa10]
call esi
test eax, eax
jne 0x40a4e9
mov eax, dword [ebp - 0xa08]
add eax, eax
cmp eax, 0x100
jae 0x40a701
xor ecx, ecx
mov word [eax + 0x5f04d8], cx
push 0x100
push 0
push 0x5f05d8
call fcn.00553d40
add esp, 0xc
mov dword [ebp - 0xa08], 0x100
lea eax, [ebp - 0xa08]
push eax
push 0x5f05d8
push 0
push 0
push str.SVCName
push dword [ebp - 0xa10]
call esi
test eax, eax
jne 0x40a544
mov eax, dword [ebp - 0xa08]
add eax, eax
cmp eax, 0x100
jae 0x40a701
xor ecx, ecx
mov word [eax + 0x5f05d8], cx
lea eax, [ebp - 0xa08]
mov dword [ebp - 0xa0c], 0
push eax
lea eax, [ebp - 0xa0c]
mov dword [ebp - 0xa08], 4
push eax
push 0
push 0
push str.SeeScanCode
push dword [ebp - 0xa10]
mov dword [0x5f0440], 0
call esi
mov ecx, dword [0x5f0440]
test eax, eax
lea eax, [ebp - 0xa08]
mov dword [ebp - 0xa08], 4
cmove ecx, dword [ebp - 0xa0c]
push eax
lea eax, [ebp - 0xa0c]
mov dword [0x5f0440], ecx
push eax
push 0
push 0
push str.EnableLog
push dword [ebp - 0xa10]
mov dword [ebp - 0xa0c], 0
mov dword [0x5f0444], 0
call esi
mov ecx, dword [0x5f0444]
test eax, eax
lea eax, [ebp - 0xa08]
mov dword [ebp - 0xa08], 4
cmove ecx, dword [ebp - 0xa0c]
push eax
lea eax, [ebp - 0xa0c]
mov dword [0x5f0444], ecx
push eax
push 0
push 0
push str.HIDRefreshDelay
push dword [ebp - 0xa10]
mov dword [ebp - 0xa0c], 0
mov dword [0x5ea02c], 0xbb8
call esi
mov ecx, dword [0x5ea02c]
test eax, eax
lea eax, [ebp - 0xa08]
mov dword [ebp - 0xa08], 4
cmove ecx, dword [ebp - 0xa0c]
push eax
lea eax, [ebp - 0xa0c]
mov dword [0x5ea02c], ecx
push eax
push 0
push 0
push str.InitDelay
push dword [ebp - 0xa10]
mov dword [ebp - 0xa0c], 0
mov dword [0x5ea030], 0x7d0
call esi
mov ecx, dword [0x5ea030]
test eax, eax
lea eax, [ebp - 0xa08]
mov dword [ebp - 0xa08], 4
cmove ecx, dword [ebp - 0xa0c]
push eax
lea eax, [ebp - 0xa0c]
mov dword [0x5ea030], ecx
push eax
push 0
push 0
push str.RenderTimeOute
push dword [ebp - 0xa10]
mov dword [ebp - 0xa0c], 0
mov dword [0x5ea034], 0x1388
call esi
mov ecx, dword [0x5ea034]
test eax, eax
mov eax, dword [ebp - 0xa10]
cmove ecx, dword [ebp - 0xa0c]
mov dword [0x5ea034], ecx
pop edi
pop esi
test eax, eax
je 0x40a6f1
push eax
call dword [ebp - 0xa18]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0054eec4
mov esp, ebp
pop ebp
ret
call fcn.0054f2f8
int3