Function at 0x5181d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x725dfe
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x7db1e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x24c], esi
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], esi
jb 0x518217
mov eax, dword [eax]
lea ecx, [ebp - 0x140]
push 0xfde9
mov dword [ebp - 0x144], ecx
lea ecx, [ebp - 0x144]
push eax
call fcn.004d3aa0
mov edx, dword [ebp - 0x144]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ebx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x518260
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004da1e0
mov eax, dword [ebp - 0x144]
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 3
cmp eax, ecx
je 0x518296
push eax
call fcn.006fa47e
add esp, 4
cmp dword [edi + 0x14], 0x10
jb 0x51829e
mov edi, dword [edi]
push 0xfde9
lea eax, [ebp - 0x244]
push edi
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x248], eax
call fcn.004d3aa0
mov edx, dword [ebp - 0x248]
mov ecx, edx
mov byte [ebp - 4], 4
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5182e0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.004da1e0
mov eax, dword [ebp - 0x248]
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 3
cmp eax, ecx
je 0x518316
push eax
call fcn.006fa47e
add esp, 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x24c]
push eax
push 0x20006
push 0
push str.SoftwareNeteaseNeteasePlugin_
push connect
mov dword [ebp - 0x24c], 0
call ebx
test eax, eax
jne 0x51834c
mov esi, dword [ebp - 0x24c]
jmp 0x51838a
lea eax, [ebp - 0x250]
mov dword [ebp - 0x24c], 0
push eax
lea eax, [ebp - 0x24c]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareNeteaseNeteasePlugin_
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
cmove esi, dword [ebp - 0x24c]
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x24c], 0
push eax
push 0x20006
push 0
push str.SoftwareNeteaseNeteasePlugin_
push connect
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x51846d
xor eax, eax
test esi, esi
je 0x5183c5
push esi
call edi
mov esi, dword [ebp - 0x24c]
mov dword [ebp - 0x24c], esi
test eax, eax
jne 0x51846d
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
jb 0x5183ed
mov edx, dword [ebp - 0x28]
test edx, edx
je 0x5187c6
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5183f2
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0x73b0c4
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x518467
cmp dword [ebp - 0x2c], 8
lea edx, [ebp - 0x40]
jb 0x518432
mov edx, dword [ebp - 0x40]
test edx, edx
je 0x5187c6
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x518437
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.CompanyEnglishName
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x5186ff
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x24c], 0
push eax
push 0x20206
push 0
push str.SoftwareNeteaseNeteasePlugin_
push connect
call ebx
test eax, eax
jne 0x518545
test esi, esi
je 0x5184a0
push esi
call edi
mov esi, dword [ebp - 0x24c]
mov dword [ebp - 0x24c], esi
test eax, eax
jne 0x518545
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
jb 0x5184c8
mov edx, dword [ebp - 0x28]
test edx, edx
je 0x5187c6
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5184d0
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0x73b0c4
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x518545
cmp dword [ebp - 0x2c], 8
lea edx, [ebp - 0x40]
jb 0x518510
mov edx, dword [ebp - 0x40]
test edx, edx
je 0x5187c6
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x518515
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.CompanyEnglishName
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x5186ff
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x24c], 0
push eax
push 0x20006
push 0
push str.SoftwareNeteaseNeteasePlugin_
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x518625
test esi, esi
je 0x51857c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x24c]
mov dword [ebp - 0x24c], esi
test eax, eax
jne 0x518625
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
jb 0x5185a4
mov edx, dword [ebp - 0x28]
test edx, edx
je 0x5187c6
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5185b0
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0x73b0c4
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x518625
cmp dword [ebp - 0x2c], 8
lea edx, [ebp - 0x40]
jb 0x5185f0
mov edx, dword [ebp - 0x40]
test edx, edx
je 0x5187c6
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5185f5
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.CompanyEnglishName
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x5186ff
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x24c], 0
push eax
push 0x20206
push 0
push str.SoftwareNeteaseNeteasePlugin_
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x518703
test esi, esi
je 0x51865c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x24c]
mov dword [ebp - 0x24c], esi
test eax, eax
jne 0x518703
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
jb 0x518684
mov edx, dword [ebp - 0x28]
test edx, edx
je 0x5187c6
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x518690
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0x73b0c4
push esi
call ebx
test eax, eax
jne 0x518703
cmp dword [ebp - 0x2c], 8
lea edx, [ebp - 0x40]
jb 0x5186d2
mov edx, dword [ebp - 0x40]
test edx, edx
je 0x5187c6
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5186d7
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.CompanyEnglishName
push esi
call ebx
test eax, eax
jne 0x518703
mov bl, 1
jmp 0x518705
xor bl, bl
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x51873f
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x518735
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5187d0
push edx
push ecx
call fcn.006f4b9f
add esp, 8
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x518789
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x51877f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5187d0
push edx
push ecx
call fcn.006f4b9f
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test esi, esi
je 0x5187a8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006f4db8
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004cf5d0
call fcn.006fb96e
int3