Function at 0x1054418
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x28], edi
je 0x10546b6
cmp dword [esi + 0x24], edi
je 0x10546b6
cmp dword [ebp + 8], edi
je 0x105445b
mov eax, dword [esi + 0x38]
cmp eax, edi
je 0x1054458
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 0x38], edi
lea eax, [esi + 0x38]
mov dword [ebp - 0x208], eax
cmp dword [eax], edi
jne 0x10546ac
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push edi
lea eax, [ebp - 0x218]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
push 0x10073b8
push 0x80000000
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x21c], edi
call ebx
test eax, eax
jne 0x1054690
mov ecx, esi
mov dword [ebp - 0x214], edi
call fcn.010543ba
test eax, eax
mov eax, 0x100740c
jne 0x10544bf
mov eax, 0x1007420
push edi
lea ecx, [ebp - 0x214]
push ecx
push edi
push 0x2001f
push edi
push edi
push edi
push eax
push dword [ebp - 0x218]
call ebx
test eax, eax
jne 0x105467c
push dword [esi + 0x24]
lea eax, [ebp - 0x204]
push dword [esi + 0x28]
mov dword [ebp - 0x210], edi
push 0x1008790
push 0xff
push eax
call fcn.0103590d
add esp, 0x14
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x208]
lea eax, [ebp - 0x204]
push edi
push 0x2001f
push edi
push edi
push edi
push eax
push dword [ebp - 0x214]
call ebx
test eax, eax
jne 0x1054670
inc eax
cmp dword [ebp - 0x210], 2
mov dword [ebp - 0x21c], eax
mov ebx, 0x1002250
jne 0x10545fb
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x210], 0x200
cmp dword [esi + 0x20], edi
je 0x10545fe
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x208]
push edi
push ebx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10545fe
cmp dword [ebp - 0x20c], 1
jne 0x10545fe
fldz
lea eax, [ebp - 0x22c]
push eax
fst qword [ebp - 0x224]
lea eax, [ebp - 0x204]
fstp qword [ebp - 0x22c]
push 0x1009018
push eax
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0xc
test eax, eax
je 0x10545fe
lea eax, [ebp - 0x224]
push eax
push 0x1009018
push dword [esi + 0x20]
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0xc
test eax, eax
je 0x10545fe
fld qword [ebp - 0x22c]
fcomp qword [ebp - 0x224]
fnstsw ax
test ah, 0x41
je 0x10545f9
xor eax, eax
inc eax
jmp 0x10545fb
xor eax, eax
mov dword [esi + 0x14], eax
mov ecx, dword [esi + 0x20]
cmp ecx, edi
je 0x105463c
mov eax, ecx
lea edx, [eax + 2]
mov dword [ebp - 0x20c], edx
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x1054610
sub eax, dword [ebp - 0x20c]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
mov eax, dword [ebp - 0x208]
push ecx
push 1
push edi
push ebx
push dword [eax]
push dword [esi + 0x14]
call fcn.01057a03
mov ecx, dword [esi + 0x18]
cmp ecx, edi
je 0x1054670
mov eax, ecx
lea ebx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x1054648
sub eax, ebx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
mov eax, dword [ebp - 0x208]
push ecx
push 1
push edi
push edi
push dword [eax]
push dword [esi + 0x14]
call fcn.01057a03
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x21c], edi
jne 0x10546ab
mov eax, dword [ebp - 0x208]
mov eax, dword [eax]
cmp eax, edi
je 0x10546ab
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 0x208]
pop ecx
mov dword [eax], edi
pop ebx
mov eax, dword [ebp - 0x208]
mov eax, dword [eax]
jmp 0x10546c3
push 0x8000ffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01047464
leave
ret 4