Function at 0x438290
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x44]
sub esp, 0x44
push 0xffffffffffffffff
push 0x4811b8
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 0x438319
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp + 0x54]
xor eax, eax
test esi, esi
setne al
test eax, eax
jne 0x438331
push 0x80004005
call fcn.004032e0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp + 0x50]
lea ecx, [eax + eax + 2]
mov eax, dword [ebp + 0x30]
push ecx
push esi
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x43860c
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 0x43838e
and edi, 0xffff
or edi, 0x80070000
push 0
lea ecx, [ebp + 0x28]
push esi
push ecx
call fcn.00435510
add esp, 0xc
lea edx, [ebp + 0x20]
push edx
push 0x101
lea ecx, [ebp + 0x24]
push ecx
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 edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4383db
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 0x4383fe
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 0x438421
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 0x102
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 0x438495
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 0x4384b8
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 0x4384db
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 0x438566
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 0x438589
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 0x4385ac
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 0x4385cf
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 0x4385f2
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 0x43861a
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