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

Disassembly:
sub esp, 0x22c
mov eax, dword [0x4ed394]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [esp + 0x238]
push ebx
mov ebx, dword [esp + 0x238]
push esi
mov esi, dword [esp + 0x238]
mov dword [esp + 0x24], ecx
xor ecx, ecx
push 0x206
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x248]
push ecx
lea edx, [esp + 0x32]
push edx
mov dword [esp + 0x2c], eax
mov word [esp + 0x34], cx
call fcn.0047c520
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push str.SoftwareSOHUSoHuVA
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 0x208
mov dword [esp + 0x14], 1
mov dword [esp + 0x1c], 0
mov byte [esp + 0x1b], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x475785
push ebp
push edi
push 0x208
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.0047c520
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0x4c65cc
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x475248
mov ebp, dword [esi]
lea ecx, [esp + 0x30]
mov eax, ebp
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4751fe
test dx, dx
je 0x4751fa
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4751fe
add eax, 4
add ecx, 4
test dx, dx
jne 0x4751d8
xor eax, eax
jmp 0x475203
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x475282
mov eax, 1
mov dword [esp + 0x10], eax
cmp dword [ebp - 4], eax
mov edi, dword [ebp - 0xc]
jle 0x475221
mov eax, edi
push eax
push esi
call fcn.0041ac70
mov edx, dword [esi]
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [edi + edi]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push 0
push 0x4c65cc
push ecx
call ebp
mov byte [esp + 0x17], 1
jmp 0x475288
mov eax, dword [esi]
mov ecx, 1
mov dword [esp + 0x10], ecx
cmp dword [eax - 4], ecx
mov edi, dword [eax - 0xc]
jle 0x475264
mov edx, edi
push edx
push esi
call fcn.0041ac70
mov ecx, dword [esi]
mov edx, dword [esp + 0x10]
lea eax, [edi + edi]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push 0
push 0x4c65cc
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x208
lea ecx, [esp + 0x34]
push 0
push ecx
call fcn.0047c520
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push str.hdSN
push edx
mov dword [esp + 0x34], 0x208
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47534a
mov edi, dword [ebx]
lea ecx, [esp + 0x30]
mov eax, edi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x475306
test dx, dx
je 0x475302
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x475306
add eax, 4
add ecx, 4
test dx, dx
jne 0x4752e0
xor eax, eax
jmp 0x47530b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x475380
mov eax, 1
mov dword [esp + 0x10], eax
cmp dword [edi - 4], eax
mov esi, dword [edi - 0xc]
jle 0x475329
mov eax, esi
push eax
push ebx
call fcn.0041ac70
mov edx, dword [ebx]
mov eax, dword [esp + 0x10]
lea ecx, [esi + esi]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push 0
push str.hdSN
push ecx
call ebp
mov byte [esp + 0x17], 1
jmp 0x475380
mov eax, dword [ebx]
mov ecx, 1
mov dword [esp + 0x10], ecx
cmp dword [eax - 4], ecx
mov esi, dword [eax - 0xc]
jle 0x475366
mov edx, esi
push edx
push ebx
call fcn.0041ac70
mov ecx, dword [ebx]
mov edx, dword [esp + 0x10]
lea eax, [esi + esi]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push 0
push str.hdSN
push eax
call ebp
push 0x208
lea ecx, [esp + 0x34]
push 0
push ecx
call fcn.0047c520
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push str.BIOSSN
push edx
mov dword [esp + 0x34], 0x208
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47543f
mov ebx, dword [esp + 0x20]
mov edi, dword [ebx]
lea ecx, [esp + 0x30]
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4753fb
test dx, dx
je 0x4753f7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4753fb
add eax, 4
add ecx, 4
test dx, dx
jne 0x4753d5
xor eax, eax
jmp 0x475400
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x475479
mov eax, 1
mov dword [esp + 0x10], eax
cmp dword [edi - 4], eax
mov esi, dword [edi - 0xc]
jle 0x47541e
mov eax, esi
push eax
push ebx
call fcn.0041ac70
mov edx, dword [ebx]
mov eax, dword [esp + 0x10]
lea ecx, [esi + esi]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push 0
push str.BIOSSN
push ecx
call ebp
mov byte [esp + 0x17], 1
jmp 0x475479
mov edi, dword [esp + 0x20]
mov eax, dword [edi]
mov ecx, 1
mov dword [esp + 0x10], ecx
cmp dword [eax - 4], ecx
mov esi, dword [eax - 0xc]
jle 0x47545f
mov edx, esi
push edx
push edi
call fcn.0041ac70
mov ecx, dword [edi]
mov edx, dword [esp + 0x10]
lea eax, [esi + esi]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push 0
push str.BIOSSN
push eax
call ebp
push 0x208
lea ecx, [esp + 0x34]
push 0
push ecx
call fcn.0047c520
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push str.BaseBoardSN
push edx
mov dword [esp + 0x34], 0x208
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47553a
mov ebx, dword [esp + 0x2c]
mov edi, dword [ebx]
lea ecx, [esp + 0x30]
mov eax, edi
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4754f6
test dx, dx
je 0x4754f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4754f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4754d0
xor eax, eax
jmp 0x4754fb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x475574
mov eax, 1
mov dword [esp + 0x10], eax
cmp dword [edi - 4], eax
mov esi, dword [edi - 0xc]
jle 0x475519
mov eax, esi
push eax
push ebx
call fcn.0041ac70
mov edx, dword [ebx]
mov eax, dword [esp + 0x10]
lea ecx, [esi + esi]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push 0
push str.BaseBoardSN
push ecx
call ebp
mov byte [esp + 0x17], 1
jmp 0x475574
mov edi, dword [esp + 0x2c]
mov eax, dword [edi]
mov ecx, 1
mov dword [esp + 0x10], ecx
cmp dword [eax - 4], ecx
mov esi, dword [eax - 0xc]
jle 0x47555a
mov edx, esi
push edx
push edi
call fcn.0041ac70
mov ecx, dword [edi]
mov edx, dword [esp + 0x10]
lea eax, [esi + esi]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push 0
push str.BaseBoardSN
push eax
call ebp
push 0x208
lea ecx, [esp + 0x34]
push 0
push ecx
call fcn.0047c520
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push str.UserName
push edx
mov dword [esp + 0x34], 0x208
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47563a
mov ebx, dword [esp + 0x24]
mov edi, dword [ebx]
lea ecx, [esp + 0x30]
mov eax, edi
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4755f6
test dx, dx
je 0x4755f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4755f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4755d0
xor eax, eax
jmp 0x4755fb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x475674
mov eax, 1
mov dword [esp + 0x10], eax
cmp dword [edi - 4], eax
mov esi, dword [edi - 0xc]
jle 0x475619
mov eax, esi
push eax
push ebx
call fcn.0041ac70
mov edx, dword [ebx]
mov eax, dword [esp + 0x10]
lea ecx, [esi + esi]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push 0
push str.UserName
push ecx
call ebp
mov byte [esp + 0x17], 1
jmp 0x475674
mov edi, dword [esp + 0x24]
mov eax, dword [edi]
mov ecx, 1
mov dword [esp + 0x10], ecx
cmp dword [eax - 4], ecx
mov esi, dword [eax - 0xc]
jle 0x47565a
mov edx, esi
push edx
push edi
call fcn.0041ac70
mov ecx, dword [edi]
mov edx, dword [esp + 0x10]
lea eax, [esi + esi]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push 0
push str.UserName
push eax
call ebp
push 0x208
lea ecx, [esp + 0x34]
push 0
push ecx
call fcn.0047c520
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push str.InstallTimer
push edx
mov dword [esp + 0x34], 0x208
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47573e
mov ebx, dword [esp + 0x28]
mov edi, dword [ebx]
lea ecx, [esp + 0x30]
mov eax, edi
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4756f6
test dx, dx
je 0x4756f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4756f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4756d0
xor eax, eax
jmp 0x4756fb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x475778
mov eax, 1
mov dword [esp + 0x10], eax
cmp dword [edi - 4], eax
mov esi, dword [edi - 0xc]
jle 0x47571d
mov eax, esi
push eax
push ebx
call fcn.0041ac70
mov edx, dword [ebx]
mov eax, dword [esp + 0x10]
lea ecx, [esi + esi]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push 0
push str.InstallTimer
push ecx
call ebp
mov byte [esp + 0x17], 1
jmp 0x475778
mov edi, dword [esp + 0x28]
mov eax, dword [edi]
mov ecx, 1
mov dword [esp + 0x10], ecx
cmp dword [eax - 4], ecx
mov esi, dword [eax - 0xc]
jle 0x47575e
mov edx, esi
push edx
push edi
call fcn.0041ac70
mov ecx, dword [edi]
mov edx, dword [esp + 0x10]
lea eax, [esi + esi]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push 0
push str.InstallTimer
push eax
call ebp
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
mov ecx, dword [esp + 0x230]
mov al, byte [esp + 0xf]
pop esi
pop ebx
xor ecx, esp
call fcn.0047946c
add esp, 0x22c
ret