Function at 0x41583c
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0x74
mov eax, 0x49a870
call fcn.0043525d
mov dword [ebp - 0x80], edx
mov edi, ecx
mov dword [ebp - 0x7c], edi
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x64], eax
xor eax, eax
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], eax
call fcn.00401ece
lea edx, [ebp - 0x28]
mov ecx, eax
call fcn.0041674f
mov bl, al
lea ecx, [ebp - 0x40]
push 0
neg bl
push 1
sbb bl, bl
call fcn.00401450
add bl, 1
je 0x4158a2
push 3
pop esi
jmp 0x415a6b
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
lea edx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x18]
add eax, ecx
cmp dword [ebp - 0x14], 0x10
mov ecx, eax
cmovae edx, dword [ebp - 0x28]
xor ebx, ebx
and dword [ebp - 0x60], ebx
sub ecx, edx
cmp edx, eax
cmova ecx, dword [ebp - 0x60]
test ecx, ecx
je 0x4158fa
mov esi, ecx
mov edi, edx
movsx eax, byte [ebx + edi]
push eax
call fcn.0043e9b0
pop ecx
mov ecx, dword [ebp - 0x74]
mov byte [ebx + ecx], al
inc ebx
cmp ebx, esi
jne 0x4158de
mov esi, dword [ebp - 0x78]
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x64]
xor ebx, ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x6c], 3
cmp dword [eax + 0x14], 8
jb 0x415911
mov eax, dword [eax]
push 0xf003f
push eax
push reloc.WS2_32.dll_accept
lea ecx, [ebp - 0x68]
call fcn.00416cb6
mov byte [ebp - 4], 1
cmp dword [edi + 0x14], 8
jb 0x415932
mov eax, dword [edi]
jmp 0x415934
mov eax, edi
lea ecx, [ebp - 0x5c]
push ecx
push ebx
lea ecx, [ebp - 0x6c]
push ecx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push dword [ebp - 0x68]
call ebx
test eax, eax
jne 0x4159c0
push eax
push dword [ebp - 0x5c]
mov ecx, esi
call fcn.0040210d
cmp dword [esi + 0x14], 0x10
jb 0x415963
mov ecx, dword [esi]
jmp 0x415965
mov ecx, esi
cmp dword [edi + 0x14], 8
jb 0x41596f
mov eax, dword [edi]
jmp 0x415971
mov eax, edi
lea edx, [ebp - 0x5c]
push edx
push ecx
lea ecx, [ebp - 0x6c]
push ecx
push 0
push eax
push dword [ebp - 0x68]
call ebx
cmp dword [esi + 0x14], 0x10
jb 0x41598c
mov edx, dword [esi]
jmp 0x41598e
mov edx, esi
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x40]
call fcn.00418392
pop ecx
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0040f079
push 0
push 1
lea ecx, [ebp - 0x40]
mov bl, al
call fcn.00401450
test bl, bl
setne al
test al, al
je 0x415a61
push 0
push 0
mov ecx, esi
call fcn.0040210d
mov edx, dword [ebp - 0x80]
lea ecx, [ebp - 0x58]
call fcn.00401ece
mov edx, esi
mov ecx, eax
call fcn.0041674f
mov bl, al
lea ecx, [ebp - 0x58]
push 0
neg bl
push 1
sbb bl, bl
call fcn.00401450
add bl, 1
je 0x4159fa
push 2
jmp 0x415a2f
cmp dword [esi + 0x14], 0x10
jb 0x415a04
mov edx, dword [esi]
jmp 0x415a06
mov edx, esi
push dword [esi + 0x10]
lea ecx, [ebp - 0x40]
call fcn.00418392
pop ecx
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0040f079
test al, al
je 0x415a32
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00401450
push 4
pop esi
jmp 0x415a63
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x415a3d
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x415a45
mov edi, dword [edi]
push eax
push esi
push 3
push 0
push edi
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00401450
xor esi, esi
lea ecx, [ebp - 0x68]
call fcn.00416da9
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00401450
mov eax, esi
call fcn.00435207
ret