Function at 0x439010
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x44]
sub esp, 0x44
push 0xffffffffffffffff
push 0x481418
mov eax, dword fs:[0]
push eax
sub esp, 0x234
push ebx
push esi
push edi
mov eax, dword [0x4bb27c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x4c]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp + 0x2c]
mov byte [ebp - 4], 2
call fcn.004031f0
push 0
push 1
push 1
push 0
lea ecx, [ebp + 0x2c]
push ecx
lea edx, [ebp + 0x30]
push edx
mov byte [ebp - 4], 3
call fcn.00436ed0
add esp, 0x18
mov eax, dword [ebp + 0x2c]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x439099
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 0x54]
mov eax, dword [ebp + 0x50]
push 4
lea edx, [ebp + 0x40]
push edx
push 4
push 0
mov dword [ebp + 0x40], ecx
mov ecx, dword [ebp + 0x30]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x439373
push str.CNRegistry::SetValue
lea ecx, [ebp + 0x20]
call fcn.004031f0
push str..NRegistry.cpp
lea ecx, [ebp + 0x24]
mov byte [ebp - 4], 6
call fcn.004031f0
test esi, esi
mov byte [ebp - 4], 7
mov edi, esi
jle 0x4390f5
and edi, 0xffff
or edi, 0x80070000
push 0
lea edx, [ebp + 0x28]
push esi
push edx
call fcn.00435510
add esp, 0xc
lea ecx, [ebp + 0x20]
push ecx
push 0x132
lea edx, [ebp + 0x24]
push edx
push edi
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 8
call fcn.0041fce0
mov eax, dword [ebp + 0x28]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x439142
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x439165
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x439188
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.CNRegistry::SetValue
lea ecx, [ebp + 0x40]
call fcn.004031f0
push str..NRegistry.cpp
lea ecx, [ebp + 0x34]
mov byte [ebp - 4], 0xd
call fcn.004031f0
mov bl, 0xe
push str.Failed_to_write_registry_value.
lea ecx, [ebp + 0x2c]
mov byte [ebp - 4], bl
call fcn.004031f0
lea ecx, [ebp + 0x40]
push ecx
push 0x133
lea edx, [ebp + 0x34]
push edx
push 0x7df
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xf
call fcn.0041fbe0
mov eax, dword [ebp + 0x2c]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4391fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x34]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xd
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43921f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x40]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x439242
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.Registry_key
lea ecx, [ebp + 0x40]
call fcn.004031f0
mov ecx, dword [ebp + 0x50]
push ecx
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 0x10
call fcn.004031f0
mov esi, eax
mov edx, dword [ebp + 0x4c]
push edx
lea ecx, [ebp + 0x3c]
mov byte [ebp - 4], 0x11
call fcn.004031f0
push 0x497728
push eax
lea eax, [ebp + 0x2c]
push eax
mov byte [ebp - 4], 0x12
call fcn.0041d550
add esp, 0xc
push esi
push eax
lea ecx, [ebp + 0x34]
mov bl, 0x13
push ecx
mov byte [ebp - 4], bl
call fcn.00421d70
add esp, 0xc
push eax
lea edx, [ebp + 0x40]
push edx
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x14
call fcn.0041e440
mov eax, dword [ebp + 0x34]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4392cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x2c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x12
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4392f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x3c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x11
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x439313
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x38]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x439336
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x40]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x439359
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x80]
call fcn.0041f780
push 0x4b1c2c
lea edx, [ebp - 0x80]
push edx
call fcn.00466ffb
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x439381
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x44
mov esp, ebp
pop ebp
ret