Function at 0x4102e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412f76
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x250], ecx
mov dword [ebp - 4], 0
mov byte [ebp - 0x231], 1
lea ecx, [ebp - 0x230]
call fcn.00410870
mov byte [ebp - 4], 1
mov dword [ebp - 0x23c], 0
jmp 0x410349
mov eax, dword [ebp - 0x23c]
add eax, 1
mov dword [ebp - 0x23c], eax
lea ecx, [ebp + 0x14]
call fcn.00406970
cmp dword [ebp - 0x23c], eax
jae 0x41037d
mov ecx, dword [ebp - 0x23c]
push ecx
lea ecx, [ebp + 0x14]
call fcn.00405310
movsx dx, byte [eax]
movzx eax, dx
push eax
lea ecx, [ebp - 0x230]
call fcn.00410aa0
jmp 0x41033a
mov dword [ebp - 0x240], 0
jmp 0x410398
mov ecx, dword [ebp - 0x240]
add ecx, 1
mov dword [ebp - 0x240], ecx
cmp dword [ebp - 0x240], 0x104
jge 0x4103d7
mov edx, dword [ebp - 0x240]
shl edx, 1
mov dword [ebp - 0x244], edx
cmp dword [ebp - 0x244], 0x208
jae 0x4103c0
jmp 0x4103c5
call fcn.0041161e
xor eax, eax
mov ecx, dword [ebp - 0x244]
mov word [ebp + ecx - 0x218], ax
jmp 0x410389
mov dword [ebp - 0x238], 0
jmp 0x4103f2
mov edx, dword [ebp - 0x238]
add edx, 1
mov dword [ebp - 0x238], edx
lea ecx, [ebp - 0x230]
call fcn.00410bf0
cmp dword [ebp - 0x238], eax
jae 0x41042a
mov eax, dword [ebp - 0x238]
push eax
lea ecx, [ebp - 0x230]
call fcn.00410a60
mov ecx, dword [ebp - 0x238]
mov dx, word [eax]
mov word [ebp + ecx*2 - 0x218], dx
jmp 0x4103e3
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x250]
call fcn.0040fbe0
mov dword [ebp - 0x24c], eax
push 0x104
lea edx, [ebp - 0x218]
push edx
push 1
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x24c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0
je 0x4104d3
mov edx, dword [ebp + 0x10]
push edx
push 0x415c10
mov eax, dword [ebp + 0xc]
push eax
push 0x415c30
mov ecx, dword [ebp - 0x248]
push ecx
push str.Set_Registry_Key__String____Result_:_Failed___Reason_:_Can_not_set_registry___Error_:
mov edx, dword [sym.imp.MSVCP120.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___std::wcout]
push edx
call fcn.00410530
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int______thiscall_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int__::operator___long_int_]
push eax
call fcn.00410530
add esp, 8
push eax
call fcn.00410530
add esp, 8
push eax
call fcn.00410530
add esp, 8
push eax
call fcn.00410530
add esp, 8
mov byte [ebp - 0x231], 0
mov eax, dword [ebp - 0x24c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov cl, byte [ebp - 0x231]
mov byte [ebp - 0x232], cl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.0040d720
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.00404f80
mov al, byte [ebp - 0x232]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004113d0
mov esp, ebp
pop ebp
ret 0x24