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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
lea ecx, [ebp - 0x62c]
mov dword [ebp - 0x60c], esi
call fcn.01069750
xor edi, edi
inc edi
cmp ebx, esi
mov dword [ebp - 0x608], edi
jne 0x105ec82
lea ecx, [ebp - 0x62c]
call fcn.01069771
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047417
leave
ret 0xc
cmp dword [ebp + 0x10], esi
je 0x105ec97
lea eax, [ebp - 0x62c]
push eax
call fcn.010708b0
test eax, eax
je 0x105ec64
push ebx
push dword [0x107fde4]
lea eax, [ebp - 0x4c8]
push 0x100bce4
push 0x103
push eax
call fcn.01034d76
add esp, 0x14
test eax, eax
jl 0x105ec64
lea eax, [ebp - 0x60c]
push eax
push 0x2001f
push esi
lea eax, [ebp - 0x4c8]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x105eced
lea ecx, [ebp - 0x62c]
call fcn.01069771
mov eax, esi
jmp 0x105ec71
lea eax, [ebp - 0x604]
push eax
lea eax, [ebp - 0x4c8]
push eax
lea eax, [ebp - 0x600]
push eax
push esi
push 0x100bccc
push dword [ebp - 0x60c]
mov dword [ebp - 0x5f8], esi
mov dword [ebp - 0x604], 0x208
mov dword [ebp - 0x600], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x105ef31
cmp dword [ebp - 0x600], 1
jne 0x105ef31
lea eax, [ebp - 0x4c8]
push eax
mov dword [ebp - 0x5fc], eax
push 0x95
lea eax, [ebp - 0x130]
push eax
call fcn.01034c79
lea eax, [ebp - 0x130]
push 0x20
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
cmp eax, esi
pop ecx
pop ecx
je 0x105ed81
mov word [eax], si
lea eax, [ebp - 0x130]
push eax
push dword [0x107fde4]
lea eax, [ebp - 0x2c0]
push 0x100bde0
push 0xc7
push eax
call fcn.01034d76
add esp, 0x14
cmp dword [ebp + 0xc], esi
je 0x105ee39
test eax, eax
jl 0x105ee14
push esi
lea eax, [ebp - 0x5f8]
push eax
push esi
push 2
push esi
push esi
push esi
lea eax, [ebp - 0x2c0]
push eax
push dword [0x1082a4c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x105edf8
push 8
push 0x10040f0
push 1
push esi
push 0x100bdb8
push dword [ebp - 0x5f8]
call ebx
push dword [ebp - 0x5f8]
call edi
cmp dword [ebp + 0x10], esi
je 0x105ee1a
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x62c]
push eax
call fcn.01071bed
test eax, eax
jne 0x105ee1a
mov dword [ebp - 0x608], esi
push 0x20
push dword [ebp - 0x5fc]
call dword [sym.imp.msvcrt.dll_wcschr]
cmp eax, esi
pop ecx
pop ecx
je 0x105ef31
inc eax
inc eax
jmp 0x105ed51
test eax, eax
jl 0x105ee14
push esi
lea eax, [ebp - 0x5f8]
push eax
push esi
push 2
push esi
push esi
push esi
lea eax, [ebp - 0x2c0]
push eax
push dword [0x1082a4c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x105ee81
push 6
push 0x1009cf8
push 1
push esi
push 0x100bdb8
push dword [ebp - 0x5f8]
call ebx
push dword [ebp - 0x5f8]
call edi
cmp dword [ebp + 0x10], esi
je 0x105ee1a
lea eax, [ebp - 0x5f8]
push eax
push 0x20006
push esi
lea eax, [ebp - 0x2c0]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x105ee1a
lea eax, [ebp - 0x604]
push eax
lea eax, [ebp - 0x5f4]
push eax
lea eax, [ebp - 0x600]
push eax
push esi
push 0x100bd94
push dword [ebp - 0x5f8]
mov dword [ebp - 0x604], 0x12c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x105eeeb
cmp dword [ebp - 0x600], 1
je 0x105ef0b
lea eax, [ebp - 0x130]
push eax
push 0x100bd84
lea eax, [ebp - 0x5f4]
push 0x95
push eax
call fcn.01034d76
add esp, 0x10
push 0x100bd78
push esi
lea eax, [ebp - 0x5f4]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.0106cc1b
push dword [ebp - 0x5f8]
call edi
jmp 0x105ee1a
lea eax, [ebp - 0x604]
push eax
lea eax, [ebp - 0x4c8]
push eax
lea eax, [ebp - 0x600]
push eax
push esi
push 0x100bd60
push dword [ebp - 0x60c]
mov dword [ebp - 0x604], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x105f091
cmp dword [ebp - 0x600], 1
jne 0x105f091
lea eax, [ebp - 0x4c8]
push eax
mov dword [ebp - 0x5fc], eax
push 0x95
lea eax, [ebp - 0x130]
push eax
call fcn.01034c79
lea eax, [ebp - 0x130]
push 0x20
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
cmp eax, esi
pop ecx
pop ecx
je 0x105efad
mov word [eax], si
lea eax, [ebp - 0x130]
push eax
push dword [0x107fde4]
lea eax, [ebp - 0x2c0]
push 0x100bd3c
push 0xc7
push eax
call fcn.01034d76
add esp, 0x14
push esi
lea eax, [ebp - 0x5f8]
push eax
push esi
push 2
push esi
push esi
push esi
lea eax, [ebp - 0x2c0]
push eax
push dword [0x1082a4c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp + 0xc], esi
je 0x105f040
test eax, eax
jne 0x105f01c
push 8
push 0x10040f0
push 1
push esi
push 0x100bdb8
push dword [ebp - 0x5f8]
call ebx
push dword [ebp - 0x5f8]
call edi
cmp dword [ebp + 0x10], esi
je 0x105f076
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x62c]
push eax
call fcn.01071c3e
test eax, eax
jne 0x105f076
mov dword [ebp - 0x608], esi
jmp 0x105f076
test eax, eax
jne 0x105f063
push 6
push 0x1009cf8
push 1
push esi
push 0x100bdb8
push dword [ebp - 0x5f8]
call ebx
push dword [ebp - 0x5f8]
call edi
cmp dword [ebp + 0x10], esi
je 0x105f076
push 1
lea eax, [ebp - 0x130]
push eax
call fcn.01072aea
push 0x20
push dword [ebp - 0x5fc]
call dword [sym.imp.msvcrt.dll_wcschr]
cmp eax, esi
pop ecx
pop ecx
je 0x105f091
inc eax
inc eax
jmp 0x105ef7d
lea eax, [ebp - 0x604]
push eax
lea eax, [ebp - 0x4c8]
push eax
lea eax, [ebp - 0x600]
push eax
push esi
push 0x100bca8
push dword [ebp - 0x60c]
mov dword [ebp - 0x604], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x105f1ef
cmp dword [ebp - 0x600], 1
jne 0x105f1ef
lea eax, [ebp - 0x4c8]
push eax
mov dword [ebp - 0x5fc], eax
push 0x95
lea eax, [ebp - 0x130]
push eax
call fcn.01034c79
lea eax, [ebp - 0x130]
push 0x20
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
cmp eax, esi
pop ecx
pop ecx
je 0x105f10d
mov word [eax], si
lea eax, [ebp - 0x130]
push eax
push dword [0x107fde4]
lea eax, [ebp - 0x2c0]
push 0x100bd1c
push 0xc7
push eax
call fcn.01034d76
add esp, 0x14
push esi
lea eax, [ebp - 0x5f8]
push eax
push esi
push 2
push esi
push esi
push esi
lea eax, [ebp - 0x2c0]
push eax
push dword [0x1082a4c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp + 0xc], esi
je 0x105f1a0
test eax, eax
jne 0x105f17c
push 8
push 0x10040f0
push 1
push esi
push 0x100bdb8
push dword [ebp - 0x5f8]
call ebx
push dword [ebp - 0x5f8]
call edi
cmp dword [ebp + 0x10], esi
je 0x105f1d4
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x62c]
push eax
call fcn.01071c9b
test eax, eax
jne 0x105f1d4
mov dword [ebp - 0x608], esi
jmp 0x105f1d4
test eax, eax
jne 0x105f1c3
push 6
push 0x1009cf8
push 1
push esi
push 0x100bdb8
push dword [ebp - 0x5f8]
call ebx
push dword [ebp - 0x5f8]
call edi
cmp dword [ebp + 0x10], esi
je 0x105f1d4
lea eax, [ebp - 0x130]
push eax
call fcn.0106a729
push 0x20
push dword [ebp - 0x5fc]
call dword [sym.imp.msvcrt.dll_wcschr]
cmp eax, esi
pop ecx
pop ecx
je 0x105f1ef
inc eax
inc eax
jmp 0x105f0dd
lea eax, [ebp - 0x604]
push eax
lea eax, [ebp - 0x4c8]
push eax
lea eax, [ebp - 0x600]
push eax
push esi
push 0x100bcbc
push dword [ebp - 0x60c]
mov dword [ebp - 0x604], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x105f34d
cmp dword [ebp - 0x600], 1
jne 0x105f34d
lea eax, [ebp - 0x4c8]
push eax
mov dword [ebp - 0x5fc], eax
push 0x95
lea eax, [ebp - 0x130]
push eax
call fcn.01034c79
lea eax, [ebp - 0x130]
push 0x20
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
cmp eax, esi
pop ecx
pop ecx
je 0x105f26b
mov word [eax], si
lea eax, [ebp - 0x130]
push eax
push dword [0x107fde4]
lea eax, [ebp - 0x2c0]
push 0x100bd00
push 0xc7
push eax
call fcn.01034d76
add esp, 0x14
push esi
lea eax, [ebp - 0x5f8]
push eax
push esi
push 2
push esi
push esi
push esi
lea eax, [ebp - 0x2c0]
push eax
push dword [0x1082a4c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp + 0xc], esi
je 0x105f2fe
test eax, eax
jne 0x105f2da
push 8
push 0x10040f0
push 1
push esi
push 0x100bdb8
push dword [ebp - 0x5f8]
call ebx
push dword [ebp - 0x5f8]
call edi
cmp dword [ebp + 0x10], esi
je 0x105f332
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x62c]
push eax
call fcn.01071d1d
test eax, eax
jne 0x105f332
mov dword [ebp - 0x608], esi
jmp 0x105f332
test eax, eax
jne 0x105f321
push 6
push 0x1009cf8
push 1
push esi
push 0x100bdb8
push dword [ebp - 0x5f8]
call ebx
push dword [ebp - 0x5f8]
call edi
cmp dword [ebp + 0x10], esi
je 0x105f332
lea eax, [ebp - 0x130]
push eax
call fcn.01069174
push 0x20
push dword [ebp - 0x5fc]
call dword [sym.imp.msvcrt.dll_wcschr]
cmp eax, esi
pop ecx
pop ecx
je 0x105f34d
inc eax
inc eax
jmp 0x105f23b
push dword [ebp - 0x60c]
call edi
mov esi, dword [ebp - 0x608]
jmp 0x105ecde