Function at 0x42d52a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
xor ecx, ecx
push edi
mov dword [ebp - 0x220], ecx
cmp dword [esi + 0x28], ecx
je 0x42d7c4
cmp dword [esi + 0x24], ecx
je 0x42d7c4
mov eax, dword [esi + 0x38]
cmp dword [ebp + 8], ecx
je 0x42d578
test eax, eax
je 0x42d573
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [esi + 0x38], ecx
mov eax, ecx
lea edi, [esi + 0x38]
test eax, eax
jne 0x42d7c0
push ecx
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], ecx
push eax
push ecx
push 0x2001f
push ecx
push ecx
push ecx
push 0x407568
push SysReAllocStringLen
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x42d7af
mov ecx, esi
mov dword [ebp - 0x218], eax
call fcn.0042d34b
test eax, eax
mov eax, 0x4071f4
jne 0x42d5cf
mov eax, 0x407208
xor edx, edx
lea ecx, [ebp - 0x218]
push edx
push ecx
push edx
push 0x2001f
push edx
push edx
push edx
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x42d79f
push dword [esi + 0x24]
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
push dword [esi + 0x28]
push 0x406e18
push 0xff
push eax
call fcn.0040c0b5
add esp, 0x14
lea eax, [ebp - 0x214]
push eax
push edi
xor eax, eax
push eax
push 0x2001f
push eax
push eax
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x42d793
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x214], 2
jne 0x42d70c
xor ecx, ecx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x214], 0x200
cmp dword [esi + 0x20], ecx
je 0x42d70f
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push ecx
push 0x401adc
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42d70f
cmp dword [ebp - 0x210], ebx
jne 0x42d70f
fldz
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x20c]
fst qword [ebp - 0x234]
push 0x404754
push eax
fstp qword [ebp - 0x22c]
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0xc
test eax, eax
je 0x42d70f
lea eax, [ebp - 0x234]
push eax
push 0x404754
push dword [esi + 0x20]
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0xc
test eax, eax
je 0x42d70f
fld qword [ebp - 0x22c]
fcomp qword [ebp - 0x234]
fnstsw ax
test ah, 0x41
je 0x42d705
mov eax, ebx
jmp 0x42d707
xor eax, eax
mov dword [esi + 0x14], eax
jmp 0x42d70f
mov dword [esi + 0x14], ebx
mov edx, dword [esi + 0x20]
test edx, edx
je 0x42d752
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x210], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x220]
jne 0x42d721
sub ecx, dword [ebp - 0x210]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
mov edx, dword [edi]
push ecx
push ecx
mov ecx, dword [esi + 0x14]
push 0x401adc
call fcn.00422749
mov edx, dword [esi + 0x18]
test edx, edx
je 0x42d793
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x210], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x220]
jne 0x42d764
sub ecx, dword [ebp - 0x210]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
mov edx, dword [edi]
xor eax, eax
push ecx
push ecx
mov ecx, dword [esi + 0x14]
push eax
call fcn.00422749
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x42d7c0
cmp dword [edi], 0
je 0x42d7c0
push dword [edi]
call fcn.00441835
xor eax, eax
pop ecx
mov dword [edi], eax
mov eax, dword [edi]
jmp 0x42d7d1
push 0x8000ffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441b90
mov esp, ebp
pop ebp
ret 4