Function at 0x103fa42
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x658
mov eax, dword [0x1049108]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x654], eax
xor eax, eax
xor edi, edi
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
mov dword [ebp - 0x644], esi
mov dword [ebp - 0x634], edi
call sub.msvcrt.dll_memset
xor eax, eax
push 0x40e
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
lea ecx, [ebp - 0x630]
mov dword [ebp - 0x650], 0x104
mov dword [ebp - 0x64c], 0x208
mov dword [ebp - 0x640], edi
call fcn.0100cd8b
cmp dword [ebp - 0x654], edi
je 0x103fae1
cmp ebx, edi
jne 0x103faeb
mov esi, 0x80070057
jmp 0x103fd64
cmp esi, edi
je 0x103fb10
cmp word [esi], di
je 0x103fb10
lea eax, [ebp - 0x640]
push eax
push 0x410
push esi
call fcn.01032835
mov esi, eax
cmp esi, edi
jl 0x103fd64
xor eax, eax
cmp dword [ebp - 0x640], edi
sete al
mov dword [ebp - 0x658], eax
lea eax, [ebp - 0x634]
push eax
push 0xf003f
push edi
push 0x10242ec
push ebx
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
cmp eax, edi
jle 0x103fb48
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x103fd64
mov dword [ebp - 0x63c], edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x650]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x63c]
mov dword [ebp - 0x650], 0x104
push dword [ebp - 0x634]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegEnumKeyExW]
cmp eax, edi
mov ebx, 0xffff
jle 0x103fb96
and eax, ebx
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x103fcd2
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x61c]
push eax
push edi
push 2
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x634]
mov dword [ebp - 0x64c], 0x208
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegGetValueW]
cmp eax, edi
jle 0x103fbda
and eax, ebx
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x103fcd2
lea eax, [ebp - 0x61c]
push eax
push dword [ebp - 0x654]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x103fcd2
cmp dword [ebp - 0x658], edi
jne 0x103fc7e
lea eax, [ebp - 0x638]
push eax
push 2
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x634]
mov dword [ebp - 0x638], edi
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
cmp eax, edi
jle 0x103fc35
and eax, ebx
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x103fc68
mov eax, dword [ebp - 0x640]
add eax, 2
push eax
push dword [ebp - 0x644]
push 1
push edi
push edi
push dword [ebp - 0x638]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
cmp eax, edi
jle 0x103fc66
and eax, ebx
or eax, 0x80070000
mov esi, eax
cmp dword [ebp - 0x638], edi
je 0x103fcd2
push dword [ebp - 0x638]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
jmp 0x103fcd2
push 0x1c
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
cmp eax, edi
je 0x103fc9c
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, eax
call fcn.010422f5
mov ebx, eax
jmp 0x103fc9e
xor ebx, ebx
cmp ebx, edi
je 0x103fcad
mov ecx, ebx
call fcn.0104234c
mov esi, eax
jmp 0x103fcb2
mov esi, 0x8007000e
cmp esi, edi
jl 0x103fcc6
push ebx
lea ecx, [ebp - 0x630]
call fcn.0100d362
mov esi, eax
xor ebx, ebx
cmp ebx, edi
je 0x103fcd2
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
inc dword [ebp - 0x63c]
cmp esi, edi
jge 0x103fb58
cmp esi, 0x80070103
jne 0x103fcea
xor esi, esi
lea ecx, [ebp - 0x630]
call fcn.010194b0
test eax, eax
jne 0x103fd58
lea eax, [ebp - 0x62c]
mov ecx, eax
mov dword [ebp - 0x648], eax
call fcn.0100bbc4
mov dword [ebp - 0x644], eax
cmp dword [ebp - 0x648], edi
je 0x103fd58
mov ecx, dword [ebp - 0x644]
xor eax, eax
cmp ecx, dword [ebp - 0x648]
sete al
cmp eax, edi
jne 0x103fd58
mov eax, ecx
add ecx, 0x10
neg eax
push edi
sbb eax, eax
push edi
and eax, ecx
push dword [eax + 4]
push dword [ebp - 0x634]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegDeleteKeyExW]
lea ecx, [ebp - 0x648]
call fcn.0100d0b6
jmp 0x103fd12
push dword [ebp - 0x634]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
lea ecx, [ebp - 0x630]
call fcn.0100cdfc
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01003279
leave
ret 0xc