Function at 0x473c10
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x5a8bb8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
xor ebp, ebp
mov esi, ecx
mov edi, edx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x60], ebp
call fcn.00472c20
test eax, eax
jne 0x473ce1
call fcn.00472cc0
test eax, eax
jne 0x473ce1
lea eax, [esp + 0x14]
push eax
push 0x2001f
push ebp
push esi
push closesocket
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x473c8b
mov esi, dword [esp + 0x14]
jmp 0x473ca8
push esi
push closesocket
xor edx, edx
lea esi, [esp + 0x20]
call fcn.0040cb60
test eax, eax
jne 0x473dc9
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x68]
push 4
lea edx, [esp + 0x18]
push edx
push 4
push ebp
push edi
push esi
mov dword [esp + 0x2c], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
je 0x473cd3
push esi
call ebx
xor esi, esi
xor eax, eax
cmp edi, ebp
sete al
mov edi, eax
jmp 0x473e39
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebp
mov word [esp + 0x3c], bp
mov ebx, 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x60], bl
call fcn.00472d40
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0x68], 2
call fcn.0040b6f0
mov byte [esp + 0x60], bl
cmp dword [esp + 0x34], 8
jb 0x473d2d
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00578327
add esp, 4
push ebx
push 0x5bd0e8
lea ecx, [esp + 0x40]
call fcn.0040f950
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x473d41
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x40]
call fcn.0040f950
mov eax, dword [esp + 0x3c]
mov ebx, 8
cmp dword [esp + 0x50], ebx
jae 0x473d6e
lea eax, [esp + 0x3c]
lea edx, [esp + 0x14]
push edx
push 0x2001f
push ebp
push eax
push reloc.WS2_32.dll_closesocket
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x473d93
mov esi, dword [esp + 0x14]
jmp 0x473de0
cmp dword [esp + 0x50], ebx
mov eax, dword [esp + 0x3c]
jae 0x473da1
lea eax, [esp + 0x3c]
push eax
push reloc.WS2_32.dll_closesocket
xor edx, edx
lea esi, [esp + 0x20]
call fcn.0040cb60
test eax, eax
je 0x473ddc
cmp dword [esp + 0x50], ebx
jb 0x473dc9
mov eax, dword [esp + 0x3c]
push eax
call fcn.00578327
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x473dd8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x473e42
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x68]
push 4
lea edx, [esp + 0x18]
push edx
push 4
push ebp
push edi
push esi
mov dword [esp + 0x2c], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
je 0x473e0b
push esi
call ebx
xor esi, esi
xor eax, eax
cmp edi, ebp
sete al
cmp dword [esp + 0x50], 8
mov edi, eax
jb 0x473e28
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00578327
add esp, 4
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebp
mov word [esp + 0x3c], bp
cmp esi, ebp
je 0x473e40
push esi
call ebx
mov eax, edi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.005787fd
add esp, 0x50
ret