Function at 0x4d2c00
Capabilities:
Delete registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x5bc600
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x6754d4]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x1964]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
mov byte [esp + 0x34], 1
je 0x4d2c55
cmp dword [esi + 0x1968], 3
jne 0x4d2ebc
mov eax, dword [esi + 0x4f8]
test eax, eax
je 0x4d2ebc
lea ebp, [esi + 0x4dc]
mov ecx, ebp
call fcn.004c5d60
test al, al
je 0x4d32cc
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
push 0x44f
call fcn.00598033
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4d2cb1
inc eax
push eax
push ecx
mov ecx, dword [0x67a050]
push 1
push 0
push 0x655db4
push ecx
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x4d2cc5
mov edx, dword [0x67a050]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x655db4
push edx
call ebx
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
push 0x450
call fcn.00598033
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4d2cf8
inc eax
push eax
push ecx
mov ecx, dword [0x67a050]
push 1
push 0
push 0x655da8
push ecx
call edi
jmp 0x4d2d06
mov edx, dword [0x67a050]
push 0x655da8
push edx
call ebx
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
push 0x451
call fcn.00598033
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4d2d39
inc eax
push eax
push ecx
mov ecx, dword [0x67a050]
push 1
push 0
push 0x655d98
push ecx
call edi
jmp 0x4d2d47
mov edx, dword [0x67a050]
push 0x655d98
push edx
call ebx
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
push 0x452
call fcn.00598033
lea ecx, [esp + 0x18]
push ecx
push 0x40b
mov ecx, ebp
call fcn.00598033
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.0057ffb4
add esp, 8
test eax, eax
jne 0x4d2d9f
mov ecx, dword [esp + 0x10]
mov edx, dword [0x67a050]
push 1
push ecx
push 0x655d7c
push 0x655d8c
push edx
call fcn.005503f0
add esp, 0x14
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
push 0x455
call fcn.00598033
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4d2dd2
inc eax
push eax
push ecx
mov ecx, dword [0x67a050]
push 1
push 0
push 0x655d70
push ecx
call edi
jmp 0x4d2de0
mov edx, dword [0x67a050]
push 0x655d70
push edx
call ebx
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
push 0x456
call fcn.00598033
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4d2e13
inc eax
push eax
push ecx
mov ecx, dword [0x67a050]
push 1
push 0
push 0x655d68
push ecx
call edi
jmp 0x4d2e21
mov edx, dword [0x67a050]
push 0x655d68
push edx
call ebx
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
push 0x457
call fcn.00598033
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4d2e54
inc eax
push eax
push ecx
mov ecx, dword [0x67a050]
push 1
push 0
push 0x655d5c
push ecx
call edi
jmp 0x4d2e62
mov edx, dword [0x67a050]
push 0x655d5c
push edx
call ebx
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
push 0x458
call fcn.00598033
lea ecx, [esp + 0x18]
push ecx
push 0x40f
mov ecx, ebp
call fcn.00598033
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.0057ffb4
add esp, 8
test eax, eax
jne 0x4d2ec2
mov ecx, dword [esp + 0x10]
mov edx, dword [0x67a050]
push 1
push ecx
push 0x655d40
push 0x655d50
push edx
call fcn.005503f0
add esp, 0x14
jmp 0x4d2ec2
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esi + 0x1964]
test eax, eax
jne 0x4d32ae
mov eax, dword [esi + 0x1828]
test eax, eax
je 0x4d2f03
lea ecx, [esi + 0x180c]
call fcn.004c19c0
mov ecx, dword [esi + 0x9c]
mov eax, dword [ecx + 0x1c]
test eax, eax
jne 0x4d2f03
mov al, byte [esi + 0x1958]
test al, al
je 0x4d2f03
push 0
call fcn.00416b90
mov eax, dword [esi + 0xc7c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4d2fef
lea ebx, [esi + 0xc60]
push 0x47c
mov ecx, ebx
call fcn.0059a141
mov eax, dword [eax + 0x1c]
push 0
push 0
push 0x147
push eax
call ebp
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
je 0x4d2f8b
mov edx, dword [0x67a050]
lea ecx, [esp + 0x24]
push 4
push ecx
push 4
push 0
push 0x6532e8
push edx
call edi
push 1
push 0
push 0x47e
mov ecx, ebx
call fcn.0059a199
test eax, eax
mov dword [esp + 0x28], eax
je 0x4d2f8b
mov ecx, dword [0x67a050]
lea eax, [esp + 0x28]
push 4
push eax
push 4
push 0
push 0x6532d8
push ecx
call edi
mov edx, dword [0x6754d4]
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x1c]
lea ecx, [esi + 0x10ec]
push eax
mov byte [esp + 0x38], 2
call fcn.00597feb
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0057ec83
add esp, 4
cmp eax, 1
je 0x4d2fd0
cmp eax, 2
je 0x4d2fd0
cmp eax, 4
je 0x4d2fd0
cmp eax, 8
je 0x4d2fd0
cmp eax, 0x10
jne 0x4d2fdb
push eax
mov ecx, 0x679ee8
call fcn.004ba1c0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 1
call fcn.0059ad3d
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esi + 0x1388]
test eax, eax
je 0x4d31dd
mov edx, dword [esi + 0x15b8]
push 0
push 0
push 0x147
push edx
call ebp
mov ecx, dword [0x67a050]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 4
push eax
push 4
push 0
push 0x66566c
push ecx
call edi
mov edx, dword [esi + 0x15f4]
push 0
push 0
push 0xf0
push edx
call ebp
lea edx, [esp + 0x14]
push 4
xor ecx, ecx
push edx
test eax, eax
mov eax, dword [0x67a050]
push 4
push 0
push 0x652570
setne cl
push eax
mov dword [esp + 0x2c], ecx
call edi
mov ecx, dword [esi + 0x1450]
push 0
push 0
push 0xf0
push ecx
call ebp
mov ecx, dword [0x67a050]
xor edx, edx
test eax, eax
lea eax, [esp + 0x14]
push 4
push eax
push 4
push 0
push 0x65151c
setne dl
push ecx
mov dword [esp + 0x2c], edx
call edi
mov edx, dword [esi + 0x1414]
push 0
push 0
push 0xf0
push edx
call ebp
lea edx, [esp + 0x14]
push 4
xor ecx, ecx
push edx
test eax, eax
mov eax, dword [0x67a050]
push 4
push 0
push 0x65153c
setne cl
push eax
mov dword [esp + 0x2c], ecx
call edi
mov ecx, dword [esi + 0x1504]
push 0
push 0
push 0xf0
push ecx
call ebp
xor edx, edx
test eax, eax
mov ecx, dword [0x67a050]
lea eax, [esp + 0x14]
push 4
push eax
push 4
push 0
setne dl
push 0x665680
push ecx
mov dword [esp + 0x2c], edx
call edi
mov edx, dword [esi + 0x157c]
push 0
push 0
push 0xf0
push edx
call ebp
lea edx, [esp + 0x14]
push 4
xor ecx, ecx
push edx
test eax, eax
mov eax, dword [0x67a050]
push 4
push 0
push 0x654a18
setne cl
push eax
mov dword [esp + 0x2c], ecx
call edi
mov ecx, dword [0x6754d4]
mov dword [esp + 0x1c], ecx
lea edx, [esp + 0x1c]
lea ecx, [esi + 0x1650]
push edx
mov byte [esp + 0x38], 3
call fcn.00597feb
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4d3177
inc eax
push eax
mov eax, dword [0x67a050]
push ecx
push 1
push 0
push 0x66565c
push eax
call edi
jmp 0x4d3185
mov ecx, dword [0x67a050]
push 0x66565c
push ecx
call ebx
lea edx, [esp + 0x1c]
lea ecx, [esi + 0x1614]
push edx
call fcn.00597feb
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4d31b6
inc eax
push eax
mov eax, dword [0x67a050]
push ecx
push 1
push 0
push 0x665648
push eax
call edi
jmp 0x4d31c4
mov ecx, dword [0x67a050]
push 0x665648
push ecx
call ebx
lea ecx, [esi + 0x136c]
call fcn.004c8d00
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 1
call fcn.0059ad3d
mov eax, dword [esi + 0xc7c]
test eax, eax
je 0x4d3213
lea ecx, [esi + 0xc60]
call fcn.004bf9f0
test al, al
je 0x4d32cc
mov eax, dword [esi + 0x195c]
test eax, eax
je 0x4d3213
push 0
push 0x13c2
push 0x111
push eax
call ebp
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x4d3228
lea ecx, [esi + 0xa8]
call fcn.004cb4c0
mov eax, dword [esi + 0x1970]
test eax, eax
je 0x4d323f
lea ecx, [esi + 0x6a0]
call fcn.004c2630
jmp 0x4d324a
lea ecx, [esi + 0x964]
call fcn.0040dfc0
lea edx, [esp + 0x20]
push 0
push edx
push 0
push 0xf003f
push 0
push 0x679a28
push 0
push 0x652fb0
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4d32a4
lea eax, [esp + 0x1c]
push eax
call fcn.00580063
mov edx, dword [esp + 0x24]
add esp, 4
lea ecx, [esp + 0x1c]
push 4
push ecx
push 4
push 0
push 0x679a28
push edx
call edi
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 0x1964]
test eax, eax
je 0x4d32b7
cmp dword [esi + 0x1968], 5
jne 0x4d32cc
mov eax, dword [esi + 0x248]
test eax, eax
je 0x4d32cc
lea ecx, [esi + 0x22c]
call fcn.004c1360
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 0
call fcn.0059ad3d
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.0059ad3d
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret