Function at 0x40fa80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x54c384]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, edx
mov edx, dword [ebp + 8]
push edi
mov edi, ecx
lea ecx, [ebp - 0xd0]
call fcn.0040e7d0
cmp dword [ebp - 0xbc], 0x10
lea eax, [ebp - 0xd0]
cmovae eax, dword [ebp - 0xd0]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.00435410
push eax
lea ecx, [ebp - 0xd0]
call fcn.004031f0
mov edx, dword [ebp - 0xec]
cmp edx, 0x10
jb 0x40fb12
mov ecx, dword [ebp - 0x100]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fb08
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fd64
push edx
push ecx
call fcn.004bdd39
add esp, 8
cmp dword [ebp - 0xbc], 0x10
lea edx, [ebp - 0xd0]
lea ecx, [ebp - 0xe8]
cmovae edx, dword [ebp - 0xd0]
call fcn.0040e8d0
push 0x80
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.004c05c0
add esp, 0xc
lea eax, [ebp - 0x88]
push 0xa
push eax
push dword [esi]
call fcn.004ce23e
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x90], 0
add esp, 0xc
mov dword [ebp - 0x8c], 0xf
mov byte [ebp - 0xa0], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fb80
sub ecx, edx
lea eax, [ebp - 0x88]
push ecx
push eax
lea ecx, [ebp - 0xa0]
call fcn.00404000
lea eax, [ebp - 0xa0]
push eax
mov edx, eax
call fcn.0042f9a0
add esp, 4
lea edx, [ebp - 0xa0]
cmp dword [ebp - 0x8c], 0x10
lea ecx, [ebp - 0xb8]
cmovae edx, dword [ebp - 0xa0]
call fcn.0040e8d0
cmp dword [ebp - 0xd4], 8
lea edx, [ebp - 0xe8]
mov eax, dword [ebp - 0xa8]
lea ecx, [ebp - 0xb8]
cmovae edx, dword [ebp - 0xe8]
cmp dword [ebp - 0xa4], 8
cmovae ecx, dword [ebp - 0xb8]
add eax, eax
push eax
push ecx
push 1
push edx
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov edx, dword [ebp - 0xa4]
mov esi, eax
neg esi
sbb esi, esi
cmp edx, 8
jb 0x40fc4f
mov ecx, dword [ebp - 0xb8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40fc45
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fd69
push edx
push ecx
call fcn.004bdd39
add esp, 8
mov edx, dword [ebp - 0x8c]
xor eax, eax
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 7
mov word [ebp - 0xb8], ax
cmp edx, 0x10
jb 0x40fca6
mov ecx, dword [ebp - 0xa0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fc9c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fd69
push edx
push ecx
call fcn.004bdd39
add esp, 8
mov edx, dword [ebp - 0xd4]
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0xf
mov byte [ebp - 0xa0], 0
cmp edx, 8
jb 0x40fcfd
mov ecx, dword [ebp - 0xe8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40fcf3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fd69
push edx
push ecx
call fcn.004bdd39
add esp, 8
mov edx, dword [ebp - 0xbc]
xor eax, eax
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 7
mov word [ebp - 0xe8], ax
cmp edx, 0x10
jb 0x40fd50
mov ecx, dword [ebp - 0xd0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fd46
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fd69
push edx
push ecx
call fcn.004bdd39
add esp, 8
mov ecx, dword [ebp - 4]
lea eax, [esi + 1]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bdaf8
mov esp, ebp
pop ebp
ret
call fcn.004c8da3
call fcn.004c8da3
int3