Function at 0x100051b3
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x524
mov eax, dword [0x10014010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, 0x10001f4c
push esi
call fcn.10006383
pop ecx
call fcn.10005e51
test eax, eax
jne 0x10005203
push 0x100017a4
push eax
push eax
push esi
push 0x418
push 0x10001280
call fcn.100064d5
add esp, 0x18
xor eax, eax
jmp 0x100056bf
push edi
xor edi, edi
cmp dword [0x10015068], edi
jne 0x10005226
call fcn.10004b10
test eax, eax
jne 0x10005226
push 0x10001d4c
push edi
push edi
push esi
push 0x420
jmp 0x10005284
cmp ebx, edi
jne 0x10005239
push 0x10001f20
push edi
push edi
push esi
push 0x427
jmp 0x10005284
push ebx
call fcn.10004798
test eax, eax
je 0x100052e5
mov eax, dword [0x10015094]
cmp eax, edi
jne 0x1000525f
push 0x10001ee8
push edi
push edi
push esi
push 0x434
jmp 0x10005284
mov edi, 0x104
push edi
lea ecx, [ebp - 0x20c]
push ecx
push 0x7d0
call eax
test eax, eax
jne 0x10005293
push 0x10001ec8
push eax
push eax
push esi
push 0x43a
push 0x10001280
call fcn.100064d5
add esp, 0x18
jmp 0x100052e5
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.10006bd7
mov dword [ebp - 0x520], eax
mov eax, dword [ebx + 8]
pop ecx
pop ecx
test eax, eax
je 0x100052b8
push edi
push eax
call fcn.10006bd7
pop ecx
pop ecx
mov ecx, dword [ebp - 0x520]
push dword [ebx + 8]
lea eax, [eax + ecx - 1]
cmp eax, edi
jbe 0x100052ec
push 0x10001ea4
push 0
push 0
push esi
push 0x43f
push 0x10001280
call fcn.100064d5
add esp, 0x1c
xor eax, eax
jmp 0x100056be
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.10004a54
add esp, 0x10
lea eax, [ebp - 0x524]
push eax
lea eax, [ebp - 0x51c]
push eax
xor eax, eax
push eax
push 2
push eax
push eax
push eax
lea eax, [ebp - 0x108]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x10005342
push 0
push eax
push 0x10001e90
push esi
push 0x44f
jmp 0x10005636
push edi
lea eax, [ebp - 0x518]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.ole32.dll_StringFromGUID2]
xor ecx, ecx
push ecx
push ecx
cmp eax, ecx
jne 0x1000536b
push 0x10001720
push esi
push 0x459
jmp 0x10005636
push edi
lea edx, [ebp - 0x310]
push edx
push eax
lea eax, [ebp - 0x518]
push eax
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x100053a3
push 0x100016f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100016d8
push esi
push 0x462
jmp 0x10005636
push edi
lea eax, [ebp - 0x108]
push eax
push 0x7d1
call dword [0x10015094]
test eax, eax
jne 0x100053cc
push 0x10001ec8
push eax
push eax
push esi
push 0x468
jmp 0x10005636
lea eax, [ebp - 0x310]
push edi
push eax
call fcn.10006bd7
pop ecx
pop ecx
inc eax
push eax
lea eax, [ebp - 0x310]
push eax
push 1
push 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x51c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x10005412
push 0
push eax
push 0x10001e7c
push esi
push 0x475
jmp 0x10005636
push edi
lea eax, [ebp - 0x108]
push eax
push 0x7d2
call dword [0x10015094]
test eax, eax
jne 0x1000543b
push 0x10001ec8
push eax
push eax
push esi
push 0x47e
jmp 0x10005636
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x1000544b
push edi
push eax
call fcn.10006bd7
pop ecx
pop ecx
inc eax
push eax
push dword [ebx + 0x10]
lea eax, [ebp - 0x108]
push 1
push 0
push eax
push dword [ebp - 0x51c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1000547e
push 0
push eax
push 0x10001e7c
push esi
push 0x48b
jmp 0x10005636
push edi
lea eax, [ebp - 0x108]
push eax
push 0x7d3
call dword [0x10015094]
test eax, eax
jne 0x100054a7
push 0x10001ec8
push eax
push eax
push esi
push 0x494
jmp 0x10005636
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x100054b7
push edi
push eax
call fcn.10006bd7
pop ecx
pop ecx
inc eax
push eax
push dword [ebx + 0x14]
lea eax, [ebp - 0x108]
push 1
push 0
push eax
push dword [ebp - 0x51c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x100054ea
push 0
push eax
push 0x10001e7c
push esi
push 0x4a1
jmp 0x10005636
push edi
lea eax, [ebp - 0x108]
push eax
push 0x7d5
call dword [0x10015094]
test eax, eax
jne 0x10005513
push 0x10001ec8
push eax
push eax
push esi
push 0x4aa
jmp 0x10005636
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x10005523
push edi
push eax
call fcn.10006bd7
pop ecx
pop ecx
inc eax
push eax
push dword [ebx + 0x18]
lea eax, [ebp - 0x108]
push 1
push 0
push eax
push dword [ebp - 0x51c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x10005556
push 0
push eax
push 0x10001e7c
push esi
push 0x4b7
jmp 0x10005636
push edi
lea eax, [ebp - 0x108]
push eax
push 0x7d4
call dword [0x10015094]
test eax, eax
jne 0x1000557f
push 0x10001ec8
push eax
push eax
push esi
push 0x4c0
jmp 0x10005636
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x1000558f
push edi
push eax
call fcn.10006bd7
pop ecx
pop ecx
inc eax
push eax
push dword [ebx + 0x1c]
lea eax, [ebp - 0x108]
push 1
push 0
push eax
push dword [ebp - 0x51c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x100055bf
push 0
push eax
push 0x10001e68
push esi
push 0x4cd
jmp 0x10005636
cmp dword [ebx], 4
jne 0x10005685
cmp dword [ebx + 0x20], 0
je 0x10005685
push edi
lea eax, [ebp - 0x108]
push eax
push 0x7d6
call dword [0x10015094]
test eax, eax
jne 0x100055f8
push 0x10001ec8
push eax
push eax
push esi
push 0x4d8
jmp 0x10005636
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x10005608
push edi
push eax
call fcn.10006bd7
pop ecx
pop ecx
inc eax
push eax
push dword [ebx + 0x20]
lea eax, [ebp - 0x108]
push 1
push 0
push eax
push dword [ebp - 0x51c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x10005685
push 0
push eax
push 0x10001e7c
push esi
push 0x4e5
push 0x10001280
call fcn.100064d5
add esp, 0x18
cmp dword [ebp - 0x51c], 0
je 0x10005677
push dword [ebp - 0x51c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x10005677
push 0
push eax
push 0x10001e50
push esi
push 0x4f4
push 0x10001280
call fcn.100064d5
add esp, 0x18
push 0x10001e2c
call fcn.10006383
xor eax, eax
jmp 0x100056bd
push dword [ebp - 0x51c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x100056b0
push 0
push eax
push 0x100012f8
push esi
push 0x4eb
push 0x10001280
call fcn.100064d5
add esp, 0x18
push 0x10001e04
call fcn.10006383
xor eax, eax
inc eax
pop ecx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10006df2
leave
ret 8