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

Disassembly:
push 0x64
mov eax, 0x51d90e
call fcn.004ac5bf
mov dword [ebp - 0x6c], edx
mov ebx, ecx
mov dword [ebp - 0x70], ebx
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
call fcn.00414c63
xor eax, eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
add eax, ecx
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push fcn.004f2e07
cmovae ecx, dword [ebp - 0x28]
push edx
push eax
push ecx
lea eax, [ebp - 0x60]
push eax
call fcn.004083c0
xor ecx, ecx
mov dword [ebp - 0x68], 3
add esp, 0x14
mov dword [ebp - 0x5c], ecx
mov ecx, esi
call fcn.00407590
push 0xf003f
push eax
xor esi, esi
lea ecx, [ebp - 0x64]
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], esi
call fcn.0042249d
xor eax, eax
mov ecx, ebx
inc eax
mov byte [ebp - 4], al
call fcn.00407590
lea ecx, [ebp - 0x5c]
push ecx
push esi
lea ecx, [ebp - 0x68]
push ecx
push esi
push eax
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x415f81
push esi
push dword [ebp - 0x5c]
mov ecx, edi
call fcn.00404b61
cmp dword [edi + 0x14], 0x10
jb 0x415f06
mov esi, dword [edi]
jmp 0x415f08
mov esi, edi
mov ecx, ebx
call fcn.00407590
lea ecx, [ebp - 0x5c]
push ecx
push esi
lea ecx, [ebp - 0x68]
push ecx
xor ecx, ecx
push ecx
push eax
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [edi + 0x14], 0x10
jb 0x415f2f
mov edx, dword [edi]
jmp 0x415f31
mov edx, edi
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x40]
call fcn.0042346d
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 0x10
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
xor ecx, ecx
test eax, eax
push 1
pop eax
push ecx
movzx ebx, cl
lea ecx, [ebp - 0x40]
push eax
cmove ebx, eax
mov byte [ebp - 4], al
call fcn.004049c9
test bl, bl
je 0x416042
xor eax, eax
mov ecx, edi
push eax
push eax
call fcn.00404b61
mov edx, dword [ebp - 0x6c]
lea ecx, [ebp - 0x58]
call fcn.00414c63
mov edx, edi
mov byte [ebp - 4], 3
mov ecx, eax
call fcn.00423543
mov bl, al
mov byte [ebp - 4], 1
neg bl
lea ecx, [ebp - 0x58]
sbb bl, bl
xor esi, esi
push esi
push 1
call fcn.004049c9
add bl, 1
je 0x415fc4
push 2
jmp 0x41600f
push 0x10
pop ebx
cmp dword [edi + 0x14], ebx
jb 0x415fd0
mov edx, dword [edi]
jmp 0x415fd2
mov edx, edi
push dword [edi + 0x10]
lea ecx, [ebp - 0x40]
call fcn.0042346d
pop ecx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x40]
cmp dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x14], ebx
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x416012
push esi
push 1
lea ecx, [ebp - 0x40]
call fcn.004049c9
push 4
pop esi
jmp 0x416044
mov esi, dword [edi + 0x10]
cmp dword [edi + 0x14], ebx
jb 0x41601c
mov edi, dword [edi]
mov ecx, dword [ebp - 0x70]
call fcn.00407590
push esi
push edi
push 3
xor esi, esi
push esi
push eax
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
push 1
lea ecx, [ebp - 0x40]
call fcn.004049c9
jmp 0x416044
xor esi, esi
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 7
call fcn.004225a8
xor ecx, ecx
push ecx
push 1
lea ecx, [ebp - 0x28]
call fcn.004049c9
mov eax, esi
call fcn.004ac569
ret