Function at 0x479d80
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x604f48
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
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.00478e90
test eax, eax
jne 0x479e51
call fcn.00478f30
test eax, eax
jne 0x479e51
lea eax, [esp + 0x14]
push eax
push 0x2001f
push ebp
push esi
push SysReAllocStringLen
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x479dfb
mov esi, dword [esp + 0x14]
jmp 0x479e18
push esi
push SysReAllocStringLen
xor edx, edx
lea esi, [esp + 0x20]
call fcn.00406220
test eax, eax
jne 0x479f39
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 0x479e43
push esi
call ebx
xor esi, esi
xor eax, eax
cmp edi, ebp
sete al
mov edi, eax
jmp 0x479fa9
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.00478fb0
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0x68], 2
call fcn.00404ae0
mov byte [esp + 0x60], bl
cmp dword [esp + 0x34], 8
jb 0x479e9d
mov ecx, dword [esp + 0x20]
push ecx
call fcn.005d2367
add esp, 4
push ebx
push 0x62454c
lea ecx, [esp + 0x40]
call fcn.0040a070
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x479eb1
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x40]
call fcn.0040a070
mov eax, dword [esp + 0x3c]
mov ebx, 8
cmp dword [esp + 0x50], ebx
jae 0x479ede
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 0x479f03
mov esi, dword [esp + 0x14]
jmp 0x479f50
cmp dword [esp + 0x50], ebx
mov eax, dword [esp + 0x3c]
jae 0x479f11
lea eax, [esp + 0x3c]
push eax
push reloc.WS2_32.dll_closesocket
xor edx, edx
lea esi, [esp + 0x20]
call fcn.00406220
test eax, eax
je 0x479f4c
cmp dword [esp + 0x50], ebx
jb 0x479f39
mov eax, dword [esp + 0x3c]
push eax
call fcn.005d2367
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x479f48
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x479fb2
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 0x479f7b
push esi
call ebx
xor esi, esi
xor eax, eax
cmp edi, ebp
sete al
cmp dword [esp + 0x50], 8
mov edi, eax
jb 0x479f98
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.005d2367
add esp, 4
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebp
mov word [esp + 0x3c], bp
cmp esi, ebp
je 0x479fb0
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.005d28b3
add esp, 0x50
ret