Function at 0x49e360
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x440]
sub esp, 0x4bc
mov eax, dword [0x4ce724]
xor eax, ebp
mov dword [ebp + 0x43c], eax
push ebx
mov ebx, dword [ebp + 0x450]
push esi
mov esi, dword [ebp + 0x448]
push edi
mov edi, dword [ebp + 0x44c]
xor eax, eax
push 0x40e
push eax
lea ecx, [ebp - 0x12]
push ecx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x14], ax
call fcn.00467d60
add esp, 0xc
test esi, esi
je 0x49e7eb
cmp byte [esi], 0
je 0x49e7eb
test ebx, ebx
je 0x49e7eb
cmp byte [ebx], 0
je 0x49e7eb
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x30]
mov edx, esi
mov dword [ebp - 0x30], 0x208
call fcn.0049e180
add esp, 4
test eax, eax
jne 0x49e7f0
lea eax, [ebp - 0x3c]
push eax
push 3
push 0
lea ecx, [ebp - 0x14]
push ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x49e436
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x3c]
push eax
push 0x20006
push 0
push closesocket
lea ecx, [ebp - 0x14]
call fcn.0049cb10
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x49e7f0
mov dword [ebp - 0x1c], 0
test edi, edi
je 0x49e4ad
cmp byte [edi], 0
je 0x49e4ad
mov eax, edi
lea edx, [eax + 1]
jmp 0x49e450
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49e450
sub eax, edx
lea esi, [eax + 1]
lea eax, [esi + 8]
cmp eax, 0x400
ja 0x49e47f
call fcn.0046d9c0
mov eax, esp
test eax, eax
je 0x49e47a
mov dword [eax], 0xcccc
add eax, 8
mov dword [ebp - 0x1c], eax
jmp 0x49e498
push eax
call fcn.00468977
add esp, 4
test eax, eax
je 0x49e495
mov dword [eax], 0xdddd
add eax, 8
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x49e506
push 0
push esi
push eax
dec esi
push esi
push edi
call fcn.004a5690
add esp, 0x14
mov esi, eax
test esi, esi
jne 0x49e7c8
mov eax, ebx
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49e4c0
sub eax, edx
push 0
push 8
mov esi, eax
call fcn.004a1dd0
lea edi, [eax + esi + 1]
lea esi, [edi + 8]
add esp, 8
mov dword [ebp - 0x48], edi
cmp esi, 0x400
ja 0x49e510
mov eax, esi
call fcn.0046d9c0
mov eax, esp
test eax, eax
je 0x49e4ff
mov dword [eax], 0xcccc
add eax, 8
mov ebx, eax
mov dword [ebp - 0x34], ebx
jmp 0x49e52b
mov esi, 8
jmp 0x49e7c8
push esi
call fcn.00468977
add esp, 4
test eax, eax
je 0x49e526
mov dword [eax], 0xdddd
add eax, 8
mov dword [ebp - 0x34], eax
mov ebx, eax
cmp esi, 0x400
ja 0x49e548
mov eax, esi
call fcn.0046d9c0
mov eax, esp
test eax, eax
je 0x49e55e
mov dword [eax], 0xcccc
jmp 0x49e55b
push esi
call fcn.00468977
add esp, 4
test eax, eax
je 0x49e55e
mov dword [eax], 0xdddd
add eax, 8
mov dword [ebp - 0x28], eax
test ebx, ebx
je 0x49e7ae
test eax, eax
je 0x49e7ae
push 0x40
lea ecx, [ebp + 0x3fc]
push ecx
lea ecx, [ebp - 0x7c]
call fcn.0049dcf0
mov esi, eax
test esi, esi
jne 0x49e7b3
mov edx, dword [ebp - 0x2c]
push edx
lea eax, [ebp + 0x3fc]
push eax
push str._s_s
push edi
push ebx
call fcn.0046a4df
movzx edi, di
dec edi
mov eax, 0x80808081
mul edi
shr edx, 7
mov ecx, edx
imul ecx, ecx, 0xff
mov esi, edi
sub esi, ecx
add esp, 0x14
neg esi
sbb esi, esi
neg esi
mov eax, 0x108
mov dword [ebp - 0x30], edi
add esi, edx
call fcn.0046d9c0
mov ebx, esp
mov dword [ebp - 0x24], esp
test ebx, ebx
je 0x49e5ea
mov dword [ebx], 0xcccc
add ebx, 8
mov dword [ebp - 0x24], ebx
mov eax, 0x108
call fcn.0046d9c0
mov eax, esp
mov dword [ebp - 0x20], esp
test eax, eax
je 0x49e609
mov dword [eax], 0xcccc
add eax, 8
mov dword [ebp - 0x20], eax
test esi, esi
jbe 0x49e756
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x44], 0x110fd9a
mov dword [ebp - 0x2c], esi
mov eax, edi
sub eax, dword [ebp - 0x38]
mov byte [ebp - 0x15], 0xff
cmp eax, 0xff
ja 0x49e635
mov byte [ebp - 0x15], al
movzx dx, byte [ebp - 0x15]
mov ecx, dword [ebp - 0x44]
xor eax, eax
shl dx, 8
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x40], eax
movzx eax, dx
push ecx
xor bl, bl
mov dword [ebp - 0x54], eax
call fcn.004a7790
movzx edx, byte [ebp - 0x15]
add esp, 4
mov dword [ebp - 0x4c], edx
call fcn.004a7980
xor edx, edx
div dword [ebp - 0x4c]
mov al, dl
shr al, 5
movzx esi, dl
mov byte [ebp - 0x16], al
movzx edi, byte [ebp - 0x16]
mov ecx, esi
and ecx, 0x1f
mov eax, 1
shl eax, cl
mov ecx, dword [ebp + edi*4 - 0x74]
lea edi, [ebp + edi*4 - 0x74]
test eax, ecx
jne 0x49e6bc
or ecx, eax
movzx eax, bl
mov dword [edi], ecx
mov ecx, dword [ebp - 0x24]
mov byte [eax + ecx], dl
mov edx, dword [ebp - 0x20]
mov byte [esi + edx], bl
inc bl
inc dword [ebp - 0x40]
cmp bl, byte [ebp - 0x15]
jae 0x49e70c
mov ax, word [ebp - 0x40]
cmp ax, word [ebp - 0x54]
jb 0x49e676
xor dl, dl
cmp byte [ebp - 0x15], dl
jbe 0x49e735
cmp bl, byte [ebp - 0x15]
jae 0x49e70c
movzx eax, dl
mov ecx, eax
and ecx, 0x1f
mov esi, 1
shl esi, cl
mov ecx, eax
shr ecx, 5
test dword [ebp + ecx*4 - 0x74], esi
jne 0x49e705
mov esi, dword [ebp - 0x24]
movzx ecx, bl
mov byte [ecx + esi], dl
mov ecx, dword [ebp - 0x20]
mov byte [eax + ecx], bl
inc bl
inc dl
cmp dl, byte [ebp - 0x15]
jb 0x49e6d5
cmp byte [ebp - 0x15], 0
jbe 0x49e735
mov edi, dword [ebp - 0x38]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x4c]
lea ecx, [edi + edx]
movzx edx, byte [eax]
mov ebx, dword [ebp - 0x34]
add edx, edi
mov dl, byte [edx + ebx]
mov byte [ecx], dl
inc eax
inc ecx
sub esi, 1
jne 0x49e721
add dword [ebp - 0x44], 0x110fd9a
add dword [ebp - 0x38], 0xff
sub dword [ebp - 0x2c], 1
mov edi, dword [ebp - 0x30]
jne 0x49e622
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
test ebx, ebx
je 0x49e771
add ebx, 0xfffffff8
cmp dword [ebx], 0xdddd
jne 0x49e771
push ebx
call fcn.00468a41
mov eax, dword [ebp - 0x20]
add esp, 4
test eax, eax
je 0x49e789
add eax, 0xfffffff8
cmp dword [eax], 0xdddd
jne 0x49e789
push eax
call fcn.00468a41
add esp, 4
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
push ecx
push eax
push 1
push 0
mov byte [edi + eax], 0
mov eax, dword [ebp - 0x3c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, dword [ebp - 0x34]
mov esi, eax
jmp 0x49e7b3
mov esi, 8
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0041a740
push ebx
call fcn.0041a740
mov edi, dword [ebp - 0x50]
add esp, 8
test edi, edi
je 0x49e7dd
cmp byte [edi], 0
je 0x49e7dd
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0041a740
add esp, 4
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x49e7f0
mov eax, 0x57
lea esp, [ebp - 0x88]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x43c]
xor ecx, ebp
call fcn.00467d4f
add ebp, 0x440
mov esp, ebp
pop ebp
ret