Function at 0x105443a
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 0x10546d8
cmp dword [esi + 0x24], edi
je 0x10546d8
cmp dword [ebp + 8], edi
je 0x105447d
mov eax, dword [esi + 0x38]
cmp eax, edi
je 0x105447a
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 0x10546ce
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 0x10546b2
mov ecx, esi
mov dword [ebp - 0x214], edi
call fcn.010543dc
test eax, eax
mov eax, 0x100740c
jne 0x10544e1
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 0x105469e
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.0103592d
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 0x1054692
inc eax
cmp dword [ebp - 0x210], 2
mov dword [ebp - 0x21c], eax
mov ebx, 0x1002250
jne 0x105461d
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x210], 0x200
cmp dword [esi + 0x20], edi
je 0x1054620
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 0x1054620
cmp dword [ebp - 0x20c], 1
jne 0x1054620
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 0x1054620
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 0x1054620
fld qword [ebp - 0x22c]
fcomp qword [ebp - 0x224]
fnstsw ax
test ah, 0x41
je 0x105461b
xor eax, eax
inc eax
jmp 0x105461d
xor eax, eax
mov dword [esi + 0x14], eax
mov ecx, dword [esi + 0x20]
cmp ecx, edi
je 0x105465e
mov eax, ecx
lea edx, [eax + 2]
mov dword [ebp - 0x20c], edx
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x1054632
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.01057a24
mov ecx, dword [esi + 0x18]
cmp ecx, edi
je 0x1054692
mov eax, ecx
lea ebx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x105466a
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.01057a24
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 0x10546cd
mov eax, dword [ebp - 0x208]
mov eax, dword [eax]
cmp eax, edi
je 0x10546cd
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 0x10546e5
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.01047480
leave
ret 4