Function at 0x10003170
Capabilities:
Set registry value

Disassembly:
sub esp, 0x150
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor ecx, ecx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [esp + 0x30], ecx
nop dword [eax]
neg ecx
sbb esi, esi
add esi, 0x80000002
xor ebx, ebx
mov dword [esp + 0x1c], esi
push ebx
push dword [0x10016b24]
lea eax, [esp + 0x3c]
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push 0xf013f
push 0
lea eax, [esp + 0x40]
push eax
push esi
call dword [0x10016598]
test eax, eax
jne 0x10003254
xor esi, esi
movzx eax, word [esi + 0x10015040]
test ax, ax
je 0x100031f2
push eax
push dword [0x10016b28]
lea eax, [esp + 0x3c]
push eax
call edi
add esp, 0xc
jmp 0x100031ff
push dword [0x10016b30]
lea eax, [esp + 0x38]
push eax
call ebp
movzx eax, word [esi + 0x10015040]
push eax
push dword [0x10016b28]
lea eax, [esp + 0x3c]
push eax
call edi
mov eax, dword [esi + 0x10015048]
add esp, 0xc
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 4
push eax
push 4
push 0
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add esi, 0xc
cmp esi, 0x144
jb 0x100031d3
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x1c]
inc ebx
cmp ebx, 4
jle 0x100031a0
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
mov esi, dword [0x10016b34]
push eax
push 2
push 0
push dword [0x10016b2c]
mov dword [esp + 0x24], 1
push ebx
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100032b2
push 4
lea eax, [esp + 0x14]
push eax
push 4
push 0
push esi
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
mov esi, dword [0x10016b3c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x24]
push eax
push 2
push 0
push dword [0x10016b38]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100032fa
push 4
lea eax, [esp + 0x14]
push eax
push 4
push 0
push esi
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
mov esi, dword [0x10016b40]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x28]
push eax
push 2
push 0
push dword [0x10016b38]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10003342
push 4
lea eax, [esp + 0x14]
push eax
push 4
push 0
push esi
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [0x10016b48]
lea eax, [esp + 0x2c]
push eax
push 2
push 0
push dword [0x10016b44]
mov dword [esp + 0x24], 0
push ebx
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10003392
push 4
lea eax, [esp + 0x14]
push eax
push 4
push 0
push esi
push dword [esp + 0x40]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x30]
inc ecx
mov dword [esp + 0x30], ecx
cmp ecx, 2
jl 0x10003190
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150
ret