Function at 0x45b900
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ad963
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x62c2a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
xor esi, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x74], esi
xor edi, edi
mov dword [ebp - 0x24], edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x88]
or eax, 0x20019
mov byte [ebp - 4], 4
push eax
push 0x600ba8
push 0x80000002
call fcn.00427690
test eax, eax
je 0x45b9d6
push 0x625638
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], ebx
push eax
call fcn.00586852
mov eax, 0x45b9ac
ret
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x45b9bf
push esi
call ebx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0x88]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x2c], esi
jmp 0x45b9f0
mov dword [ebp - 0x30], 0x80
test edi, edi
je 0x45baa5
mov eax, dword [edi - 8]
cmp eax, 0x80
jge 0x45ba61
push 0x80
call fcn.00433d50
mov dword [ebp - 0x50], eax
test eax, eax
je 0x45bab6
mov ecx, dword [edi - 0xc]
lea esi, [edi - 0xc]
push ecx
push edi
push eax
mov dword [ebp - 0x54], ecx
call fcn.00589690
add esp, 0xc
dec dword [esi + 8]
jne 0x45ba53
mov ecx, dword [esi + 4]
mov eax, esi
add ecx, 0xd
je 0x45ba4a
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x45ba41
push esi
call fcn.00582cf0
add esp, 4
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
mov esi, dword [ebp - 0x2c]
mov dword [eax - 0xc], ecx
jmp 0x45baaf
cmp dword [edi - 4], 1
jbe 0x45bab4
add eax, 0xd
push eax
mov dword [ebp - 0x54], eax
call fcn.00584bc0
mov esi, eax
add esp, 4
test esi, esi
je 0x45ba9e
push dword [ebp - 0x54]
lea eax, [edi - 0xc]
push eax
push esi
call fcn.00589690
add esp, 0xc
dec dword [edi - 4]
mov dword [esi + 8], 1
lea edi, [esi + 0xc]
mov esi, dword [ebp - 0x2c]
jmp 0x45bab1
mov esi, dword [ebp - 0x2c]
xor eax, eax
jmp 0x45bab6
push 0x80
call fcn.00433d50
mov edi, eax
mov dword [ebp - 0x24], edi
mov eax, edi
lea ecx, [ebp - 0x70]
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0x30]
push ecx
push eax
push dword [ebp - 0x38]
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x45bb4e
cmp eax, 0x103
jne 0x45bfee
test ebx, ebx
je 0x45bb0d
add ebx, 0xfffffff4
dec dword [ebx + 8]
jne 0x45bb06
mov ecx, dword [ebx + 4]
mov eax, ebx
add ecx, 0xd
je 0x45bafd
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x45baf4
push ebx
call fcn.00582cf0
add esp, 4
mov dword [ebp - 0x1c], 0
test edi, edi
je 0x45bb35
add edi, 0xfffffff4
dec dword [edi + 8]
jne 0x45bb35
mov ecx, dword [edi + 4]
mov eax, edi
add ecx, 0xd
je 0x45bb2c
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x45bb23
push edi
call fcn.00582cf0
add esp, 4
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x45b9b2
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebx
jmp 0x45b9b8
test edi, edi
je 0x45bb63
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45bb57
sub ecx, edx
mov dword [edi - 0xc], ecx
push 0x12
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x24]
call fcn.00433a30
mov ecx, 0x5ef390
push 0x600c10
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call fcn.00582e5c
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x3c]
setne cl
mov byte [ebp - 0x15], cl
test eax, eax
je 0x45bbcc
dec dword [eax - 4]
lea edx, [eax - 0xc]
jne 0x45bbc5
mov ecx, dword [edx + 4]
mov eax, edx
add ecx, 0xd
je 0x45bbb9
lea esp, [esp]
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x45bbb0
push edx
call fcn.00582cf0
mov cl, byte [ebp - 0x15]
add esp, 4
mov dword [ebp - 0x3c], 0
test cl, cl
jne 0x45bfee
push 0x33
call fcn.00433d50
mov esi, eax
mov dword [ebp - 0x48], esi
test esi, esi
je 0x45bbfb
push 0x33
push 0x600ba8
push esi
mov dword [esi - 0xc], 0x33
call fcn.00589690
add esp, 0xc
push 0x5c
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x44]
call fcn.00433920
add esp, 4
lea ecx, [ebp - 0x24]
mov edx, eax
push ecx
lea ecx, [ebp - 0x40]
call fcn.00433780
add esp, 4
mov ecx, 0x5ef390
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
mov eax, dword [ebp + 8]
or eax, 0x20019
push eax
push ecx
push 0x80000002
lea ecx, [ebp - 0x7c]
call fcn.00427690
test eax, eax
mov eax, dword [ebp - 0x40]
sete byte [ebp - 0x15]
test eax, eax
je 0x45bc79
dec dword [eax - 4]
lea edx, [eax - 0xc]
jne 0x45bc72
mov ecx, dword [edx + 4]
mov eax, edx
add ecx, 0xd
je 0x45bc69
mov edi, edi
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x45bc60
push edx
call fcn.00582cf0
add esp, 4
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x45bcab
dec dword [eax - 4]
lea edx, [eax - 0xc]
jne 0x45bca4
mov ecx, dword [edx + 4]
mov eax, edx
add ecx, 0xd
je 0x45bc9b
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x45bc92
push edx
call fcn.00582cf0
add esp, 4
mov dword [ebp - 0x44], 0
test esi, esi
je 0x45bcda
add esi, 0xfffffff4
dec dword [esi + 8]
jne 0x45bcd3
mov ecx, dword [esi + 4]
mov eax, esi
add ecx, 0xd
je 0x45bcca
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x45bcc1
push esi
call fcn.00582cf0
add esp, 4
mov dword [ebp - 0x48], 0
cmp byte [ebp - 0x15], 0
je 0x45bfe5
push 0x80
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x30], 0x80
call fcn.00433210
mov ecx, dword [ebp - 0x30]
mov esi, eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], ecx
push eax
push esi
lea eax, [ebp - 0x58]
mov dword [ebp - 0x30], 0
push eax
mov eax, dword [ebp - 0x7c]
push 0
push 0x600c00
push eax
mov dword [ebp - 0x28], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45bd47
mov eax, dword [ebp - 0x58]
cmp eax, 1
je 0x45bd35
cmp eax, 2
jne 0x45bd47
mov eax, dword [ebp - 0x34]
test esi, esi
je 0x45bd75
test eax, eax
je 0x45bd72
cmp byte [eax + esi - 1], 0
je 0x45bd75
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x45bd60
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x7c], eax
mov esi, dword [ebp - 0x2c]
inc dword [ebp - 0x38]
mov dword [ebp - 0x78], 0
jmp 0x45b9f0
mov byte [esi], 0
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
test ebx, ebx
je 0x45bd90
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45bd84
sub ecx, edx
mov dword [ebx - 0xc], ecx
push 2
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00433a30
or dword [ebp - 0x20], 1
mov ecx, 0x5ef390
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
mov eax, 0x600c28
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x45bdd3
test dl, dl
je 0x45bdcf
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x45bdd3
add ecx, 2
add eax, 2
test dl, dl
jne 0x45bdb3
xor eax, eax
jmp 0x45bdd8
sbb eax, eax
or eax, 1
test eax, eax
je 0x45be12
test ebx, ebx
je 0x45be0c
push 0x600c24
push ebx
call fcn.00585080
add esp, 8
test eax, eax
je 0x45bdf6
sub eax, ebx
jns 0x45be12
push 0x600c30
push ebx
call fcn.00585080
add esp, 8
test eax, eax
je 0x45be0c
sub eax, ebx
jns 0x45be12
mov byte [ebp - 0x15], 0
jmp 0x45be16
mov byte [ebp - 0x15], 1
mov eax, dword [ebp - 0x20]
test al, 1
je 0x45be2b
and eax, 0xfffffffe
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x20], eax
call fcn.004331d0
cmp byte [ebp - 0x15], 0
lea ecx, [ebp - 0x1c]
jne 0x45c06f
push 2
lea eax, [ebp - 0x60]
push eax
call fcn.00433a30
or dword [ebp - 0x20], 2
mov ecx, 0x5ef390
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
mov eax, 0x600c2c
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x45be78
test dl, dl
je 0x45be74
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x45be78
add ecx, 2
add eax, 2
test dl, dl
jne 0x45be58
xor eax, eax
jmp 0x45be7d
sbb eax, eax
or eax, 1
test eax, eax
je 0x45beb0
test ebx, ebx
je 0x45be9b
push 0x600c48
push ebx
call fcn.00585080
add esp, 8
test eax, eax
je 0x45be9b
sub eax, ebx
jns 0x45beb0
push 0x600c3c
lea ecx, [ebp - 0x1c]
call fcn.00433cb0
mov byte [ebp - 0x15], 0
test eax, eax
js 0x45beb4
mov byte [ebp - 0x15], 1
mov eax, dword [ebp - 0x20]
test al, 2
je 0x45bec9
and eax, 0xfffffffd
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x20], eax
call fcn.004331d0
cmp byte [ebp - 0x15], 0
lea ecx, [ebp - 0x1c]
jne 0x45c02f
push 3
lea eax, [ebp - 0x64]
push eax
call fcn.00433a30
or dword [ebp - 0x20], 4
mov edx, 0x600c54
mov ecx, eax
call fcn.00433e60
test al, al
jne 0x45bf1b
push 0x600c4c
lea ecx, [ebp - 0x1c]
call fcn.00433cb0
test eax, eax
jns 0x45bf1b
push 0x600c5c
lea ecx, [ebp - 0x1c]
call fcn.00433cb0
mov byte [ebp - 0x15], 0
test eax, eax
js 0x45bf1f
mov byte [ebp - 0x15], 1
mov eax, dword [ebp - 0x20]
test al, 4
je 0x45bf34
and eax, 0xfffffffb
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x20], eax
call fcn.004331d0
cmp byte [ebp - 0x15], 0
lea ecx, [ebp - 0x1c]
jne 0x45bff6
push 3
lea eax, [ebp - 0x68]
push eax
call fcn.00433a30
or dword [ebp - 0x20], 8
mov edx, 0x600c58
mov ecx, eax
call fcn.00433e60
test al, al
jne 0x45bf86
push 0x600c74
lea ecx, [ebp - 0x1c]
call fcn.00433cb0
test eax, eax
jns 0x45bf86
push 0x600c68
lea ecx, [ebp - 0x1c]
call fcn.00433cb0
mov byte [ebp - 0x15], 0
test eax, eax
js 0x45bf8a
mov byte [ebp - 0x15], 1
mov eax, dword [ebp - 0x20]
test al, 8
je 0x45bf9f
and eax, 0xfffffff7
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x20], eax
call fcn.004331d0
cmp byte [ebp - 0x15], 0
je 0x45bd4a
lea ecx, [ebp - 0x1c]
call fcn.004331d0
lea ecx, [ebp - 0x24]
call fcn.004331d0
lea ecx, [ebp - 0x7c]
call fcn.00427770
lea ecx, [ebp - 0x88]
call fcn.00427770
mov eax, 0x44
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x7c]
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
inc dword [ebp - 0x38]
jmp 0x45b9f0
call fcn.004331d0
lea ecx, [ebp - 0x24]
call fcn.004331d0
lea ecx, [ebp - 0x7c]
call fcn.00427770
lea ecx, [ebp - 0x88]
call fcn.00427770
mov eax, 0x30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.004331d0
lea ecx, [ebp - 0x24]
call fcn.004331d0
mov eax, dword [ebp - 0x28]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x45c04c
push eax
call ebx
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x45c056
push eax
call ebx
mov eax, 0x24
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.004331d0
lea ecx, [ebp - 0x24]
call fcn.004331d0
mov eax, dword [ebp - 0x28]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x45c08c
push eax
call ebx
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x45c096
push eax
call ebx
mov eax, 0x2f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4