Function at 0x404440
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x49d3f0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c86e0]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x50]
mov ebp, dword [esp + 0x4c]
xor esi, esi
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], esi
call fcn.004019c0
push 0x4ac5d8
lea eax, [esp + 0x1c]
mov dword [esp + 0x48], esi
call fcn.00406220
mov edi, eax
mov eax, 0x4ac5d8
call fcn.00406280
lea ecx, [esp + 0x28]
call fcn.0046413b
push ecx
mov byte [esp + 0x48], 1
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x4ac5fc
mov esi, 1
lea edi, [esp + 0x30]
call fcn.004019c0
mov byte [esp + 0x48], 2
mov eax, dword [esp + 0x1c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov ebx, esp
push eax
call fcn.00402840
add eax, 0x10
mov dword [ebx], eax
add esp, 4
mov ebx, edi
mov byte [esp + 0x4c], 1
call fcn.00445ab0
mov eax, dword [esp + 0x38]
add esp, 8
xor ebx, ebx
test eax, eax
mov dword [esp + 0x20], eax
jg 0x404584
mov esi, dword [esp + 0x58]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x54]
add eax, 1
push eax
push esi
push 1
push 0
push ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 0
call fcn.004642ec
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404564
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov eax, dword [esp + 0x30]
test ebx, ebx
jl 0x4046dc
cmp ebx, eax
jge 0x4046dc
mov ecx, dword [esp + 0x2c]
mov esi, dword [ecx + ebx*4]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
sub esi, 0x10
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x4045c2
cmp eax, dword [esi]
jne 0x4045c2
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4045f8
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x40466a
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0047e048
add esp, 0x10
lea esi, [edi + 0x10]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40466f
cmp ebp, dword [esp + 0x4c]
je 0x40462b
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [esp + 0x1c]
lea eax, [esi - 0x10]
mov dword [esp + 0x1c], 0
mov byte [esp + 0x44], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404658
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 1
cmp ebx, dword [esp + 0x20]
jl 0x404580
jmp 0x404507
jmp fcn.00401950
add esi, 0xfffffff0
mov byte [esp + 0x44], 1
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404690
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 0
call fcn.004642ec
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4046c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
jmp fcn.00461650