Function at 0x407d40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45b5cf
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x474054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x88], edi
mov esi, ecx
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x68], esi
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0x474ab8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0xb8]
push 0x2a
mov dword [ebp - 0xb8], eax
push str._PROGRAMDATA_ASUSARMOURY_CRATE_Diagnosis
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], 7
mov word [ebp - 0xb8], ax
call fcn.00414e90
lea edx, [ebp - 0xb8]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa0]
call fcn.004046b0
mov ecx, eax
mov byte [ebp - 4], 2
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x407dfd
mov eax, dword [edi]
push dword [edi + 0x10]
push eax
call fcn.00412960
xor ecx, ecx
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x14]
movq qword [ebp - 0x6c], xmm1
movups xmmword [ebp - 0x5c], xmm0
cmp edx, 8
jb 0x407e6d
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407e5a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408650
push edx
push ecx
call fcn.00430f20
movups xmm0, xmmword [ebp - 0x5c]
add esp, 8
movq xmm1, qword [ebp - 0x6c]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x8c]
movq qword [ebp - 0x18], xmm1
movups xmmword [ebp - 0x28], xmm0
cmp edx, 8
jb 0x407eba
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407eb0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408650
push edx
push ecx
call fcn.00430f20
add esp, 8
xor eax, eax
mov dword [ebp - 0x90], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0xa4]
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
cmp edx, 8
jb 0x407f1a
mov ecx, dword [ebp - 0xb8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407f10
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408650
push edx
push ecx
call fcn.00430f20
add esp, 8
xor eax, eax
xorps xmm0, xmm0
movq qword [ebp - 0x58], xmm0
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
push 0x20019
push str.SOFTWAREASUSARMOURY_CRATE_Diagnosis
push ecx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.004043f0
test eax, eax
je 0x407fea
movups xmm0, xmmword [ebp - 0x28]
xor eax, eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
mov word [ebp - 0x28], ax
movq xmm0, qword [ebp - 0x18]
mov eax, dword [ebp - 0x58]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
test eax, eax
je 0x407fcd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x407fcd
lea edx, [edx*2 + 2]
mov ecx, dword [ebp - 0x28]
mov eax, ecx
cmp edx, 0x1000
jb 0x407fc3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40864b
push edx
push ecx
call fcn.00430f20
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00430771
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 4
mov edi, dword [ebp - 0x58]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x60]
push eax
push 0
lea eax, [ebp - 0x44]
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0
push str.LogPath
push edi
mov dword [ebp - 0xbc], eax
call eax
test eax, eax
jne 0x408581
mov eax, dword [ebp - 0x44]
cmp eax, 1
je 0x408047
cmp eax, 2
jne 0x408581
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x30]
shr ecx, 1
mov dword [ebp - 0x44], ecx
cmp ecx, edx
ja 0x40806c
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov dword [ebp - 0x30], ecx
cmovae eax, dword [ebp - 0x40]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x408081
mov eax, ecx
lea ecx, [ebp - 0x40]
push 0
sub eax, edx
push eax
lfence
call fcn.00414fb0
mov ecx, dword [ebp - 0x44]
cmp dword [ebp - 0x2c], 8
lea eax, [ecx + ecx]
mov dword [ebp - 0x60], eax
lea edx, [ebp - 0x40]
cmovae edx, dword [ebp - 0x40]
lea eax, [ebp - 0x60]
push eax
push edx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x68], edx
push eax
push 0
push str.LogPath
push edi
call dword [ebp - 0xbc]
test eax, eax
jne 0x408163
mov eax, dword [ebp - 0x44]
cmp eax, 1
je 0x4080c5
cmp eax, 2
jne 0x408163
mov ecx, dword [ebp - 0x68]
test ecx, ecx
je 0x4080ec
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x4080e7
test al, 1
jne 0x408163
shr eax, 1
cmp word [ecx + eax*2 - 2], 0
je 0x4080ec
jmp 0x408163
xor eax, eax
mov word [ecx], ax
cmp dword [ebp - 0x30], 0
je 0x408163
mov byte [ebp - 0x68], 0
lea edx, [ebp - 0x40]
push dword [ebp - 0x68]
lea ecx, [ebp - 0x84]
call fcn.00419cb0
add esp, 4
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x84]
call fcn.00403d00
mov edx, dword [ebp - 0x70]
mov byte [ebp - 0x61], al
cmp edx, 8
jb 0x40815b
mov ecx, dword [ebp - 0x84]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40814e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408655
push edx
push ecx
call fcn.00430f20
mov al, byte [ebp - 0x61]
add esp, 8
test al, al
jne 0x408209
movups xmm0, xmmword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
xor ecx, ecx
mov dword [esi], 0
mov eax, 7
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov word [ebp - 0x28], cx
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
movq qword [esi + 0x10], xmm0
cmp edx, 8
jb 0x4081d6
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4081c9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40864b
push edx
push ecx
call fcn.00430f20
mov eax, dword [ebp - 0x14]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], cx
mov dword [ebp - 0x30], ecx
test edi, edi
je 0x4081f4
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x407fcd
lea edx, [eax*2 + 2]
jmp 0x407fa2
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 0x30]
cmovae ecx, dword [ebp - 0x40]
dec edx
cmp word [ecx + edx*2], 0
jne 0x408233
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov dword [ebp - 0x30], edx
cmovae eax, dword [ebp - 0x40]
xor ecx, ecx
mov word [eax + edx*2], cx
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x84]
call fcn.004046b0
mov edx, eax
mov eax, dword [ebp - 0x88]
mov ecx, eax
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
jb 0x408257
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, edx
call fcn.00412960
xor ecx, ecx
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x14]
movq qword [ebp - 0x6c], xmm1
movups xmmword [ebp - 0xb0], xmm0
cmp edx, 8
jb 0x4082cf
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4082b9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40865a
push edx
push ecx
call fcn.00430f20
movups xmm0, xmmword [ebp - 0xb0]
add esp, 8
movq xmm1, qword [ebp - 0x6c]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x70]
movq qword [ebp - 0x18], xmm1
movups xmmword [ebp - 0x28], xmm0
cmp edx, 8
jb 0x408319
mov ecx, dword [ebp - 0x84]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40830f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40865a
push edx
push ecx
call fcn.00430f20
add esp, 8
mov byte [ebp - 0x68], 0
lea edx, [ebp - 0x28]
push dword [ebp - 0x68]
lea ecx, [ebp - 0x84]
call fcn.00419cb0
add esp, 4
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x84]
call fcn.00403d00
mov edx, dword [ebp - 0x70]
mov byte [ebp - 0x61], al
cmp edx, 8
jb 0x408382
mov ecx, dword [ebp - 0x84]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408375
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40865f
push edx
push ecx
call fcn.00430f20
mov al, byte [ebp - 0x61]
add esp, 8
test al, al
jne 0x408163
mov byte [ebp - 0x68], al
lea edx, [ebp - 0x28]
push dword [ebp - 0x68]
lea ecx, [ebp - 0x84]
call fcn.00419cb0
add esp, 4
lea edx, [ebp - 0x4c]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x84]
call fcn.00403df0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x70]
mov byte [ebp - 0x61], al
cmp edx, 8
jb 0x4083fa
mov ecx, dword [ebp - 0x84]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4083ed
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408664
push edx
push ecx
call fcn.00430f20
mov al, byte [ebp - 0x61]
add esp, 8
test al, al
jne 0x408163
push 0x2a
xor eax, eax
mov dword [ebp - 0xa0], 0
push str._PROGRAMDATA_ASUSARMOURY_CRATE_Diagnosis
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
call fcn.00414e90
lea edx, [ebp - 0xa0]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x84]
call fcn.004046b0
mov ecx, eax
mov eax, dword [ebp - 0x88]
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 8
mov edx, dword [eax + 0x10]
jb 0x408467
mov eax, dword [eax]
push edx
push eax
call fcn.00412960
xor ecx, ecx
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x14]
movq qword [ebp - 0x4c], xmm1
movups xmmword [ebp - 0xb0], xmm0
cmp edx, 8
jb 0x4084db
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4084c5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408669
push edx
push ecx
call fcn.00430f20
movups xmm0, xmmword [ebp - 0xb0]
add esp, 8
movq xmm1, qword [ebp - 0x4c]
mov edx, dword [ebp - 0x70]
movq qword [ebp - 0x18], xmm1
movups xmmword [ebp - 0x28], xmm0
cmp edx, 8
jb 0x408521
mov ecx, dword [ebp - 0x84]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408517
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408669
push edx
push ecx
call fcn.00430f20
add esp, 8
mov edx, dword [ebp - 0x8c]
xor eax, eax
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 7
mov word [ebp - 0x84], ax
cmp edx, 8
jb 0x408163
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408572
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408669
push edx
push ecx
call fcn.00430f20
add esp, 8
jmp 0x408163
movups xmm0, xmmword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
xor ecx, ecx
mov dword [esi], 0
mov eax, 7
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov word [ebp - 0x28], cx
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], eax
cmp edx, 8
jb 0x4085f4
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4085e7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40864b
push edx
push ecx
call fcn.00430f20
mov eax, dword [ebp - 0x14]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], cx
test edi, edi
je 0x408616
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x407fcd
mov ecx, dword [ebp - 0x28]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407fc3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x407fc3
call fcn.0043f373
call fcn.0043f373
call fcn.0043f373
call fcn.0043f373
call fcn.0043f373
call fcn.0043f373
call fcn.0043f373
int3