Function at 0x49bf77
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x23c
mov eax, dword [0x500144]
xor eax, esp
mov dword [esp + 0x238], eax
mov eax, dword [ebp + 8]
and dword [esp + 0xc], 0
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x28]
push edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], eax
call fcn.0049bbbc
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
xor eax, eax
push eax
push 0x20006
push eax
push eax
push eax
lea eax, [esp + 0x44]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test edi, edi
je 0x49c066
mov eax, dword [section..data]
mov esi, section..data
cmp eax, esi
je 0x49c183
xor ebx, ebx
inc ebx
test byte [eax + 0x1c], bl
je 0x49c023
cmp byte [eax + 0x19], 2
jb 0x49c023
call fcn.0042386b
push edi
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x10
pop ecx
call fcn.0049bb88
mov eax, dword [section..data]
cmp eax, esi
je 0x49c183
test byte [eax + 0x1c], bl
je 0x49c183
cmp byte [eax + 0x19], 3
jb 0x49c183
call fcn.0042386b
lea ecx, [esp + 0x28]
mov edx, 0x416b0c
push ecx
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x11
pop ecx
call fcn.004330da
jmp 0x49c183
mov eax, dword [section..data]
xor ebx, ebx
mov esi, section..data
inc ebx
cmp eax, esi
je 0x49c0b6
test byte [eax + 0x1c], bl
je 0x49c0b6
cmp byte [eax + 0x19], 4
jb 0x49c0b6
mov edi, 0x416aec
cmp dword [esp + 0x1c], ebx
je 0x49c092
mov edi, 0x416afc
call fcn.0042386b
lea ecx, [esp + 0x28]
mov edx, 0x416b0c
push ecx
push edi
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x12
pop ecx
call fcn.0043e9d7
push dword [ebp + 0x10]
push dword [esp + 0x24]
push dword [ebp + 0x14]
push 0
push dword [esp + 0x20]
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x49c140
mov eax, dword [section..data]
cmp eax, esi
je 0x49c144
test byte [eax + 0x1c], bl
je 0x49c109
cmp byte [eax + 0x19], 2
jb 0x49c109
call fcn.0042386b
push edi
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x13
pop ecx
call fcn.0049bb88
mov eax, dword [section..data]
cmp eax, esi
je 0x49c144
test byte [eax + 0x1c], bl
je 0x49c144
cmp byte [eax + 0x19], 3
jb 0x49c144
call fcn.0042386b
push dword [esp + 0x10]
mov edx, 0x416b0c
push dword [esp + 0x28]
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x14
pop ecx
call fcn.0043e9d7
jmp 0x49c144
mov dword [esp + 0x18], ebx
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
test edi, edi
je 0x49c183
mov eax, dword [section..data]
cmp eax, esi
je 0x49c183
test byte [eax + 0x1c], bl
je 0x49c183
cmp byte [eax + 0x19], 2
jb 0x49c183
call fcn.0042386b
mov ecx, dword [section..data]
push edi
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
push 0x15
pop ecx
call fcn.0049bb88
mov ecx, dword [esp + 0x244]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004fb5e0
mov esp, ebp
pop ebp
ret 0x10