Function at 0x407840
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x41f950
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x43f7ac]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov edx, dword [ebp + 0x214]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 0x218]
mov dword [ebp - 0x24], eax
mov esi, dword [ebp + 0x220]
mov dword [ebp - 0x14], esi
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp dword [ebx + 0x11c], eax
je 0x407b0d
mov dword [ebp - 4], eax
cmp dword [ebp + 0x21c], 1
jne 0x4078e0
mov eax, esi
lea edi, [eax + 1]
jmp 0x4078c0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4078c0
sub eax, edi
mov edi, dword [ebp + 0x224]
cmp eax, edi
jne 0x4078e6
add edi, 1
mov dword [ebp + 0x224], edi
jmp 0x4078e6
mov edi, dword [ebp + 0x224]
cmp dword [ebp + 0x228], 0
je 0x40792c
lea eax, [edi + 1]
push eax
call fcn.0040db80
mov esi, eax
mov dword [ebp - 0x18], esi
lea eax, [edi + 1]
push eax
push 0
push esi
call fcn.0040feb0
mov dword [ebp - 0x28], 1
push edi
mov ecx, dword [ebp - 0x14]
push ecx
push esi
call fcn.004105d0
add esp, 0x1c
push edi
push esi
mov ecx, ebx
call fcn.00404f60
mov edx, dword [ebp - 0x20]
jmp 0x407936
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x28], 0
mov eax, dword [ebx + 0x124]
cmp eax, 2
jne 0x407a27
mov dword [ebp - 0x14], 0
add ebx, 4
lea ecx, [ebp + 0x104]
mov al, byte [ebx]
mov byte [ecx], al
add ebx, 1
add ecx, 1
test al, al
jne 0x407955
test edx, edx
je 0x4079b7
lea edx, [ebp + 0x104]
push edx
call fcn.0040e2c0
add esp, 4
mov eax, dword [ebp - 0x20]
mov edx, eax
jmp 0x407980
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407980
sub eax, edx
lea edi, [ebp + 0x104]
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x407994
mov ecx, eax
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp + 0x224]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
lea edx, [ebp + 0x104]
push edx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x407af0
mov eax, dword [ebp + 0x21c]
cmp dword [ebp + 0x228], 0
je 0x4079fa
mov eax, 3
push edi
push esi
push eax
push 0
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x407a18
mov dword [ebp - 0x1c], 1
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x407af0
cmp eax, 1
jne 0x407af0
lea eax, [ebx + 4]
push eax
push edi
push esi
push 3
mov ecx, dword [ebp - 0x24]
push ecx
push edx
mov ecx, ebx
call fcn.00407290
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x24]
lea edx, [ebp]
lea ecx, [ecx]
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x407a50
mov eax, dword [ebx + 0x10c]
mov edx, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407a66
sub eax, edx
lea edi, [ebp]
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x407a77
mov ecx, eax
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x104
push 0
lea edx, [ebp + 0x104]
push edx
call fcn.0040feb0
push 0xa
lea eax, [ebp + 0x104]
push eax
mov ecx, dword [ebp + 0x224]
push ecx
call fcn.004116e9
add esp, 0x18
lea eax, [ebp + 0x104]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407ac5
sub eax, edx
lea edx, [ebx + 4]
push edx
push eax
lea eax, [ebp + 0x104]
push eax
push 1
lea ecx, [ebp]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov ecx, ebx
call fcn.00407290
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x407b03
cmp dword [ebp - 0x28], 0
je 0x407b03
push esi
call fcn.0040dbc0
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0040fe67
add ebp, 0x20c
mov esp, ebp
pop ebp
ret 0x18