Function at 0x41e890
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x477fcb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x8020
call fcn.00457240
mov eax, dword [0x4994a0]
xor eax, dword [esp + 0x802c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x8040]
push edi
mov ebp, ecx
push 4
lea ecx, [esp + 0x28]
mov dword [esp + 0x8030], eax
mov eax, dword [esi]
push ecx
mov edi, 0x3fff
mov ecx, esi
mov dword [esp + 0x1c], edi
call dword [eax + 0x34]
mov eax, dword [esp + 0x24]
xor ebx, ebx
test eax, eax
jbe 0x41e9b1
inc dword [ebp + 0x25c]
mov edx, dword [esi]
push 4
lea eax, [esp + 0x18]
push eax
mov ecx, esi
mov dword [esp + 0x18], edi
call dword [edx + 0x34]
mov eax, dword [esp + 0x14]
mov edx, dword [esi]
push eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call dword [edx + 0x34]
mov edx, dword [esp + 0x14]
mov eax, dword [esi]
push 4
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
mov byte [esp + edx + 0x34], 0
call dword [eax + 0x34]
mov edx, dword [esi]
push 4
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call dword [edx + 0x34]
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push eax
lea ecx, [esp + 0x4030]
push ecx
mov ecx, esi
call dword [edx + 0x34]
mov edx, dword [ebp + 0x25c]
mov ecx, dword [ebp + 0x1350]
push edx
call fcn.004659fa
cmp eax, 1
jne 0x41e9a4
mov eax, dword [esp + 0x8040]
test eax, eax
je 0x41e9a4
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x4030]
push edx
push ecx
mov ecx, dword [esp + 0x20]
xor edx, edx
cmp edx, ecx
sbb ecx, ecx
lea edx, [esp + 0x38]
push 0
and ecx, edx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x24]
inc ebx
cmp ebx, eax
jb 0x41e8f4
mov eax, dword [esi]
push 4
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call dword [eax + 0x34]
mov eax, dword [esp + 0x28]
test eax, eax
mov dword [esp + 0x18], 0
jbe 0x41eaf2
mov ebx, dword [ebp + 0x25c]
inc ebx
push 4
lea eax, [esp + 0x20]
mov dword [ebp + 0x25c], ebx
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x34]
call fcn.0046b487
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x10], edi
mov eax, dword [edi - 4]
mov edx, dword [esp + 0x1c]
mov ecx, 1
sub ecx, eax
mov eax, dword [edi - 8]
sub eax, edx
or eax, ecx
mov dword [esp + 0x8038], 0
mov ebx, edx
jge 0x41ea33
push edx
lea ecx, [esp + 0x14]
call fcn.00402310
mov edi, dword [esp + 0x10]
mov dword [edi - 0xc], ebx
mov byte [ebx + edi], 0
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi]
push ecx
push edi
mov ecx, esi
call dword [eax + 0x34]
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
jne 0x41ea5e
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41ea55
sub eax, edx
mov dword [edi - 0xc], eax
mov byte [eax + edi], 0
mov edx, dword [ebp + 0x25c]
mov ecx, dword [ebp + 0x1350]
push edx
mov dword [esp + 0x24], 0
call fcn.004659fa
cmp eax, 1
jne 0x41ea9c
mov eax, dword [esp + 0x8040]
test eax, eax
je 0x41ea9c
lea ecx, [esp + 0x20]
push ecx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edx, dword [esp + 0x20]
push esi
push edx
mov ecx, ebp
call fcn.0041e890
mov eax, dword [esp + 0x20]
test eax, eax
je 0x41eab8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add edi, 0xfffffff0
mov dword [esp + 0x8038], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41eadd
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jb 0x41e9d3
mov ecx, dword [esp + 0x8030]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x8028]
xor ecx, dword [esp + 0x8038]
pop esi
pop ebp
pop ebx
call fcn.00456aa7
add esp, 0x802c
ret 8