Function at 0x1054519
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
mov eax, dword [0x1075004]
mov ebx, 0x1075004
cmp eax, ebx
je 0x105455b
test byte [eax + 0x1c], 4
je 0x105455b
cmp byte [eax + 0x19], 5
jb 0x105455b
push 0x1004c60
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, 0x1004c70
push edi
push dword [ebp + 8]
call esi
mov dword [ebp - 4], eax
test eax, eax
je 0x10545ad
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1054751
test byte [eax + 0x1c], 4
je 0x1054751
cmp byte [eax + 0x19], 2
jb 0x1054751
push dword [ebp - 4]
push 0x1004c60
push 0xb
jmp 0x10546e4
cmp dword [ebp - 0x14], 3
je 0x10545e6
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x10545da
test byte [eax + 0x1c], 4
je 0x10545da
cmp byte [eax + 0x19], 2
jb 0x10545da
push 0x1004c60
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
mov dword [ebp - 4], 0x3f1
jmp 0x1054751
cmp dword [ebp - 8], 0
je 0x1054751
push dword [ebp - 8]
call fcn.0105c184
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x105463e
mov dword [ebp - 4], 8
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1054751
test byte [eax + 0x1c], 4
je 0x1054751
cmp byte [eax + 0x19], 2
jb 0x1054751
push 0x1004c60
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
jmp 0x1054751
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push edi
push dword [ebp + 8]
call esi
mov dword [ebp - 4], eax
test eax, eax
je 0x1054683
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1054751
test byte [eax + 0x1c], 4
je 0x1054751
cmp byte [eax + 0x19], 2
jb 0x1054751
push dword [ebp - 4]
push 0x1004c60
push 0xe
jmp 0x10546e4
mov esi, dword [ebp - 8]
and dword [ebp - 0xc], 0
shr esi, 2
mov dword [ebp - 0x18], 1
test esi, esi
jbe 0x1054751
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
lea edi, [eax + ecx*4]
push dword [edi]
call fcn.01052a2e
test eax, eax
je 0x10546f1
push dword [edi]
mov ecx, dword [ebp - 0x1c]
call fcn.01053e64
mov dword [ebp - 4], eax
test eax, eax
je 0x10546f5
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1054751
test byte [eax + 0x1c], 4
je 0x1054751
cmp byte [eax + 0x19], 2
jb 0x1054751
push dword [ebp - 4]
push 0x1004c60
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
jmp 0x1054751
and dword [ebp - 0x18], 0
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], esi
jb 0x105469c
cmp dword [ebp - 0x18], 0
jne 0x1054751
push dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
call fcn.01052f42
test eax, eax
je 0x105473b
mov ecx, dword [0x1075004]
cmp ecx, ebx
je 0x105473b
test byte [ecx + 0x1c], 4
je 0x105473b
cmp byte [ecx + 0x19], 2
jb 0x105473b
push eax
push 0x1004c60
push 0x10
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0101463a
push dword [ebp + 0xc]
push 0x80007d42
push 1
push 2
push 1
call fcn.0105d809
add esp, 0x14
push dword [ebp - 0x10]
call fcn.0105c21c
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8