Function at 0x4070f0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x44a5a0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x45e560]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45e560]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
test byte [0x462c40], 1
mov ebp, dword [esp + 0x58]
mov esi, ecx
mov edi, edx
jne 0x40714c
or dword [0x462c40], 1
call fcn.00407030
push 0x44ac20
call fcn.0042e2f4
add esp, 4
cmp byte [0x462aa4], 1
jne 0x4071a2
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], str..Registry.cpp
call fcn.00403b40
mov eax, dword [eax]
xor ebx, ebx
mov dword [esp + 0x18], eax
cmp eax, ebx
jne 0x407187
lea ebx, [esp + 0x18]
mov ecx, str..Registry.cpp
call fcn.004031c0
mov eax, dword [esp + 0x18]
xor ebx, ebx
cmp eax, 0xffffffff
je 0x4071a4
cmp eax, 5
jl 0x4071a4
push 5
push str.Registry::WriteRegValue_Enter
call fcn.00403540
add esp, 8
jmp 0x4071a4
xor ebx, ebx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
push 0x20006
push ebx
push ebx
push ebx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
cmp esi, ebx
je 0x407262
mov al, byte [0x462aa4]
cmp al, bl
je 0x40725b
mov dword [esp + 0x18], str..Registry.cpp
cmp al, 1
jne 0x40725b
lea eax, [esp + 0x18]
push eax
call fcn.00403b40
mov eax, dword [eax]
mov dword [esp + 0x18], eax
cmp eax, ebx
jne 0x40720e
lea ebx, [esp + 0x18]
mov ecx, str..Registry.cpp
call fcn.004031c0
mov eax, dword [esp + 0x18]
xor ebx, ebx
cmp eax, 5
jl 0x40725b
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
push esi
push str.Registry::WriteRegValue_RegCreateKeyEx_Failed.__Error___d
lea edx, [esp + 0x2c]
mov dword [esp + 0x54], ebx
call fcn.00402410
add esp, 8
mov edi, 5
lea eax, [esp + 0x24]
call fcn.00403750
cmp dword [esp + 0x3c], 0x10
jb 0x40725b
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0040e8c6
add esp, 4
xor al, al
jmp 0x407316
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x1c]
push edx
push ebp
push eax
push ebx
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
cmp edi, ebx
je 0x4072f2
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
mov esi, str..Registry.cpp
call fcn.004029e0
add esp, 4
test al, al
je 0x40725b
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
push edi
push str.Registry::WriteRegValue_RegSetValueEx_Failed.__Error___d
lea edx, [esp + 0x2c]
mov dword [esp + 0x54], 1
call fcn.00402410
add esp, 8
mov edi, 3
lea eax, [esp + 0x24]
call fcn.00403750
cmp dword [esp + 0x3c], 0x10
jb 0x40725b
mov eax, dword [esp + 0x28]
push eax
call fcn.0040e8c6
add esp, 4
xor al, al
jmp 0x407316
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.Registry::WriteRegValue_Exit
mov edi, 5
mov esi, str..Registry.cpp
call fcn.00403700
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0042d9c5
add esp, 0x3c
ret