Function at 0x404f00
Capabilities:
Set registry value via stdregprov

Disassembly:
push 0xffffffffffffffff
push 0x5748ca
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x5d2020]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d2020]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x8c]
mov esi, edx
xor ebp, ebp
cmp dword [esi + 0xc], ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
je 0x405342
cmp dword [esi], ebp
je 0x405342
cmp dword [esi + 4], ebp
je 0x405342
cmp dword [esi + 8], ebp
je 0x405342
cmp dword [esi + 0x28], ebp
je 0x405368
cmp dword [esi + 0x44], ebp
je 0x405368
cmp eax, ebp
je 0x405368
cmp ecx, ebp
je 0x405368
lea eax, [esp + 0x38]
push eax
mov edi, str.SetStringValue
mov dword [esp + 0x1c], ebp
call fcn.00404c90
mov dword [esp + 0x84], ebp
mov eax, dword [eax]
cmp eax, ebp
je 0x404fae
mov ecx, dword [eax]
jmp 0x404fb0
xor ecx, ecx
mov eax, dword [esi]
mov edx, dword [eax]
push ebp
lea edi, [esp + 0x1c]
push edi
push ebp
push ecx
push eax
mov eax, dword [edx + 0x4c]
call eax
lea edi, [esp + 0x38]
mov ebx, eax
mov dword [esp + 0x84], 0xffffffff
call fcn.00404d30
cmp ebx, ebp
jl 0x405161
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x405342
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], ebp
mov ecx, dword [eax]
push ebp
push eax
mov eax, dword [ecx + 0x3c]
call eax
mov edi, eax
cmp edi, ebp
jl 0x405324
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x405324
push ebp
lea edx, [esp + 0x28]
push edx
push ebp
mov word [esp + 0x30], 3
mov dword [esp + 0x38], reloc.WS2_32.dll_closesocket
mov ecx, dword [eax]
push str.hDefKey
push eax
mov eax, dword [ecx + 0x14]
call eax
mov edi, eax
cmp edi, ebp
jge 0x405078
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x405059
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x405059
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x14], ebp
lea ecx, [esp + 0x18]
test ecx, ecx
je 0x405071
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x405071
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, edi
jmp 0x405347
mov edi, dword [sym.imp.MSVCP80.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
push 0x5c3a94
lea ecx, [esi + 0x30]
push ecx
lea edx, [esp + 0x44]
push edx
call edi
add esp, 0xc
mov ebp, 8
mov dword [esp + 0x84], 1
cmp dword [esi + 0x2c], ebp
jb 0x4050ab
mov ecx, dword [esi + 0x18]
jmp 0x4050ae
lea ecx, [esi + 0x18]
push ecx
push eax
lea eax, [esp + 0x60]
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x3c]
mov byte [esp + 0x84], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp dword [esp + 0x70], ebp
mov eax, dword [esp + 0x5c]
mov word [esp + 0x24], bp
jae 0x4050df
lea eax, [esp + 0x5c]
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push eax
call edi
push 0
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push 0
push 0x5c3a98
push eax
mov eax, dword [ecx + 0x14]
call eax
mov ebx, eax
test ebx, ebx
jge 0x405168
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x40512c
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40512c
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x14], 0
lea ecx, [esp + 0x18]
test ecx, ecx
je 0x40514c
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40514c
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x18], 0
lea ecx, [esp + 0x58]
mov dword [esp + 0x84], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, ebx
jmp 0x405347
mov ecx, dword [esp + 0x1c]
push ecx
mov word [esp + 0x28], bp
call edi
push 0
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push 0
push str.sValueName
push eax
call edx
mov ebx, eax
test ebx, ebx
jge 0x4051d5
lea eax, [esp + 0x14]
test eax, eax
je 0x4051b8
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4051b8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], 0
lea eax, [esp + 0x18]
test eax, eax
je 0x40514c
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40514c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x405144
mov eax, dword [esp + 0x20]
push eax
mov word [esp + 0x28], bp
call edi
xor ebp, ebp
push ebp
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push ebp
push str.sValue
push eax
mov eax, dword [ecx + 0x14]
call eax
mov edi, eax
cmp edi, ebp
jge 0x405259
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x405221
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x405221
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x14], ebp
lea ecx, [esp + 0x18]
test ecx, ecx
je 0x40523d
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x40523d
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x18], ebp
lea ecx, [esp + 0x58]
mov dword [esp + 0x84], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, edi
jmp 0x405347
lea ecx, [esp + 0x1c]
push ecx
mov edi, str.SetStringValue
call fcn.00404c90
mov ebx, eax
lea edx, [esp + 0x20]
push edx
mov edi, str.StdRegProv
mov byte [esp + 0x88], 4
call fcn.00404c90
mov byte [esp + 0x84], 5
mov ecx, dword [ebx]
cmp ecx, ebp
je 0x405293
mov ecx, dword [ecx]
jmp 0x405295
xor ecx, ecx
mov eax, dword [eax]
cmp eax, ebp
je 0x40529f
mov edx, dword [eax]
jmp 0x4052a1
xor edx, edx
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 4]
mov esi, dword [eax]
push ebp
push ebp
push edi
push ebp
push ebp
push ecx
push edx
push eax
mov eax, dword [esi + 0x60]
call eax
lea edi, [esp + 0x20]
mov esi, eax
call fcn.00404d30
lea edi, [esp + 0x1c]
mov byte [esp + 0x84], 3
call fcn.00404d30
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x4052ef
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4052ef
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x14], ebp
lea ecx, [esp + 0x18]
test ecx, ecx
je 0x40530b
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x40530b
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x18], ebp
lea ecx, [esp + 0x58]
mov dword [esp + 0x84], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
jmp 0x405347
lea ecx, [esp + 0x18]
test ecx, ecx
je 0x40533c
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x40533c
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
cmp edi, ebp
mov eax, edi
jl 0x405347
mov eax, 0x80004005
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0044e502
add esp, 0x74
ret 4
mov eax, 0x80070057
jmp 0x405347