Function at 0x49c9d8
Capabilities:
Set registry value

Disassembly:
push 0x4c
mov eax, 0x4af5f6
call fcn.004a956e
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x30], ecx
mov eax, dword [0x4b70c8]
mov ebx, dword [ebp + 8]
cmp eax, 0x4b70c8
je 0x49ca16
test byte [eax + 0x1c], 1
je 0x49ca16
cmp byte [eax + 0x19], 5
jb 0x49ca16
push dword [ebp + 0xc]
push ebx
push edx
push ecx
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0049be82
xor eax, eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov esi, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
xor edx, edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.0049d031
mov edi, eax
mov eax, dword [0x4b70c8]
cmp eax, 0x4b70c8
je 0x49ca6e
test byte [eax + 0x1c], 2
je 0x49ca6e
cmp byte [eax + 0x19], 4
jb 0x49ca6e
push edi
push dword [eax + 0x14]
mov edx, 0x410344
push dword [eax + 0x10]
push 0x2e
pop ecx
call fcn.0041610f
test edi, edi
jne 0x49caab
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x58]
call fcn.00495b62
mov edi, eax
mov eax, dword [0x4b70c8]
cmp eax, 0x4b70c8
je 0x49caab
test byte [eax + 0x1c], 2
je 0x49caab
cmp byte [eax + 0x19], 4
jb 0x49caab
push edi
push dword [eax + 0x14]
mov edx, 0x410344
push dword [eax + 0x10]
push 0x2f
pop ecx
call fcn.0041610f
push dword [ebp - 0x24]
lea ecx, [ebp - 0x2c]
call fcn.0041706d
push 0x410334
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0041706d
push 0x410334
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.0041706d
mov byte [ebp - 4], 5
test edi, edi
jne 0x49cb67
test ebx, ebx
je 0x49cb24
mov ecx, ebx
call fcn.00417403
push eax
push ebx
lea ecx, [ebp - 0x20]
call fcn.0041738c
mov eax, dword [0x4b70c8]
cmp eax, 0x4b70c8
je 0x49cb24
test byte [eax + 0x1c], 2
je 0x49cb24
cmp byte [eax + 0x19], 4
jb 0x49cb24
push dword [eax + 0x14]
mov edx, 0x410344
push dword [eax + 0x10]
push 0x30
pop ecx
call fcn.00416054
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x49cb67
mov ecx, ebx
call fcn.00417403
push eax
push ebx
lea ecx, [ebp - 0x1c]
call fcn.0041738c
mov eax, dword [0x4b70c8]
cmp eax, 0x4b70c8
je 0x49cb67
test byte [eax + 0x1c], 2
je 0x49cb67
cmp byte [eax + 0x19], 4
jb 0x49cb67
push dword [eax + 0x14]
mov edx, 0x410344
push dword [eax + 0x10]
push 0x31
pop ecx
call fcn.00416054
mov ebx, 0x4b8970
lea ecx, [ebp - 0x18]
push ebx
call fcn.00417475
mov byte [ebp - 4], 6
test edi, edi
jne 0x49cf21
lea ecx, [ebp - 0x18]
call fcn.00494e6c
mov edi, eax
mov eax, dword [0x4b70c8]
cmp eax, 0x4b70c8
je 0x49cbbc
test byte [eax + 0x1c], 2
je 0x49cbbc
cmp byte [eax + 0x19], 4
jb 0x49cbbc
push edi
push dword [eax + 0x14]
mov edx, 0x410344
push dword [eax + 0x10]
push 0x32
pop ecx
call fcn.0041610f
mov eax, dword [0x4b70c8]
test edi, edi
js 0x49cf26
push ebx
lea ecx, [ebp - 0x14]
call fcn.00417475
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov ebx, eax
mov byte [ebp - 4], 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x48], ebx
jle 0x49cf16
push ebx
lea ecx, [ebp - 0x4c]
call fcn.00423367
push eax
lea ecx, [ebp - 0x14]
call fcn.0041715f
push 1
push 0x4042f8
lea ecx, [ebp - 0x14]
call fcn.00416cb5
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push dword [eax - 0xc]
push eax
call fcn.00416cb5
push ecx
push ecx
push 0x2011f
push ecx
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x40]
push dword [ebp - 0x58]
call fcn.004249e6
mov edi, eax
mov eax, dword [0x4b70c8]
cmp eax, 0x4b70c8
je 0x49cc5f
test byte [eax + 0x1c], 2
je 0x49cc5f
cmp byte [eax + 0x19], 4
jb 0x49cc5f
push edi
push dword [eax + 0x14]
mov edx, 0x410344
push dword [eax + 0x10]
push 0x33
pop ecx
call fcn.0041610f
test edi, edi
jne 0x49cd84
mov eax, dword [ebp - 0x30]
push 4
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x40]
push 4
push edi
push 0x410304
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov eax, dword [0x4b70c8]
cmp eax, 0x4b70c8
je 0x49ccb3
test byte [eax + 0x1c], 2
je 0x49ccb3
cmp byte [eax + 0x19], 4
jb 0x49ccb3
push edi
push dword [eax + 0x14]
mov edx, 0x410344
push dword [eax + 0x10]
push 0x34
pop ecx
call fcn.0041610f
test edi, edi
jne 0x49cd84
push ecx
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x40]
push 0x410314
call fcn.0042494b
mov edi, eax
mov eax, dword [0x4b70c8]
cmp eax, 0x4b70c8
je 0x49ccfa
test byte [eax + 0x1c], 2
je 0x49ccfa
cmp byte [eax + 0x19], 4
jb 0x49ccfa
push edi
push dword [eax + 0x14]
mov edx, 0x410344
push dword [eax + 0x10]
push 0x35
pop ecx
call fcn.0041610f
test edi, edi
jne 0x49cd84
push ecx
push dword [ebp - 0x20]
lea ecx, [ebp - 0x40]
push 0x41031c
call fcn.0042494b
mov edi, eax
mov eax, dword [0x4b70c8]
cmp eax, 0x4b70c8
je 0x49cd41
test byte [eax + 0x1c], 2
je 0x49cd41
cmp byte [eax + 0x19], 4
jb 0x49cd41
push edi
push dword [eax + 0x14]
mov edx, 0x410344
push dword [eax + 0x10]
push 0x36
pop ecx
call fcn.0041610f
test edi, edi
jne 0x49cd84
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x40]
push 0x410328
call fcn.0042494b
mov edi, eax
mov eax, dword [0x4b70c8]
cmp eax, 0x4b70c8
je 0x49cd84
test byte [eax + 0x1c], 2
je 0x49cd84
cmp byte [eax + 0x19], 4
jb 0x49cd84
push edi
push dword [eax + 0x14]
mov edx, 0x410344
push dword [eax + 0x10]
push 0x37
pop ecx
call fcn.0041610f
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x49cd97
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x40], eax
test edi, edi
jne 0x49cefb
push 0x4b8970
lea ecx, [ebp - 0x24]
call fcn.00417475
push ebx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 9
call fcn.00423367
push dword [eax]
lea eax, [ebp - 0x24]
push 0x4102ec
push eax
call fcn.0041a5a1
mov edi, dword [ebp - 0x24]
add esp, 0xc
push edi
push 0
push 0x100002
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
test esi, esi
jne 0x49cea6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov edx, dword [0x4b70c8]
cmp edx, 0x4b70c8
je 0x49ce31
test byte [edx + 0x1c], 2
je 0x49ce31
movzx eax, byte [edx + 0x19]
mov ecx, ebx
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 5
cmp eax, ecx
jb 0x49ce31
push ebx
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x410344
push 0x38
pop ecx
call fcn.0041610f
mov edx, dword [0x4b70c8]
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x28], esi
cmp edx, 0x4b70c8
je 0x49ce5f
test byte [edx + 0x1c], 2
je 0x49ce5f
cmp byte [edx + 0x19], 4
jb 0x49ce5f
push esi
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x410344
push 0x39
pop ecx
call fcn.0041610f
test esi, esi
je 0x49ceae
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [0x4b70c8]
cmp ecx, 0x4b70c8
je 0x49ce98
test byte [ecx + 0x1c], 2
je 0x49ce98
cmp byte [ecx + 0x19], 4
jb 0x49ce98
push eax
push dword [ecx + 0x14]
mov edx, 0x410344
push dword [ecx + 0x10]
push 0x3a
pop ecx
call fcn.0041610f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [ebp - 0x28], esi
jmp 0x49ceef
mov edx, dword [0x4b70c8]
jmp 0x49ce34
push ebx
lea ecx, [ebp - 0x4c]
call fcn.00423367
lea ecx, [ebp - 0x58]
mov edx, dword [eax]
call fcn.00495ed8
mov ecx, dword [0x4b70c8]
cmp ecx, 0x4b70c8
je 0x49ceef
test byte [ecx + 0x1c], 2
je 0x49ceef
cmp byte [ecx + 0x19], 4
jb 0x49ceef
push eax
push dword [ecx + 0x14]
mov edx, 0x410344
push dword [ecx + 0x10]
push 0x3b
pop ecx
call fcn.0041610f
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 8
call fcn.004174b0
inc ebx
mov dword [ebp - 0x10], ebx
cmp ebx, dword [ebp - 0x48]
jl 0x49cbea
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x49cf16
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.004174b0
mov eax, dword [0x4b70c8]
cmp eax, 0x4b70c8
je 0x49cf46
test byte [eax + 0x1c], 1
je 0x49cf46
push dword [eax + 0x14]
mov edx, 0x410344
push dword [eax + 0x10]
push 0x3c
pop ecx
call fcn.00416054
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.004174b0
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.004174b0
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.004174b0
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.004174b0
lea ecx, [ebp - 0x4c]
call fcn.0042338c
test esi, esi
je 0x49cf85
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x58], 0
je 0x49cf94
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.004a953c
ret 8