Function at 0x10054790
Capabilities:
Check if file exists
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016ecd9
mov eax, dword fs:[0]
push eax
sub esp, 0x6e0
mov eax, dword [0x101d7c7c]
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
call fcn.10044c90
mov ecx, eax
call fcn.1003e3a0
push 0x208
mov ebx, eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10112750
add esp, 0xc
call fcn.10071f70
push 0x104
lea edx, [ebp - 0x218]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
call fcn.1000cdc0
mov ecx, eax
test ecx, ecx
je 0x10055028
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x6c4], eax
mov eax, 0x1018b530
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x6c4]
test eax, 0xffff0000
jne 0x1005483a
movzx eax, ax
push eax
call fcn.1000d750
jmp 0x10054846
push 1
push 0x1018b530
call fcn.1000d900
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 4], 1
call esi
test eax, eax
je 0x10054891
push str.ComputerZ_HardwareDll.dll
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
jne 0x10054891
push 1
push 0x1018a154
lea ecx, [ebp - 0x6c4]
call fcn.1000d900
call fcn.10044c90
mov ecx, eax
call fcn.1003e340
mov esi, eax
call fcn.10044c90
mov ecx, eax
call fcn.1003e5c0
mov edi, eax
call fcn.10044c90
mov ecx, eax
call fcn.1003ff50
test eax, eax
mov ecx, 0x1018a154
mov eax, 0x1018b530
cmove ecx, eax
push ecx
lea ecx, [ebp - 0x6d8]
call fcn.1000e0d0
lea eax, [ebp - 0x6ec]
mov byte [ebp - 4], 2
push eax
call fcn.10044c90
mov ecx, eax
call fcn.1003e4e0
mov byte [ebp - 4], 3
call fcn.10044c90
mov ecx, eax
call fcn.1003e380
mov dword [ebp - 0x68c], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x688], str.SOFTWARELudashi
mov dword [ebp - 0x684], str.VendorID
mov ecx, dword [ebx]
mov dword [ebp - 0x6d0], eax
mov dword [ebp - 0x680], ecx
mov dword [ebp - 0x67c], 1
mov dword [ebp - 0x678], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x674], str.SOFTWARELudashi
mov dword [ebp - 0x670], str.AppType
mov eax, dword [esi]
mov dword [ebp - 0x66c], eax
mov dword [ebp - 0x668], 1
mov dword [ebp - 0x664], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x660], str.SOFTWARELudashi
mov dword [ebp - 0x65c], str.Type
mov eax, dword [edi]
mov dword [ebp - 0x658], eax
mov eax, dword [ebp - 0x6d8]
mov dword [ebp - 0x644], eax
mov eax, dword [ebp - 0x6c4]
mov dword [ebp - 0x654], 1
mov dword [ebp - 0x650], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x64c], str.SOFTWARELudashi
mov dword [ebp - 0x648], 0x1018c37c
mov dword [ebp - 0x640], 1
mov dword [ebp - 0x63c], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x638], str.SOFTWARELudashi
mov dword [ebp - 0x634], str.lite
mov dword [ebp - 0x630], eax
mov dword [ebp - 0x62c], 1
call fcn.10044c90
cmp dword [eax + 0x60], 0
jne 0x10054a58
call fcn.10044c90
mov ecx, eax
call fcn.1003ff50
test eax, eax
je 0x10054a58
mov dword [ebp - 0x6a0], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x69c], str.SOFTWARELudashi
mov dword [ebp - 0x698], str.CreateShortcut
mov dword [ebp - 0x694], 0x1018a154
mov dword [ebp - 0x690], 1
call fcn.10071f70
lea edx, [ebp - 0x6a0]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
lea esi, [ebp - 0x68c]
mov edi, 5
call fcn.10071f70
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
add esi, 0x14
sub edi, 1
jne 0x10054a63
call fcn.10044c90
mov ecx, eax
call fcn.1003e5a0
push eax
lea ecx, [ebp - 0x6dc]
call fcn.10010760
mov esi, dword [ebp - 0x6dc]
mov byte [ebp - 4], 4
cmp dword [esi - 0xc], edi
je 0x10054ade
mov dword [ebp - 0x6a0], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x69c], str.SOFTWARELudashi
mov dword [ebp - 0x698], str.tagID
mov dword [ebp - 0x694], esi
mov dword [ebp - 0x690], 1
call fcn.10071f70
lea edx, [ebp - 0x6a0]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
call fcn.10044c90
mov ecx, eax
call fcn.1003e590
push eax
lea ecx, [ebp - 0x6e0]
call fcn.10010760
mov edi, dword [ebp - 0x6e0]
mov byte [ebp - 4], 5
cmp dword [edi - 0xc], 0
je 0x10054b46
mov dword [ebp - 0x6a0], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x69c], str.SOFTWARELudashi
mov dword [ebp - 0x698], str.softID
mov dword [ebp - 0x694], edi
mov dword [ebp - 0x690], 1
call fcn.10071f70
lea edx, [ebp - 0x6a0]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
xor eax, eax
mov dword [ebp - 0x6ac], 0
mov dword [ebp - 0x6a8], 7
mov word [ebp - 0x6bc], ax
push 0x208
push eax
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 6
push eax
mov dword [ebp - 0x6e4], 0x104
call fcn.10112750
add esp, 0xc
mov dword [ebp - 0x6e8], 1
lea eax, [ebp - 0x6e4]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x6e8]
push eax
push str.local_m2
push 0x1018a118
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x10054be9
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10054bc7
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x6bc]
call fcn.10012940
cmp dword [ebp - 0x6ac], 0
jne 0x10054c7d
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.10112750
add esp, 0xc
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.100b8f50
lea ecx, [ebp - 0x628]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10054c26
sub ecx, edx
lea eax, [ebp - 0x628]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x6bc]
call fcn.10012940
cmp dword [ebp - 0x6a8], 8
lea ecx, [ebp - 0x6bc]
mov eax, dword [ebp - 0x6ac]
cmovae ecx, dword [ebp - 0x6bc]
add eax, eax
push eax
push ecx
push 1
push str.local_m2
push 0x1018a118
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
cmp dword [ebp - 0x6a8], 8
lea eax, [ebp - 0x6bc]
lea ecx, [ebp - 0x6cc]
cmovae eax, dword [ebp - 0x6bc]
push eax
call fcn.1000e0d0
mov byte [ebp - 4], 7
call fcn.1000cdc0
mov ecx, eax
test ecx, ecx
je 0x10055032
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x6c8], eax
mov eax, 0x1018a154
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x6c8]
test eax, 0xffff0000
jne 0x10054cdf
movzx eax, ax
push eax
call fcn.1000d750
jmp 0x10054ceb
push 1
push 0x1018a154
call fcn.1000d900
lea eax, [ebp - 0x6cc]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x6c8]
push eax
lea eax, [ebp - 0x6d4]
push eax
call fcn.100aec50
add esp, 0xc
mov edx, dword [ebp - 0x6c8]
or ebx, 0xffffffff
mov byte [ebp - 4], 0xb
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10054d30
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x6cc]
mov eax, ebx
mov byte [ebp - 4], 0xc
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10054d51
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x6d4]
cmp dword [eax - 0xc], 0
je 0x10054d9d
mov dword [ebp - 0x6a0], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x69c], str.SOFTWARELudashi
mov dword [ebp - 0x698], str.VipLevel
mov dword [ebp - 0x694], eax
mov dword [ebp - 0x690], 1
call fcn.10071f70
lea edx, [ebp - 0x6a0]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x6d0]
mov ecx, 0x10186a64
mov eax, dword [eax]
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10054dd6
test dx, dx
je 0x10054dd2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10054dd6
add eax, 4
add ecx, 4
test dx, dx
jne 0x10054db0
xor eax, eax
jmp 0x10054ddb
sbb eax, eax
or eax, 1
test eax, eax
je 0x10054ef0
lea eax, [ebp - 0x6a4]
push 1
push eax
call fcn.10038cd0
mov edx, dword [ebp - 0x690]
add esp, 8
cmp edx, 8
jb 0x10054e34
mov ecx, dword [ebp - 0x6a4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10054e2a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005503c
push edx
push ecx
call fcn.100acb1e
add esp, 8
lea eax, [ebp - 0x6a4]
push 1
push eax
call fcn.10038cd0
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x6d0]
cmp dword [ecx + 0x14], 8
mov edx, dword [eax]
mov eax, dword [edx - 0xc]
jb 0x10054e5a
mov ecx, dword [ecx]
add eax, eax
push eax
push edx
push 1
push str.oldversion
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov edx, dword [ebp - 0x690]
test eax, eax
setne al
mov byte [ebp - 0x6bd], al
cmp edx, 8
jb 0x10054ec2
mov ecx, dword [ebp - 0x6a4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10054eb2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10055041
push edx
push ecx
call fcn.100acb1e
mov al, byte [ebp - 0x6bd]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x694], 0
mov dword [ebp - 0x690], 7
mov word [ebp - 0x6a4], cx
test al, al
je 0x10054ef0
push str.write_register_oldversion_is_failed
call fcn.1004d370
add esp, 4
mov edx, dword [ebp - 0x6d4]
mov eax, ebx
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10054f11
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x6a8]
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x10054f55
mov ecx, dword [ebp - 0x6bc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10054f4b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10055046
push edx
push ecx
call fcn.100acb1e
add esp, 8
xor eax, eax
mov dword [ebp - 0x6ac], 0
mov word [ebp - 0x6bc], ax
add edi, 0xfffffff0
mov dword [ebp - 0x6a8], 7
mov eax, ebx
mov byte [ebp - 4], 4
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10054f8d
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10054fa8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x6ec]
mov eax, ebx
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10054fc9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x6d8]
mov eax, ebx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10054fea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x6c4]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1005500c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.100acb08
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.1000ae00
push 0x80004005
call fcn.1000ae00
call fcn.1012fb57
call fcn.1012fb57
call fcn.1012fb57
int3