Function at 0x1057d0b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push esi
push 2
push 0x8c
push 0x100f380
lea ecx, [ebp - 0x34]
call fcn.01055826
mov eax, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
cmp eax, esi
je 0x1057d3f
mov dword [eax], esi
cmp dword [ebp + 0xc], esi
jne 0x1057d59
mov eax, 0x95
mov dword [ebp - 0x34], 0x80070057
mov word [ebp - 0x2e], ax
jmp 0x1057f1b
mov ecx, 0x95
cmp eax, esi
mov word [ebp - 0x30], cx
lea eax, [ecx + 1]
je 0x1057d49
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov word [ebp - 0x30], ax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x34], esi
push dword [ebp + 8]
call edi
cmp dword [ebp + 0x14], esi
je 0x1057da8
cmp eax, 2
jne 0x1057da8
mov eax, 0x9b
mov dword [ebp - 0x34], 1
mov word [ebp - 0x30], ax
jmp 0x1057f1a
cmp eax, esi
jle 0x1057db6
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x34], eax
cmp eax, esi
mov eax, 0x9e
jge 0x1057dd2
mov word [ebp - 0x2e], ax
mov dword [ebp - 0x2c], 1
jmp 0x1057f1a
mov word [ebp - 0x30], ax
mov eax, dword [ebp + 0x18]
cmp eax, esi
je 0x1057df0
cmp dword [ebp - 4], eax
mov eax, 0xa3
je 0x1057e0f
mov dword [ebp - 0x34], 0x8007065d
jmp 0x1057e28
cmp dword [ebp - 4], 1
je 0x1057e0a
cmp dword [ebp - 4], 2
je 0x1057e0a
mov dword [ebp - 0x34], 0x8007065d
mov eax, 0xa7
jmp 0x1057e28
mov eax, 0xa7
mov word [ebp - 0x30], ax
mov al, byte [ebp - 8]
not al
test al, 1
mov eax, 0xaa
jne 0x1057e31
mov dword [ebp - 0x34], 0x81000036
mov word [ebp - 0x2e], ax
jmp 0x1057f1a
push ebx
push dword [ebp - 8]
mov dword [ebp - 0x34], esi
mov word [ebp - 0x30], ax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov eax, 0xad
cmp ebx, esi
jne 0x1057e5c
mov dword [ebp - 0x34], 0x8007000e
jmp 0x1057f04
mov word [ebp - 0x30], ax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x34], esi
push dword [ebp + 8]
call edi
cmp eax, esi
jle 0x1057e89
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x34], eax
cmp eax, esi
mov eax, 0xb0
jl 0x1057f04
mov word [ebp - 0x30], ax
mov eax, dword [ebp + 0x18]
cmp eax, esi
je 0x1057eb3
cmp dword [ebp - 4], eax
mov eax, 0xb5
je 0x1057ed2
mov dword [ebp - 0x34], 0x8007065d
jmp 0x1057f04
cmp dword [ebp - 4], 1
je 0x1057ecd
cmp dword [ebp - 4], 2
je 0x1057ecd
mov dword [ebp - 0x34], 0x8007065d
mov eax, 0xb9
jmp 0x1057f04
mov eax, 0xb9
mov word [ebp - 0x30], ax
mov eax, dword [ebp - 8]
cmp dword [ebp - 0xc], eax
je 0x1057ee5
mov eax, 0xbc
jmp 0x1057efd
mov ecx, 0xbc
shr eax, 1
mov dword [ebp - 0x34], esi
mov word [ebp - 0x30], cx
cmp word [ebx + eax*2 - 2], si
lea eax, [ecx + 2]
je 0x1057f0a
mov dword [ebp - 0x34], 0x81000036
mov word [ebp - 0x2e], ax
jmp 0x1057f19
mov word [ebp - 0x30], ax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], esi
mov dword [eax], ebx
mov dword [ebp - 0x10], esi
pop ebx
pop edi
lea eax, [ebp - 0x10]
push eax
call fcn.01013001
mov esi, dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
call fcn.01055a3c
mov eax, esi
pop esi
leave
ret 0x14