Function at 0x4afbb0
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x617cb6
push eax
mov dword fs:[0], esp
sub esp, 0x438
lea eax, [esp + 0x10]
push ebx
push esi
mov esi, ecx
push eax
lea ecx, [esp + 0x14]
xor ebx, ebx
push ecx
push ebx
push 0xf003f
push ebx
push 0x6ec0c8
push ebx
push 0x6c45fc
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4afc47
lea ecx, [esp + 0x20]
call fcn.004ab420
push 1
push 0x6c466c
lea ecx, [esp + 0x28]
mov dword [esp + 0x450], ebx
call fcn.004ab540
lea ecx, [esp + 0x20]
mov dword [esp + 0x448], 0xffffffff
call fcn.004ab530
pop esi
pop ebx
mov ecx, dword [esp + 0x438]
mov dword fs:[0], ecx
add esp, 0x444
ret
mov eax, dword [esi + 8]
mov dword [esp + 8], ebx
cmp eax, ebx
mov dword [esp + 0x14], ebx
jle 0x4afdef
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
mov edx, dword [esi + 4]
or ecx, 0xffffffff
add edx, ebx
mov edi, dword [edx + 8]
lea eax, [edx + 8]
mov dword [esp + 0x24], eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x4afc8a
mov ecx, dword [esp + 0x24]
add edx, 4
push edx
call fcn.005fa992
mov eax, dword [esi + 4]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
push ecx
mov eax, dword [eax + ebx + 8]
push edx
push 0
push 0xf003f
push 0
push 0x6ec0c8
push 0
push eax
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4afd01
lea ecx, [esp + 0x238]
call fcn.004ab420
push 1
push 0x6c4624
lea ecx, [esp + 0x240]
mov dword [esp + 0x458], 1
call fcn.004ab540
lea ecx, [esp + 0x238]
mov dword [esp + 0x450], 0xffffffff
call fcn.004ab530
jmp 0x4afdc7
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x10]
add ecx, ebx
push 4
push ecx
push 4
push 0
push 0x6c4478
push edx
call ebp
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x10]
mov eax, dword [eax + ebx + 0xc]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
push 1
push 0
push 0x6c4484
push edx
call ebp
mov eax, dword [esi + 4]
lea edi, [eax + ebx]
mov eax, dword [eax + ebx + 0x10]
push eax
call fcn.005de123
mov edx, dword [edi + 0x10]
add esp, 4
lea ecx, [eax + eax + 2]
mov eax, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
push 0x6c447c
push eax
call ebp
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
xor edx, edx
push 4
mov dl, byte [ecx + ebx + 0x14]
mov ecx, dword [esp + 0x14]
push eax
push 4
push 0
push 0x6c4464
push ecx
mov dword [esp + 0x2c], edx
call ebp
mov edx, dword [esi + 4]
lea ecx, [esp + 0x14]
xor eax, eax
push 4
mov al, byte [edx + ebx + 0x15]
mov edx, dword [esp + 0x14]
push ecx
push 4
push 0
push 0x6c4458
push edx
mov dword [esp + 0x2c], eax
call ebp
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x10]
mov eax, dword [eax + ebx + 0x18]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
push 1
push 0
push 0x6c4450
push edx
call ebp
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 8]
inc eax
add ebx, 0x1c
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x4afc62
mov eax, dword [esp + 0x10]
pop edi
test eax, eax
pop ebp
je 0x4afdef
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x440]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x444
ret