Function at 0x42d06e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4424f4]
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 0x42d308
cmp dword [esi + 0x24], ecx
je 0x42d308
mov eax, dword [esi + 0x38]
cmp dword [ebp + 8], ecx
je 0x42d0bc
test eax, eax
je 0x42d0b7
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 0x42d304
push ecx
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], ecx
push eax
push ecx
push 0x2001f
push ecx
push ecx
push ecx
push 0x407578
push SysReAllocStringLen
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x42d2f3
mov ecx, esi
mov dword [ebp - 0x218], eax
call fcn.0042ce91
test eax, eax
mov eax, 0x407204
jne 0x42d113
mov eax, 0x407218
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 0x42d2e3
push dword [esi + 0x24]
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
push dword [esi + 0x28]
push 0x406e28
push 0xff
push eax
call fcn.0040c0e1
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 0x42d2d7
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x214], 2
jne 0x42d250
xor ecx, ecx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x214], 0x200
cmp dword [esi + 0x20], ecx
je 0x42d253
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push ecx
push 0x401aec
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42d253
cmp dword [ebp - 0x210], ebx
jne 0x42d253
fldz
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x20c]
fst qword [ebp - 0x234]
push 0x404764
push eax
fstp qword [ebp - 0x22c]
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0xc
test eax, eax
je 0x42d253
lea eax, [ebp - 0x234]
push eax
push 0x404764
push dword [esi + 0x20]
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0xc
test eax, eax
je 0x42d253
fld qword [ebp - 0x22c]
fcomp qword [ebp - 0x234]
fnstsw ax
test ah, 0x41
je 0x42d249
mov eax, ebx
jmp 0x42d24b
xor eax, eax
mov dword [esi + 0x14], eax
jmp 0x42d253
mov dword [esi + 0x14], ebx
mov edx, dword [esi + 0x20]
test edx, edx
je 0x42d296
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 0x42d265
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 0x401aec
call fcn.0042247c
mov edx, dword [esi + 0x18]
test edx, edx
je 0x42d2d7
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 0x42d2a8
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.0042247c
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 0x42d304
cmp dword [edi], 0
je 0x42d304
push dword [edi]
call fcn.00440de5
xor eax, eax
pop ecx
mov dword [edi], eax
mov eax, dword [edi]
jmp 0x42d315
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.00441130
leave
ret 4