Function at 0x420c70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4758cb
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x49e280]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov eax, dword [0x49e280]
xor eax, esp
push eax
lea eax, [esp + 0x248]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov dword [esp + 0x30], eax
call fcn.00425c00
mov dword [esp + 0x28], eax
test eax, eax
je 0x420ea1
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 1
mov dword [esp + 0x34], 0x200
call fcn.00421090
mov dword [esp + 0x250], 0
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call edx
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
cmp esi, eax
jbe 0x420d11
call fcn.0045876b
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x10]
mov edi, eax
cmp dword [esp + 0x1c], eax
jbe 0x420d22
call fcn.0045876b
test ebx, ebx
je 0x420d2c
cmp ebx, dword [esp + 0x10]
je 0x420d31
call fcn.0045876b
cmp esi, edi
je 0x420e51
test ebx, ebx
jne 0x420d59
call fcn.0045876b
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x420d4e
call fcn.0045876b
cmp dword [esi + 0x18], 8
jb 0x420d5d
mov eax, dword [esi + 4]
jmp 0x420d60
mov eax, dword [ebx]
jmp 0x420d44
lea eax, [esi + 4]
mov edi, dword [esp + 0x28]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x40]
push ecx
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x420da1
lea eax, [esp + 0x3c]
lea edx, [eax + 2]
jmp 0x420d90
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x420d90
sub eax, edx
sar eax, 1
jne 0x420dc6
test ebx, ebx
jne 0x420dc2
call fcn.0045876b
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x420db6
call fcn.0045876b
mov eax, dword [esp + 0x20]
add esi, 0x1c
jmp 0x420d15
mov eax, dword [ebx]
jmp 0x420dac
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [esp + 0x3c]
lea edx, [eax + 2]
jmp 0x420de0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x420de0
mov ecx, dword [esp + 0x30]
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00401cd0
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
xor esi, esi
cmp eax, esi
je 0x420e31
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x1c]
push edx
push ecx
push eax
call fcn.00421950
mov edx, dword [esp + 0x2c]
push edx
call fcn.00457c05
add esp, 0x14
mov eax, dword [esp + 0x10]
push eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call fcn.00457c05
add esp, 4
mov eax, 1
jmp 0x420ea3
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
xor esi, esi
cmp eax, esi
je 0x420e88
mov edx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x1c]
push ecx
push edx
push eax
call fcn.00421950
mov eax, dword [esp + 0x2c]
push eax
call fcn.00457c05
add esp, 0x14
mov ecx, dword [esp + 0x10]
push ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call fcn.00457c05
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x248]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00457c10
mov esp, ebp
pop ebp
ret 4