Function at 0x4fdfed
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57583a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
lea ecx, [ebp - 0x94]
call fcn.00401420
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
push 1
push 1
call fcn.004fe33c
add esp, 8
mov eax, dword [0x6811ac]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x98]
push ecx
push 0xf003f
push 0
push 0x5c8e88
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4fe2e8
mov dword [ebp - 0xa4], 1
cmp dword [ebp + 8], 0
jne 0x4fe1a8
push 0
lea edx, [ebp - 0x9c]
push edx
push 0
push 0xf003f
push 0
push 0x5c8eb4
push 0
push 0x5c8ecc
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4fe0d7
mov byte [ebp - 0xa0], 0
mov eax, dword [ebp - 0xa4]
push eax
lea ecx, [ebp - 0xa0]
push ecx
push 3
push 0
push 0x5c8ef8
mov edx, dword [ebp - 0x9c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x9c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xa8], 0
jmp 0x4fe0f2
mov ecx, dword [ebp - 0xa8]
add ecx, 1
mov dword [ebp - 0xa8], ecx
mov edx, dword [ebp - 0xa8]
cmp edx, dword [ebp - 0x10]
jge 0x4fe1a3
mov eax, dword [ebp - 0xa8]
xor ecx, ecx
mov cx, word [eax*2 + 0x680fac]
push ecx
mov edx, dword [ebp - 0xa8]
xor eax, eax
mov ax, word [edx*2 + 0x680dac]
push eax
push 0x5c8f10
lea ecx, [ebp - 0x90]
push ecx
call fcn.0054c6e3
add esp, 0x10
push 0
lea edx, [ebp - 0x9c]
push edx
push 0
push 0xf003f
push 0
push 0x5c8f28
push 0
push 0x5c8f40
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4fe191
mov byte [ebp - 0xa0], 1
mov eax, dword [ebp - 0xa4]
push eax
lea ecx, [ebp - 0xa0]
push ecx
push 3
push 0
lea edx, [ebp - 0x90]
push edx
mov eax, dword [ebp - 0x9c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x9c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4fe0e3
jmp 0x4fe2d9
push 0
lea edx, [ebp - 0x9c]
push edx
push 0
push 0xf003f
push 0
push 0x5c8f6c
push 0
push 0x5c8f84
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4fe20d
mov byte [ebp - 0xa0], 1
mov eax, dword [ebp - 0xa4]
push eax
lea ecx, [ebp - 0xa0]
push ecx
push 3
push 0
push str.GlobalDisableSerNumGen
mov edx, dword [ebp - 0x9c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x9c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xac], 0
jmp 0x4fe228
mov ecx, dword [ebp - 0xac]
add ecx, 1
mov dword [ebp - 0xac], ecx
mov edx, dword [ebp - 0xac]
cmp edx, dword [ebp - 0x10]
jge 0x4fe2d9
mov eax, dword [ebp - 0xac]
xor ecx, ecx
mov cx, word [eax*2 + 0x680fac]
push ecx
mov edx, dword [ebp - 0xac]
xor eax, eax
mov ax, word [edx*2 + 0x680dac]
push eax
push str.IgnoreHWSerNum_.4x_.4x
lea ecx, [ebp - 0x90]
push ecx
call fcn.0054c6e3
add esp, 0x10
push 0
lea edx, [ebp - 0x9c]
push edx
push 0
push 0xf003f
push 0
push str.IgnoreHWSerNum090C1000
push 0
push str.SYSTEMCurrentControlSetControlUsbFlags_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4fe2d4
mov byte [ebp - 0xa0], 0
mov eax, dword [ebp - 0xa4]
push eax
lea ecx, [ebp - 0xa0]
push ecx
push 3
push 0
lea edx, [ebp - 0x90]
push edx
mov eax, dword [ebp - 0x9c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x9c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4fe219
mov edx, dword [ebp - 0x98]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4fe30c
mov dword [ebp - 0xb0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0056206c
mov eax, dword [ebp - 0xb0]
jmp 0x4fe32e
mov dword [ebp - 0xb4], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0056206c
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret