Function at 0x4058b0
Capabilities:
Create registry key via stdregprov

Disassembly:
push 0xffffffffffffffff
push 0x57483a
mov eax, dword fs:[0]
push eax
sub esp, 0x64
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 + 0x78]
mov dword fs:[0], eax
mov esi, ecx
xor ebp, ebp
cmp dword [esi + 0xc], ebp
je 0x405bfa
cmp dword [esi], ebp
je 0x405bfa
cmp dword [esi + 4], ebp
je 0x405bfa
cmp dword [esi + 8], ebp
je 0x405bfa
cmp dword [esi + 0x28], ebp
je 0x405c22
cmp dword [esi + 0x44], ebp
je 0x405c22
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], ebp
call fcn.00405c30
cmp eax, ebp
jl 0x405bff
cmp dword [esp + 0x20], ebp
je 0x40593f
lea eax, [ebp + 1]
jmp 0x405bff
lea ecx, [esp + 0x20]
push ecx
mov edi, str.CreateKey
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
call fcn.00404c90
mov dword [esp + 0x80], ebp
mov eax, dword [eax]
cmp eax, ebp
je 0x405967
mov ecx, dword [eax]
jmp 0x405969
xor ecx, ecx
mov eax, dword [esi]
mov edx, dword [eax]
push ebp
lea edi, [esp + 0x20]
push edi
push ebp
push ecx
push eax
mov eax, dword [edx + 0x4c]
call eax
lea edi, [esp + 0x20]
mov ebx, eax
mov dword [esp + 0x80], 0xffffffff
call fcn.00404d30
cmp ebx, ebp
jl 0x405c1e
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x405bfa
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push ebp
push eax
mov eax, dword [ecx + 0x3c]
call eax
mov edi, eax
cmp edi, ebp
jl 0x405bdc
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x405bdc
push ebp
lea edx, [esp + 0x30]
push edx
push ebp
mov word [esp + 0x38], 3
mov dword [esp + 0x40], 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 0x405a2d
lea ecx, [esp + 0x18]
test ecx, ecx
je 0x405a0e
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x405a0e
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x18], ebp
lea ecx, [esp + 0x1c]
test ecx, ecx
je 0x405a26
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x405a26
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, edi
jmp 0x405bff
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 ebx, 8
mov dword [esp + 0x80], 1
cmp dword [esi + 0x2c], ebx
jb 0x405a60
mov ecx, dword [esi + 0x18]
jmp 0x405a63
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 + 0x80], 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], ebx
mov eax, dword [esp + 0x5c]
mov word [esp + 0x2c], bx
jae 0x405a94
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push ebp
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push ebp
push 0x5c3a98
push eax
mov eax, dword [ecx + 0x14]
call eax
mov edi, eax
cmp edi, ebp
jge 0x405b11
lea ecx, [esp + 0x18]
test ecx, ecx
je 0x405ad9
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x405ad9
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x18], ebp
lea ecx, [esp + 0x1c]
test ecx, ecx
je 0x405af5
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x405af5
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x1c], ebp
lea ecx, [esp + 0x58]
mov dword [esp + 0x80], 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 0x405bff
lea ecx, [esp + 0x28]
push ecx
mov edi, str.CreateKey
call fcn.00404c90
mov ebx, eax
lea edx, [esp + 0x24]
push edx
mov edi, str.StdRegProv
mov byte [esp + 0x84], 4
call fcn.00404c90
mov byte [esp + 0x80], 5
mov ecx, dword [ebx]
cmp ecx, ebp
je 0x405b4b
mov ecx, dword [ecx]
jmp 0x405b4d
xor ecx, ecx
mov eax, dword [eax]
cmp eax, ebp
je 0x405b57
mov edx, dword [eax]
jmp 0x405b59
xor edx, edx
mov edi, dword [esp + 0x18]
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 + 0x24]
mov esi, eax
call fcn.00404d30
lea edi, [esp + 0x28]
mov byte [esp + 0x80], 3
call fcn.00404d30
lea ecx, [esp + 0x18]
test ecx, ecx
je 0x405ba7
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x405ba7
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x18], ebp
lea ecx, [esp + 0x1c]
test ecx, ecx
je 0x405bc3
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x405bc3
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x1c], ebp
lea ecx, [esp + 0x58]
mov dword [esp + 0x80], 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 0x405bff
lea ecx, [esp + 0x1c]
test ecx, ecx
je 0x405bf4
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x405bf4
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
cmp edi, ebp
mov eax, edi
jl 0x405bff
mov eax, 0x80004005
mov ecx, dword [esp + 0x78]
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, 0x70
ret
mov eax, ebx
jmp 0x405bff
mov eax, 0x80070057
jmp 0x405bff