Function at 0x495570
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e86b
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x4c8094]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push edx
mov edx, esi
lea ecx, [ebp - 0x2a4]
call fcn.00495ec0
add esp, 4
push 0x200
lea eax, [ebp - 0x214]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00440a80
add esp, 0xc
lea eax, [ebp - 0x214]
push dword [ebp + 8]
push 0x4b5744
push eax
call fcn.00408d92
add esp, 0xc
mov dword [ebp - 0x260], 0xf
mov dword [ebp - 0x264], 0
mov byte [ebp - 0x274], 0
mov byte [ebp - 4], 1
xor eax, eax
mov dword [ebp - 0x230], 7
mov dword [ebp - 0x234], 0
mov word [ebp - 0x244], ax
cmp word [esi], ax
jne 0x495629
xor ecx, ecx
jmp 0x49563f
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x495630
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x244]
call fcn.004027a4
lea edx, [ebp - 0x244]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x22c]
call fcn.0040ac07
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 0x10
jb 0x49566d
mov eax, dword [eax]
lea ecx, [ebp - 0x274]
push ecx
lea edx, [ebp - 0x214]
mov ecx, eax
call fcn.0040d260
mov byte [ebp - 4], 2
add esp, 4
mov eax, dword [ebp - 0x218]
cmp eax, 0x10
jb 0x4956d8
mov ecx, dword [ebp - 0x22c]
inc eax
cmp eax, 0x1000
jb 0x4956cf
test cl, 0x1f
je 0x4956ab
call fcn.00447cc1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4956b7
call fcn.00447cc1
sub ecx, eax
cmp ecx, 4
jae 0x4956c3
call fcn.00447cc1
cmp ecx, 0x23
jbe 0x4956cd
call fcn.00447cc1
mov ecx, eax
push ecx
call fcn.00426850
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x218], 0xf
mov dword [ebp - 0x21c], 0
mov byte [ebp - 0x22c], 0
cmp eax, 8
jb 0x495759
mov ecx, dword [ebp - 0x244]
inc eax
cmp eax, 0x7fffffff
jbe 0x495715
call fcn.00447cc1
add eax, eax
cmp eax, 0x1000
jb 0x495750
test byte [ebp - 0x244], 0x1f
je 0x49572c
call fcn.00447cc1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x495738
call fcn.00447cc1
sub ecx, eax
cmp ecx, 4
jae 0x495744
call fcn.00447cc1
cmp ecx, 0x23
jbe 0x49574e
call fcn.00447cc1
mov ecx, eax
push ecx
call fcn.00426850
add esp, 4
mov dword [ebp - 0x248], 0xf
mov dword [ebp - 0x24c], 0
mov byte [ebp - 0x25c], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x274]
mov eax, dword [ebp - 0x264]
lea edx, [ebp - 0x2a8]
mov esi, dword [ebp - 0x260]
cmp esi, 0x10
mov dword [ebp - 0x2a8], eax
lea eax, [ebp - 0x25c]
cmovae ecx, dword [ebp - 0x274]
push eax
call fcn.0040d3d5
add esp, 4
mov dword [ebp - 0x230], 0xf
cmp dword [ebp - 0x290], 0x10
lea edx, [ebp - 0x2a4]
mov dword [ebp - 0x234], 0
cmovae edx, dword [ebp - 0x2a4]
mov byte [ebp - 0x244], 0
cmp byte [edx], 0
jne 0x4957e7
xor ecx, ecx
jmp 0x4957f9
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4957f0
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x244]
call fcn.00405a98
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28c]
cmp dword [0x4f40a0], 0x10
mov edx, 0x4f408c
push str.yh87Yx6EotW2RHhQlrSlh3ep1
cmovae edx, dword [0x4f408c]
call fcn.0040d58a
add esp, 4
mov edx, eax
mov byte [ebp - 4], 6
cmp dword [edx + 0x14], 0x10
jb 0x49583e
mov edx, dword [edx]
mov dword [ebp - 0x218], 0xf
mov dword [ebp - 0x21c], 0
mov byte [ebp - 0x22c], 0
cmp byte [edx], 0
jne 0x495862
xor ecx, ecx
jmp 0x495870
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x495867
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x22c]
call fcn.00405a98
cmp dword [ebp - 0x218], 0x10
lea ecx, [ebp - 0x2ac]
push ecx
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0x2a8], 0
push ecx
push 0
push 0x20006
push 0
push 0x4b5240
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x2ac], 0
cmovae eax, dword [ebp - 0x22c]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push dword [ebp - 0x24c]
cmp dword [ebp - 0x248], 0x10
lea ecx, [ebp - 0x25c]
lea eax, [ebp - 0x244]
cmovae ecx, dword [ebp - 0x25c]
cmp dword [ebp - 0x230], 0x10
push ecx
cmovae eax, dword [ebp - 0x244]
push 1
push 0
push eax
push dword [ebp - 0x2a8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x218]
cmp eax, 0x10
jb 0x49595f
mov ecx, dword [ebp - 0x22c]
inc eax
cmp eax, 0x1000
jb 0x495956
test cl, 0x1f
je 0x495932
call fcn.00447cc1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x49593e
call fcn.00447cc1
sub ecx, eax
cmp ecx, 4
jae 0x49594a
call fcn.00447cc1
cmp ecx, 0x23
jbe 0x495954
call fcn.00447cc1
mov ecx, eax
push ecx
call fcn.00426850
add esp, 4
mov eax, dword [ebp - 0x278]
mov dword [ebp - 0x218], 0xf
mov dword [ebp - 0x21c], 0
mov byte [ebp - 0x22c], 0
cmp eax, 0x10
jb 0x4959ca
mov ecx, dword [ebp - 0x28c]
inc eax
cmp eax, 0x1000
jb 0x4959c1
test cl, 0x1f
je 0x49599d
call fcn.00447cc1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4959a9
call fcn.00447cc1
sub ecx, eax
cmp ecx, 4
jae 0x4959b5
call fcn.00447cc1
cmp ecx, 0x23
jbe 0x4959bf
call fcn.00447cc1
mov ecx, eax
push ecx
call fcn.00426850
add esp, 4
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x278], 0xf
mov dword [ebp - 0x27c], 0
mov byte [ebp - 0x28c], 0
cmp eax, 0x10
jb 0x495a35
mov ecx, dword [ebp - 0x244]
inc eax
cmp eax, 0x1000
jb 0x495a2c
test cl, 0x1f
je 0x495a08
call fcn.00447cc1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x495a14
call fcn.00447cc1
sub ecx, eax
cmp ecx, 4
jae 0x495a20
call fcn.00447cc1
cmp ecx, 0x23
jbe 0x495a2a
call fcn.00447cc1
mov ecx, eax
push ecx
call fcn.00426850
add esp, 4
mov eax, dword [ebp - 0x248]
cmp eax, 0x10
jb 0x495a85
mov ecx, dword [ebp - 0x25c]
inc eax
cmp eax, 0x1000
jb 0x495a7c
test cl, 0x1f
je 0x495a58
call fcn.00447cc1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x495a64
call fcn.00447cc1
sub ecx, eax
cmp ecx, 4
jae 0x495a70
call fcn.00447cc1
cmp ecx, 0x23
jbe 0x495a7a
call fcn.00447cc1
mov ecx, eax
push ecx
call fcn.00426850
add esp, 4
mov dword [ebp - 0x248], 0xf
mov dword [ebp - 0x24c], 0
mov byte [ebp - 0x25c], 0
cmp esi, 0x10
jb 0x495ab9
push 1
lea eax, [esi + 1]
push eax
push dword [ebp - 0x274]
call fcn.004015eb
add esp, 0xc
mov eax, dword [ebp - 0x290]
cmp eax, 0x10
jb 0x495ad6
push 1
inc eax
push eax
push dword [ebp - 0x2a4]
call fcn.004015eb
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00426855
mov esp, ebp
pop ebp
ret