Function at 0x10010930
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xffffffffffffffff
push 0x10021f08
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x1002b024]
xor eax, ebp
mov dword [ebp + 0x400], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x414]
mov edi, dword [ebp + 0x410]
mov esi, dword [ebp + 0x40c]
mov dword [ebp - 0x34], eax
xor eax, eax
push 0x3fe
push eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c], eax
mov ebx, ecx
mov ecx, dword [ebp + 0x418]
lea eax, [ebp + 2]
xor edx, edx
push eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], 0x507
mov word [ebp], dx
call fcn.100144d0
add esp, 0xc
cmp dword [esi + 0x14], 0
je 0x10010b90
cmp dword [edi + 0x14], 0
je 0x10010b90
cmp dword [ebx + 0x20], 0
je 0x10010b90
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], 0
test eax, eax
je 0x100109ec
mov edi, eax
call fcn.100040e0
mov edi, dword [ebp - 0x24]
cmp dword [ebx + 0x24], 8
jb 0x100109f7
mov ebx, dword [ebx + 0x10]
jmp 0x100109fa
add ebx, 0x10
push ebx
lea ecx, [ebp]
push 0x200
push ecx
call fcn.1001302e
add esp, 0xc
cmp dword [esi + 0x18], 8
jb 0x10010a17
mov esi, dword [esi + 4]
jmp 0x10010a1a
add esi, 4
push esi
lea edx, [ebp]
push 0x200
push edx
call fcn.10013205
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x18]
push ecx
xor ebx, ebx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea edx, [ebp]
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x10010a6a
push 0x10026b2c
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], 0xffffffff
call fcn.10014cdc
cmp dword [ebp - 0x28], ebx
je 0x10010b25
cmp dword [ebp - 0x2c], 2
jne 0x10010b25
cmp dword [edi + 0x18], 8
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
lea esi, [edi + 4]
jb 0x10010a90
mov eax, dword [esi]
jmp 0x10010a92
mov eax, esi
lea ecx, [ebp - 0x20]
push ecx
push ebx
lea edx, [ebp - 0x24]
push edx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
mov eax, dword [ebp - 0x18]
push eax
call ebx
test eax, eax
jne 0x10010b25
cmp dword [ebp - 0x24], 1
jne 0x10010b25
cmp dword [ebp - 0x20], eax
jbe 0x10010b25
lea ecx, [ebp - 0x4c]
push ecx
call fcn.10004180
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x20]
push edx
lea eax, [ebp - 0x11]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x11], 0
call fcn.1000f430
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x40]
jne 0x10010ae5
call fcn.1001346d
cmp dword [edi + 0x18], 8
jb 0x10010aed
mov esi, dword [esi]
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x20]
push ecx
push edx
push 0
push 0
push esi
push eax
call ebx
test eax, eax
jne 0x10010b1d
mov ecx, dword [ebp - 0x3c]
sub ecx, dword [ebp - 0x40]
jne 0x10010b11
call fcn.1001346d
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x40]
push edx
call fcn.10005800
lea esi, [ebp - 0x4c]
call fcn.10004240
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x14]
mov eax, 8
cmp dword [ecx + 0x18], eax
jb 0x10010b52
mov ecx, dword [ecx + 4]
jmp 0x10010b55
add ecx, 4
cmp dword [edi + 0x18], eax
jb 0x10010b5f
mov eax, dword [edi + 4]
jmp 0x10010b62
lea eax, [edi + 4]
lea edx, [edx + edx + 2]
push edx
push ecx
push 1
push 0
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10010b87
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
jmp 0x10010b92
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.10012c7f
add ebp, 0x404
mov esp, ebp
pop ebp
ret 0x10