Function at 0x476220
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4bb208
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [0x58f8c8]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push eax
push 0
lea ecx, [esp + 0x28]
call fcn.0044f770
lea ecx, [esp + 0x20]
mov dword [esp + 0x6c], 0
push ecx
mov ecx, dword [esp + 0x78]
call fcn.0044fbe0
or edi, 0xffffffff
lea ecx, [esp + 0x20]
mov dword [esp + 0x6c], edi
call fcn.0044fa10
push 0
push edi
push 0x577bb8
lea ecx, [esp + 0x80]
call fcn.0044d050
lea esi, [ebp + 8]
lea edx, [esp + 0x74]
push 0
push edx
mov ecx, esi
mov dword [esp + 0x74], 1
call fcn.0044d890
cmp eax, edi
lea ecx, [esp + 0x74]
setne bl
mov dword [esp + 0x6c], edi
call fcn.0044d0c0
test bl, bl
je 0x4762c5
push str.VanDyke
lea ecx, [ebp + 4]
call fcn.0044d160
push 0
lea ecx, [esp + 0x14]
call fcn.0044cf20
lea ecx, [ebp + 0x10]
mov dword [esp + 0x6c], 2
call fcn.0044c8e0
push eax
mov ecx, esi
call fcn.0044c8e0
push eax
lea ecx, [ebp + 4]
call fcn.0044c8e0
push eax
lea eax, [esp + 0x1c]
push str.Software_1_2_3
push eax
call fcn.0044da40
mov eax, dword [ebp + 0x30]
lea esi, [ebp + 0x30]
add esp, 0x14
test eax, eax
je 0x47631b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi], 0
lea ecx, [esp + 0x10]
call fcn.0044c8e0
lea ecx, [esp + 0x74]
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0
push 2
push 0
push 0x58f110
push 0
push eax
push reloc.WS2_32.dll_bind
call esi
test eax, eax
je 0x4763ab
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push eax
push str.RegCreateKey_HKEY_LOCAL_MACHINE__failed__error__1_d__n
call fcn.0046d7a0
add esp, 8
lea ecx, [esp + 0x10]
call fcn.0044c8e0
lea edx, [esp + 0x74]
lea ecx, [ebp + 0x30]
push edx
push ecx
push 0
push 2
push 0
push 0x58f110
push 0
push eax
push getpeername
call esi
test eax, eax
je 0x4763ab
push eax
call edi
call ebx
push eax
push str.RegCreateKey_HKEY_CURRENT_USER__failed__error__1_d__n
call fcn.0046d7a0
add esp, 8
jmp 0x476516
push 0
push 0xffffffffffffffff
push str.Version
lea ecx, [esp + 0x80]
call fcn.0044d050
mov esi, dword [ebp]
lea ecx, [ebp + 0xc]
mov byte [esp + 0x6c], 3
call fcn.0044c8e0
push eax
lea eax, [esp + 0x78]
push eax
mov ecx, ebp
call dword [esi + 0x20]
lea ecx, [esp + 0x74]
mov byte [esp + 0x6c], 2
call fcn.0044d0c0
xor esi, esi
lea ecx, [esp + 0x14]
push esi
or edi, 0xffffffff
call fcn.0044cf20
push esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x70], 4
call fcn.0044cf20
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov byte [esp + 0x6c], 5
test esi, esi
je 0x47641d
mov esi, dword [esi + 8]
test esi, esi
jne 0x476453
mov ecx, dword [ebp + 0x18]
inc edi
cmp edi, ecx
jge 0x4764fa
test edi, edi
jl 0x4764bd
cmp edi, ecx
jge 0x4764bd
mov edx, dword [ebp + 0x1c]
mov esi, dword [edx + edi*4]
lea eax, [edx + edi*4]
test esi, esi
jne 0x476453
inc edi
cmp edi, ecx
jl 0x476429
test esi, esi
je 0x4764fa
push esi
lea ecx, [esp + 0x18]
call fcn.0044c2f0
lea eax, [esi + 4]
lea ecx, [esp + 0x1c]
push eax
call fcn.0044c2f0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0044c050
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 6
call fcn.0044d8d0
inc eax
lea ecx, [esp + 0x18]
push eax
call fcn.0044c8e0
push eax
push 1
push 0
lea ecx, [esp + 0x24]
call fcn.0044c8e0
mov edx, dword [ebp + 0x30]
push eax
push edx
call ebx
test eax, eax
jne 0x4764d4
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 5
call fcn.0044d0c0
jmp 0x476412
mov al, byte [esp + 0x74]
lea ecx, [esp + 0x74]
push 0x562698
push ecx
mov byte [esp + 0x7c], al
call sub.MSVCRT.dll__CxxThrowException
push eax
lea ecx, [esp + 0x18]
call fcn.0044c8e0
push eax
push str.RegSetValueEx__1__failed__error__2_d__n
call fcn.0046d7a0
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 5
call fcn.0044d0c0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 4
call fcn.0044d0c0
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 2
call fcn.0044d0c0
lea ecx, [esp + 0x10]
mov dword [esp + 0x6c], 0xffffffff
call fcn.0044d0c0
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 4