Function at 0x45a2b0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x584
push ebx
mov ebx, dword [esp + 0x58c]
push ebp
push esi
push edi
push ebx
call fcn.00483565
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x294]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x45a31d
lea esi, [esp + ecx + 0x294]
mov dl, byte [esi]
cmp dl, 0x5c
mov byte [esp + eax + 0x14], dl
jne 0x45a317
cmp eax, 2
jge 0x45a31d
inc eax
dec esi
cmp eax, ecx
jl 0x45a307
sub ecx, eax
mov edx, ecx
test edx, edx
jle 0x45a341
mov ebx, ecx
lea esi, [esp + 0x294]
lea edi, [esp + 0x494]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
mov byte [esp + edx + 0x494], 0
test eax, eax
jle 0x45a36e
lea esi, [esp + edx + 0x295]
mov dl, byte [esi + ecx]
cmp dl, 0x5c
je 0x45a364
mov byte [esp + ecx + 0x14], dl
jne 0x45a369
mov byte [esp + ecx + 0x14], 0
inc ecx
cmp ecx, eax
jl 0x45a356
mov byte [esp + eax + 0x14], 0
lea edi, [esp + 0x494]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x294]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x294]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
xor esi, esi
test ecx, ecx
jle 0x45a3d3
mov dl, byte [esp + eax + 0x294]
cmp dl, 0x5c
mov byte [esp + eax + 0x114], dl
jne 0x45a3c9
inc esi
cmp esi, 3
je 0x45a3d3
inc eax
cmp eax, ecx
jl 0x45a3b5
mov byte [esp + eax + 0x114], 0
inc eax
xor ecx, ecx
lea edx, [esp + eax + 0x294]
mov al, byte [esp + eax + 0x294]
test al, al
je 0x45a3ff
inc edx
mov byte [esp + ecx + 0x194], al
inc ecx
mov al, byte [edx]
test al, al
jne 0x45a3f0
mov byte [esp + ecx + 0x194], 0
lea ecx, [esp + 0x114]
push str.REGISTRYUSER
push ecx
call fcn.0047fde0
mov esi, dword [esp + 0x5a4]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 8
test eax, eax
jne 0x45a49a
lea edx, [esp + 0x10]
lea eax, [esp + 0x194]
push edx
push 0xf003f
push 0
push eax
push reloc.WS2_32.dll_closesocket
call ebx
test eax, eax
jne 0x45a49a
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x10]
not ecx
dec ecx
push ecx
push esi
push 1
lea ecx, [esp + 0x20]
push eax
push ecx
push edx
call ebp
lea eax, [esp + 0x14]
push str.default
push eax
call fcn.0047fde0
add esp, 8
test eax, eax
jne 0x45a49a
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x14]
push esi
push 1
push eax
push eax
push ecx
call ebp
mov edi, str.REGISTRYMACHINE
lea eax, [esp + 0x114]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x45a4ca
test cl, cl
je 0x45a4c6
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x45a4ca
add eax, 2
add edi, 2
test cl, cl
jne 0x45a4a6
xor eax, eax
jmp 0x45a4cf
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x45a53a
lea eax, [esp + 0x10]
lea ecx, [esp + 0x194]
push eax
push 0xf003f
push 0
push ecx
push closesocket
call ebx
test eax, eax
jne 0x45a53a
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x14]
push ecx
push esi
push 1
push eax
mov eax, dword [esp + 0x20]
push edx
push eax
call ebp
lea ecx, [esp + 0x14]
push str.default
push ecx
call fcn.0047fde0
add esp, 8
test eax, eax
jne 0x45a53a
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x10]
not ecx
dec ecx
push ecx
push esi
push 1
push eax
push eax
push edx
call ebp
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov ax, 1
pop ebx
add esp, 0x584
ret