Function at 0x417ccc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push esi
push edi
mov dword [ebp - 0xc0], eax
mov eax, 0x506578
call fcn.004c58b8
mov dword [ebp - 0xc8], 4
xor edx, edx
mov dword [ebp - 0xdc], edx
mov esi, 0x4e9bb9
lea edi, [ebp - 0x1e8]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
mov word [ebp - 0xac], 8
lea eax, [ebp - 4]
call fcn.00401e94
inc dword [ebp - 0xa0]
mov word [ebp - 0xac], 0x14
lea edx, [ebp - 0xc4]
push edx
push 0x20019
push 0
push 0x4e9a64
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x418bd2
lea ecx, [ebp - 0xc8]
push ecx
lea eax, [ebp - 0xd8]
push eax
push 0
push 0
push str.EnableAutoReset
push dword [ebp - 0xc4]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xdc], 0
jne 0x417da4
cmp dword [ebp - 0xd8], 0
setne dl
and edx, 1
mov ecx, dword [ebp - 0xc0]
mov eax, dword [ecx + 0x740]
mov ecx, dword [eax]
call dword [ecx + 0xc8]
jmp 0x417dba
xor edx, edx
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x740]
mov ecx, dword [eax]
call dword [ecx + 0xc8]
lea edx, [ebp - 0xc8]
push edx
lea eax, [ebp - 0xd8]
push eax
push 0
push 0
push str.SPISpeed
push dword [ebp - 0xc4]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xdc], 0
jne 0x417e04
mov edx, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xc0]
mov eax, dword [ecx + 0x4dc]
call fcn.00449eb0
jmp 0x417e1a
mov edx, 0x23
mov ecx, dword [ebp - 0xc0]
mov eax, dword [ecx + 0x4dc]
call fcn.00449eb0
push dword [ebp - 0xc0]
call fcn.0041a864
pop ecx
mov dword [0x518284], eax
lea edx, [ebp - 0xc8]
push edx
lea ecx, [ebp - 0xd8]
push ecx
push 0
push 0
push str.CustomizeStatus
push dword [ebp - 0xc4]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xdc], 0
jne 0x417e7f
cmp dword [ebp - 0xd8], 0
setne dl
and edx, 1
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x3f0]
mov ecx, dword [eax]
call dword [ecx + 0xc8]
jmp 0x417e95
xor edx, edx
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x3f0]
mov ecx, dword [eax]
call dword [ecx + 0xc8]
lea edx, [ebp - 0xc8]
push edx
lea eax, [ebp - 0xd8]
push eax
push 0
push 0
push str.FlashStatus
push dword [ebp - 0xc4]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xdc], 0
jne 0x417ee9
mov edx, dword [ebp - 0xd8]
and edx, 0xffffffff
mov ecx, dword [ebp - 0xc0]
mov dword [ecx + 0x754], edx
mov byte [0x4e98ac], 0xb3
call fcn.00402084
jmp 0x417ef9
mov eax, dword [ebp - 0xc0]
mov dword [eax + 0x754], 0xbc
lea edx, [ebp - 0xc8]
push edx
lea ecx, [ebp - 0xd8]
push ecx
push 0
push 0
push str.WPControl
push dword [ebp - 0xc4]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0xdc], eax
mov dl, 1
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x3e4]
mov ecx, dword [eax]
call dword [ecx + 0xc8]
lea edx, [ebp - 0xc8]
push edx
lea eax, [ebp - 0xd8]
push eax
push 0
push 0
push str.RestoreControl
push dword [ebp - 0xc4]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xdc], 0
jne 0x417fac
xor edx, edx
mov ecx, dword [ebp - 0xc0]
mov eax, dword [ecx + 0x358]
mov ecx, dword [eax]
call dword [ecx + 0xcc]
xor edx, edx
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x354]
mov ecx, dword [eax]
call dword [ecx + 0xcc]
xor edx, edx
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x350]
mov ecx, dword [eax]
call dword [ecx + 0xc8]
jmp 0x417fd8
xor edx, edx
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x358]
mov ecx, dword [eax]
call dword [ecx + 0xcc]
xor edx, edx
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x354]
mov ecx, dword [eax]
call dword [ecx + 0xcc]
lea edx, [ebp - 0xc8]
push edx
lea eax, [ebp - 0x1e8]
push eax
push 0
push 0
push str.ISPFileName
push dword [ebp - 0xc4]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0xdc], eax
lea edx, [ebp - 0xc8]
push edx
lea ecx, [ebp - 0x1e8]
push ecx
push 0
push 0
push str.ISPFileName
push dword [ebp - 0xc4]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xdc], 0
jne 0x4180ec
lea eax, [ebp - 0x1e8]
push eax
call fcn.004c5588
pop ecx
test eax, eax
je 0x4180ec
lea edx, [ebp - 0x1e8]
push edx
push 0x4ffc9c
lea ecx, [ebp - 4]
push ecx
call fcn.004d162c
add esp, 0xc
mov edx, eax
mov eax, 0x4e9898
call fcn.004d150c
push 0x4ffc9f
mov eax, 0x4e9898
call fcn.004019fc
push eax
call fcn.004c77a8
add esp, 8
mov dword [ebp - 0xe0], eax
push dword [ebp - 0xe0]
call fcn.004c72b4
pop ecx
cmp dword [ebp - 0xe0], 0
jne 0x4180df
mov word [ebp - 0xac], 0x20
mov edx, 0x4ffca2
lea eax, [ebp - 8]
call fcn.004d137c
inc dword [ebp - 0xa0]
lea edx, [ebp - 8]
mov eax, 0x4e9898
call fcn.004d150c
dec dword [ebp - 0xa0]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004d14dc
jmp 0x418128
mov eax, dword [ebp - 0xc0]
call fcn.0040d214
jmp 0x418128
mov word [ebp - 0xac], 0x2c
mov edx, 0x4ffca3
lea eax, [ebp - 0xc]
call fcn.004d137c
inc dword [ebp - 0xa0]
lea edx, [ebp - 0xc]
mov eax, 0x4e9898
call fcn.004d150c
dec dword [ebp - 0xa0]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004d14dc
lea ecx, [ebp - 0xc8]
push ecx
lea eax, [ebp - 0x1e8]
push eax
push 0
push 0
push str.USBDestPath
push dword [ebp - 0xc4]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xdc], 0
jne 0x418195
lea edx, [ebp - 0x1e8]
push edx
call fcn.004c5588
pop ecx
test eax, eax
je 0x418195
lea ecx, [ebp - 0x1e8]
push ecx
push 0x4ffca4
lea eax, [ebp - 4]
push eax
call fcn.004d162c
add esp, 0xc
mov edx, dword [eax]
mov ecx, dword [ebp - 0xc0]
mov eax, dword [ecx + 0x590]
call fcn.00474ea0
cmp dword [0x5182c0], 0
setne dl
and edx, 1
mov ecx, dword [ebp - 0xc0]
mov eax, dword [ecx + 0x668]
mov ecx, dword [eax]
call dword [ecx + 0xc8]
lea edx, [ebp - 0xc8]
push edx
lea eax, [ebp - 0x1e8]
push eax
push 0
push 0
push str.HDCPFileName
push dword [ebp - 0xc4]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0xdc], eax
lea edx, [ebp - 0xc8]
push edx
lea ecx, [ebp - 0x1e8]
push ecx
push 0
push 0
push str.HDCPFileName
push dword [ebp - 0xc4]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xdc], 0
jne 0x418313
lea eax, [ebp - 0x1e8]
push eax
call fcn.004c5588
pop ecx
test eax, eax
je 0x418313
lea edx, [ebp - 0x1e8]
push edx
push 0x4ffca7
lea ecx, [ebp - 4]
push ecx
call fcn.004d162c
add esp, 0xc
mov edx, dword [eax]
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x3a4]
call fcn.00474ea0
push 0x4ffcaa
mov word [ebp - 0xac], 0x38
lea eax, [ebp - 0x10]
call fcn.00401e94
mov edx, eax
inc dword [ebp - 0xa0]
mov ecx, dword [ebp - 0xc0]
mov eax, dword [ecx + 0x3a4]
call fcn.00474e70
lea eax, [ebp - 0x10]
call fcn.004019fc
push eax
call fcn.004c77a8
add esp, 8
mov dword [ebp - 0xe0], eax
dec dword [ebp - 0xa0]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004d14dc
push dword [ebp - 0xe0]
call fcn.004c72b4
pop ecx
cmp dword [ebp - 0xe0], 0
jne 0x418305
mov word [ebp - 0xac], 0x44
mov edx, 0x4ffcad
lea eax, [ebp - 0x14]
call fcn.004d137c
inc dword [ebp - 0xa0]
mov edx, dword [eax]
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x3a4]
call fcn.00474ea0
dec dword [ebp - 0xa0]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004d14dc
jmp 0x418355
push dword [ebp - 0xc0]
call fcn.0041b118
pop ecx
jmp 0x418355
mov word [ebp - 0xac], 0x50
mov edx, 0x4ffcae
lea eax, [ebp - 0x18]
call fcn.004d137c
inc dword [ebp - 0xa0]
mov edx, dword [eax]
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x3a4]
call fcn.00474ea0
dec dword [ebp - 0xa0]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004d14dc
lea ecx, [ebp - 0xc8]
push ecx
lea eax, [ebp - 0xd8]
push eax
push 0
push 0
push str.WriteKeyHDCPAlloc
push dword [ebp - 0xc4]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0xdc], eax
lea edx, [ebp - 0xc8]
push edx
lea ecx, [ebp - 0xd8]
push ecx
push 0
push 0
push str.WriteKeyHDCPAlloc
push dword [ebp - 0xc4]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xdc], 0
jne 0x4183ce
mov eax, dword [ebp - 0xd8]
and eax, 0x3fffff
mov dword [0x4e98c4], eax
or byte [0x4e98b2], 4
or byte [0x4e98b2], 2
jmp 0x4183dd
xor edx, edx
mov dword [0x4e98c4], edx
and byte [0x4e98b2], 0xfb
mov word [ebp - 0xac], 0x5c
mov eax, dword [0x4e98c4]
xor edx, edx
and eax, 0xfff000
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1c]
call fcn.00401e94
mov edx, eax
inc dword [ebp - 0xa0]
mov eax, 5
call fcn.004b0c58
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x20]
call fcn.00401e94
mov ecx, eax
inc dword [ebp - 0xa0]
mov eax, 0x4ffcaf
pop edx
call fcn.004d1884
lea edx, [ebp - 0x20]
mov edx, dword [edx]
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x3ac]
call fcn.00474ea0
dec dword [ebp - 0xa0]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004d14dc
dec dword [ebp - 0xa0]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004d14dc
lea ecx, [ebp - 0xc8]
push ecx
lea eax, [ebp - 0xd8]
push eax
push 0
push 0
push str.WriteKeyHDCPKeyIndex
push dword [ebp - 0xc4]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xdc], 0
jne 0x418532
mov edx, dword [ebp - 0xd8]
sar edx, 0x14
test dl, 1
setne dl
and edx, 1
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x3b0]
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov edx, dword [ebp - 0xd8]
sar edx, 0x15
test dl, 1
setne dl
and edx, 1
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x5f8]
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov edx, dword [ebp - 0xd8]
sar edx, 0x15
and edx, 1
not edx
test edx, edx
setne dl
and edx, 1
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x5fc]
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov edx, dword [ebp - 0xd8]
and edx, 0xfffff
mov dword [0x4e98c0], edx
or byte [0x4e98b2], 8
jmp 0x418559
xor edx, edx
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x3b0]
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov dword [0x4e98c0], 1
and byte [0x4e98b2], 0xf7
mov word [ebp - 0xac], 0x68
lea eax, [ebp - 0x24]
call fcn.00401e94
mov edx, eax
inc dword [ebp - 0xa0]
mov eax, dword [0x4e98c0]
call fcn.004b0bb8
lea edx, [ebp - 0x24]
mov edx, dword [edx]
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x3a8]
call fcn.00474ea0
dec dword [ebp - 0xa0]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004d14dc
mov word [ebp - 0xac], 0x74
lea eax, [ebp - 0x28]
call fcn.00401e94
mov edx, eax
inc dword [ebp - 0xa0]
mov eax, dword [0x4e98c0]
call fcn.004b0bb8
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x2c]
call fcn.00401e94
mov ecx, eax
inc dword [ebp - 0xa0]
mov eax, 0x4ffcb2
pop edx
call fcn.004d1884
lea edx, [ebp - 0x2c]
mov edx, dword [edx]
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x474]
call fcn.00474ea0
dec dword [ebp - 0xa0]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.004d14dc
dec dword [ebp - 0xa0]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004d14dc
mov edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0xc0]
call fcn.0041b7f4
lea ecx, [ebp - 0xc8]
push ecx
lea eax, [ebp - 0xd8]
push eax
push 0
push 0
push str.EraseStartAddr
push dword [ebp - 0xc4]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xdc], 0
jne 0x4186f4
mov word [ebp - 0xac], 0x80
lea eax, [ebp - 0x30]
call fcn.00401e94
mov ecx, eax
inc dword [ebp - 0xa0]
mov eax, dword [ebp - 0xd8]
and eax, 0xfff000
mov edx, 6
call fcn.004b0c1c
lea ecx, [ebp - 0x30]
push ecx
lea eax, [ebp - 0x34]
call fcn.00401e94
mov ecx, eax
inc dword [ebp - 0xa0]
mov eax, 0x4ffcb9
pop edx
call fcn.004d1884
lea edx, [ebp - 0x34]
mov edx, dword [edx]
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x404]
call fcn.00474ea0
dec dword [ebp - 0xa0]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.004d14dc
dec dword [ebp - 0xa0]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.004d14dc
jmp 0x418736
mov word [ebp - 0xac], 0x8c
mov edx, 0x4ffcbc
lea eax, [ebp - 0x38]
call fcn.004d137c
inc dword [ebp - 0xa0]
mov edx, dword [eax]
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x404]
call fcn.00474ea0
dec dword [ebp - 0xa0]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.004d14dc
lea ecx, [ebp - 0xc8]
push ecx
lea eax, [ebp - 0xd8]
push eax
push 0
push 0
push str.EraseEndAddr
push dword [ebp - 0xc4]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xdc], 0
jne 0x4187f6
mov word [ebp - 0xac], 0x98
lea eax, [ebp - 0x3c]
call fcn.00401e94
mov ecx, eax
inc dword [ebp - 0xa0]
mov eax, dword [ebp - 0xd8]
or eax, 0xfff
mov edx, 6
call fcn.004b0c1c
lea ecx, [ebp - 0x3c]
push ecx
lea eax, [ebp - 0x40]
call fcn.00401e94
mov ecx, eax
inc dword [ebp - 0xa0]
mov eax, 0x4ffcc5
pop edx
call fcn.004d1884
lea edx, [ebp - 0x40]
mov edx, dword [edx]
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x408]
call fcn.00474ea0
dec dword [ebp - 0xa0]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.004d14dc
dec dword [ebp - 0xa0]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.004d14dc
jmp 0x418838
mov word [ebp - 0xac], 0xa4
mov edx, 0x4ffcc8
lea eax, [ebp - 0x44]
call fcn.004d137c
inc dword [ebp - 0xa0]
mov edx, dword [eax]
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x404]
call fcn.00474ea0
dec dword [ebp - 0xa0]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004d14dc
lea ecx, [ebp - 0xc8]
push ecx
lea eax, [ebp - 0xd8]
push eax
push 0
push 0
push str.ISPSlaveAddr
push dword [ebp - 0xc4]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xdc], 0
jne 0x4188f3
mov word [ebp - 0xac], 0xb0
lea eax, [ebp - 0x48]
call fcn.00401e94
mov ecx, eax
inc dword [ebp - 0xa0]
mov edx, 2
mov eax, dword [ebp - 0xd8]
call fcn.004b0c1c
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x4c]
call fcn.00401e94
mov ecx, eax
inc dword [ebp - 0xa0]
mov eax, 0x4ffcd1
pop edx
call fcn.004d1884
lea edx, [ebp - 0x4c]
mov edx, dword [edx]
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x4f4]
call fcn.00474ea0
dec dword [ebp - 0xa0]
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.004d14dc
dec dword [ebp - 0xa0]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004d14dc
jmp 0x418935
mov word [ebp - 0xac], 0xbc
mov edx, 0x4ffcd4
lea eax, [ebp - 0x50]
call fcn.004d137c
inc dword [ebp - 0xa0]
mov edx, dword [eax]
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x4f4]
call fcn.00474ea0
dec dword [ebp - 0xa0]
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.004d14dc
lea ecx, [ebp - 0xc8]
push ecx
lea eax, [ebp - 0xd8]
push eax
push 0
push 0
push str.SDSlaveAddr
push dword [ebp - 0xc4]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xdc], 0
jne 0x4189f0
mov word [ebp - 0xac], 0xc8
lea eax, [ebp - 0x54]
call fcn.00401e94
mov ecx, eax
inc dword [ebp - 0xa0]
mov edx, 2
mov eax, dword [ebp - 0xd8]
call fcn.004b0c1c
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x58]
call fcn.00401e94
mov ecx, eax
inc dword [ebp - 0xa0]
mov eax, 0x4ffcd9
pop edx
call fcn.004d1884
lea edx, [ebp - 0x58]
mov edx, dword [edx]
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x500]
call fcn.00474ea0
dec dword [ebp - 0xa0]
lea eax, [ebp - 0x58]
mov edx, 2
call fcn.004d14dc
dec dword [ebp - 0xa0]
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.004d14dc
jmp 0x418a32
mov word [ebp - 0xac], 0xd4
mov edx, 0x4ffcdc
lea eax, [ebp - 0x5c]
call fcn.004d137c
inc dword [ebp - 0xa0]
mov edx, dword [eax]
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x500]
call fcn.00474ea0
dec dword [ebp - 0xa0]
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.004d14dc
lea ecx, [ebp - 0xc8]
push ecx
lea eax, [ebp - 0xd8]
push eax
push 0
push 0
push str.FactoryChkSum
push dword [ebp - 0xc4]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0xdc], eax
mov word [0x60c6e0], 0
mov word [ebp - 0xac], 0xe0
mov edx, 0x4ffce1
lea eax, [ebp - 0x60]
call fcn.004d137c
inc dword [ebp - 0xa0]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xc0]
mov eax, dword [ecx + 0x648]
call fcn.00474ea0
dec dword [ebp - 0xa0]
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.004d14dc
xor edx, edx
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x644]
mov ecx, dword [eax]
call dword [ecx + 0xc8]
lea edx, [ebp - 0xc8]
push edx
lea eax, [ebp - 0xd8]
push eax
push 0
push 0
push str.USBCustDest
push dword [ebp - 0xc4]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xdc], 0
jne 0x418b0f
cmp dword [ebp - 0xd8], 0
je 0x418af9
mov dl, 1
jmp 0x418afb
xor edx, edx
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x594]
mov ecx, dword [eax]
call dword [ecx + 0xc8]
lea edx, [ebp - 0xc8]
push edx
lea eax, [ebp - 0xd8]
push eax
push 0
push 0
push str.LDflashSafe
push dword [ebp - 0xc4]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0xdc], eax
mov dl, 1
mov ecx, dword [ebp - 0xc0]
mov eax, dword [ecx + 0x634]
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov dword [ebp - 0xc8], 0x20
lea edx, [ebp - 0xc8]
push edx
push 0x50f410
push 0
push 0
push str.LDSafeValue
push dword [ebp - 0xc4]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xdc], 0
je 0x418bb1
xor eax, eax
mov dword [ebp - 0xd4], eax
mov edx, dword [ebp - 0xd4]
mov byte [edx + 0x50f410], 0
inc dword [ebp - 0xd4]
cmp dword [ebp - 0xd4], 7
jl 0x418b8e
mov byte [0x50f417], 0xfc
mov edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0xc0]
call fcn.00424b04
push dword [ebp - 0xc4]
call sub.ADVAPI32.DLL_RegCloseKey
jmp 0x419001
mov edx, 0x23
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x4dc]
call fcn.00449eb0
push dword [ebp - 0xc0]
call fcn.0041a864
pop ecx
mov dword [0x518284], eax
xor edx, edx
mov ecx, dword [ebp - 0xc0]
mov eax, dword [ecx + 0x3f0]
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov edx, dword [ebp - 0xc0]
mov dword [edx + 0x754], 0xbc
mov dl, 1
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x3e4]
mov ecx, dword [eax]
call dword [ecx + 0xc8]
xor edx, edx
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x358]
mov ecx, dword [eax]
call dword [ecx + 0xcc]
xor edx, edx
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x354]
mov ecx, dword [eax]
call dword [ecx + 0xcc]
mov word [ebp - 0xac], 0xec
mov edx, 0x4ffce2
lea eax, [ebp - 0x64]
call fcn.004d137c
inc dword [ebp - 0xa0]
lea edx, [ebp - 0x64]
mov eax, 0x4e9898
call fcn.004d150c
dec dword [ebp - 0xa0]
lea eax, [ebp - 0x64]
mov edx, 2
call fcn.004d14dc
mov word [ebp - 0xac], 0xf8
mov edx, 0x4ffce3
lea eax, [ebp - 0x68]
call fcn.004d137c
inc dword [ebp - 0xa0]
mov edx, dword [eax]
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x3a4]
call fcn.00474ea0
dec dword [ebp - 0xa0]
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.004d14dc
xor ecx, ecx
mov dword [0x4e98c4], ecx
and byte [0x4e98b2], 0xfb
mov word [ebp - 0xac], 0x104
mov eax, dword [0x4e98c4]
xor edx, edx
and eax, 0xfff000
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x6c]
call fcn.00401e94
mov edx, eax
inc dword [ebp - 0xa0]
mov eax, 5
call fcn.004b0c58
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x70]
call fcn.00401e94
mov ecx, eax
inc dword [ebp - 0xa0]
mov eax, 0x4ffce4
pop edx
call fcn.004d1884
lea edx, [ebp - 0x70]
mov edx, dword [edx]
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x3ac]
call fcn.00474ea0
dec dword [ebp - 0xa0]
lea eax, [ebp - 0x70]
mov edx, 2
call fcn.004d14dc
dec dword [ebp - 0xa0]
lea eax, [ebp - 0x6c]
mov edx, 2
call fcn.004d14dc
xor edx, edx
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x3b0]
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov dword [0x4e98c0], 1
and byte [0x4e98b2], 0xf7
mov word [ebp - 0xac], 0x110
lea eax, [ebp - 0x74]
call fcn.00401e94
mov edx, eax
inc dword [ebp - 0xa0]
mov eax, dword [0x4e98c0]
call fcn.004b0bb8
lea edx, [ebp - 0x74]
mov edx, dword [edx]
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x3a8]
call fcn.00474ea0
dec dword [ebp - 0xa0]
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.004d14dc
mov word [ebp - 0xac], 0x11c
lea eax, [ebp - 0x78]
call fcn.00401e94
mov edx, eax
inc dword [ebp - 0xa0]
mov eax, dword [0x4e98c0]
call fcn.004b0bb8
lea edx, [ebp - 0x78]
push edx
lea eax, [ebp - 0x7c]
call fcn.00401e94
mov ecx, eax
inc dword [ebp - 0xa0]
mov eax, 0x4ffce7
pop edx
call fcn.004d1884
lea edx, [ebp - 0x7c]
mov edx, dword [edx]
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x474]
call fcn.00474ea0
dec dword [ebp - 0xa0]
lea eax, [ebp - 0x7c]
mov edx, 2
call fcn.004d14dc
dec dword [ebp - 0xa0]
lea eax, [ebp - 0x78]
mov edx, 2
call fcn.004d14dc
mov edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0xc0]
call fcn.0041b7f4
mov word [ebp - 0xac], 0x128
mov edx, 0x4ffcee
lea eax, [ebp - 0x80]
call fcn.004d137c
inc dword [ebp - 0xa0]
mov edx, dword [eax]
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x404]
call fcn.00474ea0
dec dword [ebp - 0xa0]
lea eax, [ebp - 0x80]
mov edx, 2
call fcn.004d14dc
mov word [ebp - 0xac], 0x134
mov edx, str.0x040000
lea eax, [ebp - 0x84]
call fcn.004d137c
inc dword [ebp - 0xa0]
mov edx, dword [eax]
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x404]
call fcn.00474ea0
dec dword [ebp - 0xa0]
lea eax, [ebp - 0x84]
mov edx, 2
call fcn.004d14dc
mov word [ebp - 0xac], 0x140
mov edx, 0x4ffd00
lea eax, [ebp - 0x88]
call fcn.004d137c
inc dword [ebp - 0xa0]
mov edx, dword [eax]
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x4f4]
call fcn.00474ea0
dec dword [ebp - 0xa0]
lea eax, [ebp - 0x88]
mov edx, 2
call fcn.004d14dc
mov word [ebp - 0xac], 0x14c
mov edx, 0x4ffd05
lea eax, [ebp - 0x8c]
call fcn.004d137c
inc dword [ebp - 0xa0]
mov edx, dword [eax]
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x500]
call fcn.00474ea0
dec dword [ebp - 0xa0]
lea eax, [ebp - 0x8c]
mov edx, 2
call fcn.004d14dc
xor edx, edx
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x594]
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov dl, 1
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x634]
mov ecx, dword [eax]
call dword [ecx + 0xc8]
xor edx, edx
mov dword [ebp - 0xd4], edx
mov eax, dword [ebp - 0xd4]
mov byte [eax + 0x50f410], 0
inc dword [ebp - 0xd4]
cmp dword [ebp - 0xd4], 7
jl 0x418fcd
mov byte [0x50f417], 0xfc
mov edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0xc0]
call fcn.00424b04
lea edx, [ebp - 0xc4]
push edx
push 0x20019
push 0
push str.SoftwareMStarISPToolISPFileName
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x419256
mov esi, 0x4e9cb9
lea edi, [ebp - 0x228]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov word [ebp - 0xac], 0x14
lea eax, [ebp - 0xc8]
push eax
lea edx, [ebp - 0xd8]
push edx
push 0
push 0
push str.Count
push dword [ebp - 0xc4]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xdc], 0
jne 0x41924b
cmp dword [ebp - 0xc8], 0
jbe 0x41924b
xor ecx, ecx
mov dword [ebp - 0xd4], ecx
mov eax, dword [ebp - 0xd4]
cmp eax, dword [ebp - 0xd8]
jge 0x41924b
mov word [ebp - 0xac], 0x158
lea eax, [ebp - 0x90]
call fcn.00401e94
mov edx, eax
inc dword [ebp - 0xa0]
mov eax, dword [ebp - 0xd4]
call fcn.004b0bb8
lea eax, [ebp - 0x90]
call fcn.004019fc
push eax
lea edx, [ebp - 0x228]
push edx
call fcn.004c5558
add esp, 8
dec dword [ebp - 0xa0]
lea eax, [ebp - 0x90]
mov edx, 2
call fcn.004d14dc
lea ecx, [ebp - 0xc8]
push ecx
lea eax, [ebp - 0x1e8]
push eax
push 0
push 0
lea edx, [ebp - 0x228]
push edx
push dword [ebp - 0xc4]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0xdc], eax
lea ecx, [ebp - 0xc8]
push ecx
lea eax, [ebp - 0x1e8]
push eax
push 0
push 0
lea edx, [ebp - 0x228]
push edx
push dword [ebp - 0xc4]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xdc], 0
jne 0x419233
lea ecx, [ebp - 0x1e8]
push ecx
call fcn.004c5588
pop ecx
test eax, eax
je 0x419233
mov eax, dword [ebp - 0xc0]
mov edx, dword [eax + 0x458]
add edx, 0x23c
mov dword [ebp - 0xe4], edx
mov word [ebp - 0xac], 0x164
lea edx, [ebp - 0x1e8]
lea eax, [ebp - 0x94]
call fcn.004d137c
inc dword [ebp - 0xa0]
mov edx, dword [eax]
mov eax, dword [ebp - 0xe4]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x54]
test eax, eax
setl dl
and edx, 1
push edx
dec dword [ebp - 0xa0]
lea eax, [ebp - 0x94]
mov edx, 2
call fcn.004d14dc
pop ecx
test cl, cl
je 0x419233
mov eax, dword [ebp - 0xc0]
mov edx, dword [eax + 0x458]
add edx, 0x23c
mov dword [ebp - 0xe8], edx
mov word [ebp - 0xac], 0x170
lea edx, [ebp - 0x1e8]
lea eax, [ebp - 0x98]
call fcn.004d137c
inc dword [ebp - 0xa0]
mov edx, dword [eax]
mov eax, dword [ebp - 0xe8]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x38]
dec dword [ebp - 0xa0]
lea eax, [ebp - 0x98]
mov edx, 2
call fcn.004d14dc
inc dword [ebp - 0xd4]
mov ecx, dword [ebp - 0xd4]
cmp ecx, dword [ebp - 0xd8]
jl 0x41909d
push dword [ebp - 0xc4]
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, dword [ebp - 0xdc]
push eax
dec dword [ebp - 0xa0]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004d14dc
pop eax
mov edx, dword [ebp - 0xbc]
mov dword fs:[0], edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret