Function at 0x4044c6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f1d2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
lea ecx, [ebp - 0x94]
call fcn.004013e0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
push 1
push 1
call fcn.00404424
add esp, 8
mov eax, dword [0x5d0340]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x98]
push ecx
push 0xf003f
push 0
push 0x58a5c8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4047c1
mov dword [ebp - 0xa4], 1
cmp dword [ebp + 8], 0
jne 0x404681
push 0
lea edx, [ebp - 0x9c]
push edx
push 0
push 0xf003f
push 0
push 0x58a5f4
push 0
push 0x58a60c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4045b0
mov byte [ebp - 0xa0], 0
mov eax, dword [ebp - 0xa4]
push eax
lea ecx, [ebp - 0xa0]
push ecx
push 3
push 0
push 0x58a638
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 0x4045cb
mov ecx, dword [ebp - 0xa8]
add ecx, 1
mov dword [ebp - 0xa8], ecx
mov edx, dword [ebp - 0xa8]
cmp edx, dword [ebp - 0x10]
jge 0x40467c
mov eax, dword [ebp - 0xa8]
xor ecx, ecx
mov cx, word [eax*2 + 0x5bd828]
push ecx
mov edx, dword [ebp - 0xa8]
xor eax, eax
mov ax, word [edx*2 + 0x5bda28]
push eax
push 0x58a650
lea ecx, [ebp - 0x90]
push ecx
call fcn.0054c45b
add esp, 0x10
push 0
lea edx, [ebp - 0x9c]
push edx
push 0
push 0xf003f
push 0
push 0x58a668
push 0
push 0x58a680
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40466a
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 0x4045bc
jmp 0x4047b2
push 0
lea edx, [ebp - 0x9c]
push edx
push 0
push 0xf003f
push 0
push 0x58a6ac
push 0
push 0x58a6c4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4046e6
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 0x404701
mov ecx, dword [ebp - 0xac]
add ecx, 1
mov dword [ebp - 0xac], ecx
mov edx, dword [ebp - 0xac]
cmp edx, dword [ebp - 0x10]
jge 0x4047b2
mov eax, dword [ebp - 0xac]
xor ecx, ecx
mov cx, word [eax*2 + 0x5bd828]
push ecx
mov edx, dword [ebp - 0xac]
xor eax, eax
mov ax, word [edx*2 + 0x5bda28]
push eax
push str.IgnoreHWSerNum_.4x_.4x
lea ecx, [ebp - 0x90]
push ecx
call fcn.0054c45b
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 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4047ad
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 0x4046f2
mov edx, dword [ebp - 0x98]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4047e5
mov dword [ebp - 0xb0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00560ea1
mov eax, dword [ebp - 0xb0]
jmp 0x404807
mov dword [ebp - 0xb4], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00560ea1
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret