Function at 0x4075f0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x568
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x24]
push 0x40
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esp + 0xa8]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x168]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xe8]
xor ebp, ebp
push eax
push 1
lea ecx, [esi + 0x87c0]
lea edi, [esi + 0x110]
push ebp
push ecx
mov ecx, edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], 1
call fcn.00403250
lea edx, [esp + 0xe4]
push edx
push str.Referring_to__s_section_for_AddReg
push ebp
push esi
call fcn.004044c0
add esp, 0x10
lea eax, [esp + 0x24]
lea ecx, [esi + 0x8800]
push 0x40
push eax
push 1
push str.AddReg
push ecx
mov ecx, edi
call fcn.00403220
test eax, eax
jne 0x4076a1
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x568
ret
lea edx, [esp + 0x24]
push ebx
push edx
mov ecx, edi
call fcn.004031e0
mov ecx, dword [esi + 0x8b60]
mov dword [esp + 0x24], eax
cmp ecx, ebp
je 0x40796a
xor ebx, ebx
cmp eax, ebp
jle 0x40796a
jmp 0x4076d2
mov esi, dword [esp + 0x14]
xor ebp, ebp
lea eax, [esp + 0xa8]
push 0x40
push eax
push 1
lea ecx, [esp + 0x34]
push ebx
lea edi, [esi + 0x110]
push ecx
mov ecx, edi
mov dword [esp + 0x24], ebp
call fcn.00403250
lea edx, [esp + 0x168]
push 0x104
push edx
push 2
lea eax, [esp + 0x34]
push ebx
push eax
mov ecx, edi
call fcn.00403250
lea ecx, [esp + 0x68]
push 0x40
push ecx
push 3
lea edx, [esp + 0x34]
push ebx
push edx
mov ecx, edi
call fcn.00403250
lea eax, [esp + 0x28]
push ebx
push eax
mov ecx, esi
call fcn.00407c60
mov ebp, eax
dec eax
je 0x407754
sub eax, 3
jne 0x407770
lea ecx, [esp + 0x20]
lea edx, [esp + 0x28]
push ecx
push 5
push ebx
push edx
mov ecx, edi
call fcn.00403280
jmp 0x407770
lea eax, [esp + 0x26c]
push 0x104
push eax
push 5
lea ecx, [esp + 0x34]
push ebx
push ecx
mov ecx, edi
call fcn.00403250
lea edx, [esp + 0x28]
lea eax, [esp + 0x26c]
push edx
push eax
push ebx
mov ecx, esi
call fcn.00407980
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x26c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x168]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0xa8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00407df0
test eax, eax
je 0x40792e
cmp ebp, 0xffffffff
je 0x40792e
cmp ebp, 1
jne 0x4077fd
lea edi, [esp + 0x26c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x270]
push ecx
push ebp
jmp 0x40780f
cmp ebp, 4
je 0x407807
cmp ebp, 3
jne 0x407821
lea ecx, [esp + 0x20]
push 4
push ecx
push ebp
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x74]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebx
lea ecx, [esp + 0x12c]
push str.ExtraKey__d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [esp + 0x28]
add esp, 0xc
test esi, esi
je 0x407880
lea ebp, [esp + 0x474]
lea edi, [esp + 0x168]
mov dl, byte [edi]
mov cl, byte [ebp]
mov al, dl
cmp dl, cl
jne 0x407877
test al, al
je 0x407873
mov cl, byte [edi + 1]
mov dl, byte [ebp + 1]
mov al, cl
cmp cl, dl
jne 0x407877
add edi, 2
add ebp, 2
test al, al
jne 0x40784e
xor eax, eax
jmp 0x40787c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4078fd
push esi
lea edx, [esp + 0x374]
push str.ExtraPath__d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edi, [esp + 0x168]
or ecx, 0xffffffff
xor eax, eax
inc esi
mov edx, dword [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x168]
push ecx
push eax
mov eax, dword [edx + 0x8b60]
push 1
lea ecx, [esp + 0x37c]
push 0
push ecx
push eax
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edi, [esp + 0x168]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x474]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x68]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x128]
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x6c]
push ecx
push 1
push eax
mov eax, dword [esp + 0x24]
push edx
mov ecx, dword [eax + 0x8b60]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x40794e
lea edx, [esp + 0x168]
push edx
push str.Can_not_open_registry_key__s.
push 0
push esi
call fcn.004044c0
add esp, 0x10
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40795d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
inc ebx
cmp ebx, eax
jl 0x4076cc
mov eax, dword [esp + 0x18]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x568
ret