Function at 0x470000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x514599
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x57d074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x48], 0
mov edx, dword [ebx]
mov dword [ebp - 0x54], esi
test edx, edx
jne 0x47005a
xor eax, eax
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
jmp 0x4702c4
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x470064
mov eax, dword [edi]
lea ecx, [ebp - 0x4c]
push ecx
push 0
lea ecx, [ebp - 0x50]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4702ae
cmp dword [ebp - 0x4c], eax
je 0x4702ae
mov eax, dword [ebp - 0x50]
cmp eax, 1
je 0x47009a
cmp eax, 2
jne 0x4702ae
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 1
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x1c]
shr ecx, 1
cmp ecx, eax
ja 0x4700fd
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], ecx
cmovae eax, dword [ebp - 0x2c]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x47010a
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00452686
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
cmp dword [edi + 0x14], 8
jb 0x47011d
mov edi, dword [edi]
lea ecx, [ebp - 0x4c]
push ecx
push eax
push 0
push 0
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x470237
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x44]
call fcn.004056c5
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x47016b
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
cmp word [eax + ecx*2 - 2], 0
jne 0x47016b
lea eax, [ecx - 1]
push 0
push eax
lea ecx, [ebp - 0x44]
call fcn.004526e1
push 0x18
lea eax, [ebp - 0x44]
mov dword [esi + 0x10], 0
push eax
push esi
mov dword [esi + 0x14], 0
call fcn.004dbdb0
add esp, 0xc
mov dword [ebp - 0x34], 0
xor eax, eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov dword [ebp - 0x48], 1
mov byte [ebp - 4], 1
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x47021e
mov ecx, dword [ebp - 0x2c]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x7fffffff
ja 0x4702eb
add edx, edx
cmp edx, 0x1000
jb 0x470214
lea edi, [edx + 0x23]
cmp edi, edx
jbe 0x4702eb
mov edx, edi
test al, 0x1f
jne 0x4702eb
mov ecx, dword [ecx - 4]
cmp ecx, eax
jae 0x4702eb
sub eax, ecx
cmp eax, 4
jb 0x4702eb
cmp eax, 0x23
ja 0x4702eb
push edx
push ecx
call fcn.004dadb5
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
jmp 0x4702cb
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 0x48], 1
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x4702a2
lea edx, [eax + 1]
mov eax, dword [ebp - 0x44]
mov ecx, eax
cmp edx, 0x7fffffff
ja 0x4702eb
add edx, edx
cmp edx, 0x1000
jb 0x470298
lea edi, [edx + 0x23]
cmp edi, edx
jbe 0x4702eb
mov edx, edi
test cl, 0x1f
jne 0x4702eb
mov eax, dword [eax - 4]
cmp eax, ecx
jae 0x4702eb
sub ecx, eax
cmp ecx, 4
jb 0x4702eb
cmp ecx, 0x23
ja 0x4702eb
push edx
push eax
call fcn.004dadb5
add esp, 8
mov dword [ebp - 0x34], 0
jmp 0x4701aa
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x48], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004da696
mov esp, ebp
pop ebp
ret 0xc
call fcn.004e0754
int3