Function at 0x4124c8
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x442084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
jne 0x4124f2
mov edi, 0x80004003
jmp 0x41285d
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push ebx
lea eax, [ebp - 0x814]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push 0x402888
push SysReAllocString
call esi
cmp eax, ebx
je 0x41252d
jle 0x412526
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x41285c
push 0x200
lea eax, [ebp - 0x404]
push eax
push edi
call dword [sym.imp.ole32.dll_StringFromGUID2]
cmp eax, ebx
jne 0x41254b
xor edi, edi
jmp 0x412850
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x814]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push ebx
lea eax, [ebp - 0x808]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x814]
call esi
cmp eax, ebx
je 0x412595
jle 0x41258e
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x412850
lea edx, [edi + 0x14]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x41259d
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
cmp eax, 0x200
jbe 0x4125c0
mov edi, 0x80070057
jmp 0x412850
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
push edx
push 1
push ebx
push 0x402a30
push dword [ebp - 0x808]
call esi
cmp eax, ebx
je 0x4125e7
jg 0x412878
jmp 0x412882
lea edx, [edi + 0x214]
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x80c], ecx
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x4125f8
sub eax, dword [ebp - 0x80c]
sar eax, 1
lea eax, [eax + eax + 2]
cmp eax, 0x200
ja 0x41286f
push eax
push edx
push 1
push ebx
push 0x402a1c
push dword [ebp - 0x808]
call esi
cmp eax, ebx
jne 0x4125dc
push 4
pop ebx
push ebx
lea eax, [edi + 0x414]
push eax
push ebx
push 0
push 0x402a00
push dword [ebp - 0x808]
call esi
test eax, eax
jne 0x4125dc
push ebx
lea eax, [edi + 0x418]
push eax
push ebx
push 0
push 0x4029e4
push dword [ebp - 0x808]
call esi
test eax, eax
jne 0x4125dc
push ebx
lea eax, [edi + 0x10]
push eax
push ebx
push 0
push 0x4029d8
push dword [ebp - 0x808]
call esi
test eax, eax
jne 0x4125dc
push ebx
lea eax, [edi + 0x41c]
push eax
push ebx
push 0
push 0x4029b0
push dword [ebp - 0x808]
call esi
test eax, eax
jne 0x4125dc
push ebx
lea eax, [edi + 0x420]
push eax
push ebx
push 0
push 0x402988
push dword [ebp - 0x808]
call esi
test eax, eax
jne 0x4125dc
push ebx
lea eax, [edi + 0x424]
push eax
push ebx
push 0
push 0x40295c
push dword [ebp - 0x808]
call esi
test eax, eax
jne 0x4125dc
push ebx
lea eax, [edi + 0x428]
push eax
push ebx
push 0
push 0x402930
push dword [ebp - 0x808]
call esi
test eax, eax
jne 0x4125dc
push ebx
lea eax, [edi + 0x42c]
push eax
push ebx
push 0
push 0x402914
push dword [ebp - 0x808]
call esi
test eax, eax
jne 0x4125dc
push ebx
lea eax, [edi + 0x430]
push eax
push ebx
push 0
push 0x4028f0
push dword [ebp - 0x808]
call esi
test eax, eax
jne 0x4125dc
and dword [ebp - 0x810], eax
lea ebx, [edi + 0x430]
cmp dword [ebx], eax
jbe 0x412800
add edi, 0x434
mov dword [ebp - 0x80c], edi
push dword [ebp - 0x810]
lea eax, [ebp - 0x804]
push 0x4028d0
push 0x400
push eax
call fcn.00412466
mov edi, eax
add esp, 0x10
test edi, edi
jl 0x41285c
push 0x200
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x80c]
call dword [sym.imp.ole32.dll_StringFromGUID2]
xor edi, edi
cmp eax, edi
je 0x412844
add eax, eax
cmp eax, 0x400
ja 0x41286f
push eax
lea eax, [ebp - 0x404]
push eax
push 1
push edi
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0x808]
call esi
test eax, eax
jne 0x412876
inc dword [ebp - 0x810]
mov eax, dword [ebp - 0x810]
add dword [ebp - 0x80c], 0x10
cmp eax, dword [ebx]
jb 0x41276b
mov eax, dword [0x44333c]
test eax, eax
mov dword [ebp - 0x80c], eax
je 0x412842
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x80c]
push eax
mov ecx, 0x44333c
call fcn.0041243c
test eax, eax
je 0x412839
mov eax, dword [ebp - 0x810]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [ebp - 0x80c], 0
jne 0x41280f
xor edi, edi
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x814]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.00411b9d
leave
ret 4
mov edi, 0x80070057
jmp 0x412844
jle 0x412882
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x412844