Function at 0x1054439
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x28], edi
je 0x10546d7
cmp dword [esi + 0x24], edi
je 0x10546d7
cmp dword [ebp + 8], edi
je 0x105447c
mov eax, dword [esi + 0x38]
cmp eax, edi
je 0x1054479
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 0x38], edi
lea eax, [esi + 0x38]
cmp dword [eax], edi
mov dword [ebp - 0x208], eax
jne 0x10546cd
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 0x1007498
push SysReAllocString
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x21c], edi
call ebx
test eax, eax
jne 0x10546b1
mov ecx, esi
mov dword [ebp - 0x214], edi
call fcn.010543db
test eax, eax
mov eax, 0x10074ec
jne 0x10544e0
mov eax, 0x1007500
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 0x105469d
push dword [esi + 0x24]
lea eax, [ebp - 0x204]
push dword [esi + 0x28]
mov dword [ebp - 0x210], edi
push 0x1008490
push 0xff
push eax
call fcn.01034d76
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 0x1054691
inc eax
cmp dword [ebp - 0x210], 2
mov dword [ebp - 0x21c], eax
mov ebx, 0x1002378
jne 0x105461c
cmp dword [esi + 0x20], edi
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x210], 0x200
je 0x105461f
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 0x105461f
cmp dword [ebp - 0x20c], 1
jne 0x105461f
fldz
lea eax, [ebp - 0x22c]
push eax
fst qword [ebp - 0x224]
lea eax, [ebp - 0x204]
fstp qword [ebp - 0x22c]
push 0x1008d28
push eax
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0xc
test eax, eax
je 0x105461f
lea eax, [ebp - 0x224]
push eax
push 0x1008d28
push dword [esi + 0x20]
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0xc
test eax, eax
je 0x105461f
fld qword [ebp - 0x22c]
fcomp qword [ebp - 0x224]
fnstsw ax
test ah, 0x41
je 0x105461a
xor eax, eax
inc eax
jmp 0x105461c
xor eax, eax
mov dword [esi + 0x14], eax
mov ecx, dword [esi + 0x20]
cmp ecx, edi
je 0x105465d
mov eax, ecx
lea edx, [eax + 2]
mov dword [ebp - 0x20c], edx
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x1054631
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.0105878c
mov ecx, dword [esi + 0x18]
cmp ecx, edi
je 0x1054691
mov eax, ecx
lea ebx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x1054669
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.0105878c
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 0x10546cc
mov eax, dword [ebp - 0x208]
mov eax, dword [eax]
cmp eax, edi
je 0x10546cc
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 0x10546e4
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.01047417
leave
ret 4