Function at 0x10004d80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001b4be
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1002b580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x3c]
mov eax, dword [eax]
push eax
call fcn.1000d555
mov edx, dword [edi + 0x3c]
mov ecx, eax
mov eax, dword [edx]
add esp, 4
push ecx
mov dword [ebp - 0x1c], ecx
push eax
lea ecx, [edi + 0x34]
call fcn.10002030
xor ebx, ebx
push 0xc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], ebx
call fcn.1000ddd1
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x10004e02
push str.SoftwareAppDataLow
mov dword [esi + 4], ebx
mov dword [esi + 8], 1
call fcn.10017870
mov dword [esi], eax
jmp 0x10004e04
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], esi
cmp esi, ebx
jne 0x10004e1c
push 0x8007000e
call fcn.10017850
mov dword [ebp - 4], 1
cmp dword [esi + 4], ebx
jne 0x10004e33
mov eax, dword [esi]
push eax
call fcn.100179f0
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
push ebx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push 0x20006
push ebx
push ebx
push ebx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea edx, [esi + 8]
test eax, eax
push edx
sete bl
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x10004e90
mov eax, dword [esi]
test eax, eax
je 0x10004e77
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x10004e87
push eax
call fcn.1000d6ec
add esp, 4
push esi
call fcn.1000d6ec
add esp, 4
test bl, bl
je 0x10004ea5
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], 0
push 0xc
call fcn.1000ddd1
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
xor ebx, ebx
mov dword [ebp - 4], 2
cmp esi, ebx
je 0x10004ed9
push str.SoftwareAppDataLow_
mov dword [esi + 4], ebx
mov dword [esi + 8], 1
call fcn.10017870
mov dword [esi], eax
mov ebx, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], ebx
test ebx, ebx
jne 0x10004ef1
push 0x8007000e
call fcn.10017850
add edi, 0xc
push edi
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 3
call fcn.100029c0
mov edi, dword [eax]
mov byte [ebp - 4], 4
test edi, edi
je 0x10004f28
cmp dword [edi + 4], 0
jne 0x10004f23
mov edx, dword [edi]
push edx
call fcn.100179f0
mov dword [edi + 4], eax
mov edi, dword [edi + 4]
jmp 0x10004f2a
xor edi, edi
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10004f93
mov edi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x10004f8c
test edi, edi
je 0x10004f8c
mov eax, dword [edi]
test eax, eax
je 0x10004f73
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [edi + 4]
test eax, eax
je 0x10004f83
push eax
call fcn.1000d6ec
add esp, 4
push edi
call fcn.1000d6ec
add esp, 4
mov dword [ebp - 0x14], 0
lea ecx, [ebx + 8]
push ecx
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x10004fce
mov eax, dword [ebx]
test eax, eax
je 0x10004fb5
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebx + 4]
test eax, eax
je 0x10004fc5
push eax
call fcn.1000d6ec
add esp, 4
push ebx
call fcn.1000d6ec
add esp, 4
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x1000500d
test esi, esi
jne 0x1000500d
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x10]
push ebx
push edi
push 3
push esi
push str.data
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebx
push edi
mov esi, eax
call fcn.10001ed0
mov eax, dword [ebp - 0x10]
add esp, 8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], 0
push edi
call fcn.1000e37f
add esp, 4
test esi, esi
jle 0x10005026
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret