Function at 0x4185f9
Capabilities:
Delete registry key
Set registry value

Disassembly:
push 0x224
mov eax, 0x4ae374
call fcn.004879f3
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x65b4], ebx
je 0x418b0f
cmp dword [edi + 0x230], ebx
je 0x418b0f
lea ecx, [ebp - 0x224]
call fcn.004038ee
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x220]
call fcn.004038ee
mov byte [ebp - 4], 1
mov ebx, str.softwareCrystal_Dew_WorldCrystalDiskInfo
push ebx
mov esi, SysReAllocStringLen
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
xor ecx, ecx
lea eax, [ebp - 0x21c]
push ecx
push eax
push ecx
push 0xf003f
push 1
push 0x4c90b8
push ecx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x418aeb
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x214]
push 4
push eax
push 4
xor esi, esi
mov dword [ebp - 0x214], 1
push esi
push str.Version
push dword [ebp - 0x21c]
call ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 4
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x214]
push eax
push 4
push esi
push str.LastUpdate
push dword [ebp - 0x21c]
call ebx
mov eax, dword [edi + 0x230]
push 4
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x214]
push eax
push 4
push esi
push str.DiskCount
push dword [ebp - 0x21c]
call ebx
xor edx, edx
cmp dword [edi + 0x230], edx
jle 0x418adf
lea eax, [edi + 0x228]
jmp 0x418708
xor edx, edx
push edx
lea ecx, [ebp - 0x218]
push ecx
push edx
push 0xf003f
push 1
push edx
push edx
push esi
mov ecx, eax
call fcn.0040ad5e
push dword [eax + 0x1890]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x418acc
push esi
lea eax, [ebp - 0x224]
push str.Disk_d
push eax
call fcn.004038da
add esp, 0xc
lea ecx, [edi + 0x228]
push esi
call fcn.0040ad5e
push dword [eax + 0x1890]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x210]
push eax
call fcn.0048c5e3
add esp, 0xc
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x210]
push eax
push 1
push 0
push dword [ebp - 0x224]
push dword [ebp - 0x21c]
call ebx
push esi
lea ecx, [edi + 0x228]
call fcn.0040ad5e
push dword [eax + 0x1894]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x210]
push eax
call fcn.0048c5e3
add esp, 0xc
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x210]
push eax
push 1
push 0
push str.DriveLetter
push dword [ebp - 0x218]
call ebx
push esi
lea ecx, [edi + 0x228]
call fcn.0040ad5e
push dword [eax + 0x1884]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x210]
push eax
call fcn.0048c5e3
add esp, 0xc
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x210]
push eax
push 1
push 0
push str.Model
push dword [ebp - 0x218]
call ebx
push esi
lea ecx, [edi + 0x228]
call fcn.0040ad5e
push esi
lea ecx, [edi + 0x228]
cmp dword [eax + 0x174c], 0x3e8
jb 0x4188ae
call fcn.0040ad5e
mov eax, dword [eax + 0x174c]
mov dword [ebp - 0x22c], eax
fild dword [ebp - 0x22c]
test eax, eax
jns 0x41887c
fadd qword [0x4dee18]
fstp qword [ebp - 0x230]
fld qword [ebp - 0x230]
lea eax, [ebp - 0x210]
fdiv qword [0x4dee00]
push ecx
push ecx
fstp qword [esp]
push str._.1f_GB
push 0x100
push eax
call fcn.0042300a
add esp, 0x14
jmp 0x4188d2
call fcn.0040ad5e
push dword [eax + 0x174c]
lea eax, [ebp - 0x210]
push str._d_MB
push 0x100
push eax
call fcn.0042300a
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call fcn.0048c5e3
pop ecx
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x210]
push eax
push 1
push 0
push str.DiskSize
push dword [ebp - 0x218]
call ebx
cmp dword [edi + 0x6594], 0
lea ecx, [edi + 0x228]
push esi
je 0x418956
call fcn.0040ad5e
cmp dword [eax + 0x17bc], 0xfffffed4
jle 0x41894f
push esi
lea ecx, [edi + 0x228]
call fcn.0040ad5e
push 5
pop ecx
imul eax, dword [eax + 0x17bc], 9
cdq
idiv ecx
lea ecx, [eax + 0x20]
mov eax, 0x4cf77c
cmp ecx, 0x64
ja 0x41894b
mov eax, 0x4cf788
push ecx
push eax
jmp 0x41897e
push 0x4cf798
jmp 0x418999
call fcn.0040ad5e
cmp dword [eax + 0x17bc], 0xfffffed4
jle 0x418994
push esi
lea ecx, [edi + 0x228]
call fcn.0040ad5e
push dword [eax + 0x17bc]
push 0x4cf7a4
lea eax, [ebp - 0x210]
push 0x100
push eax
call fcn.0042300a
add esp, 0x10
jmp 0x4189ad
push 0x4cf7b0
lea eax, [ebp - 0x210]
push 0x100
push eax
call fcn.0042300a
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call fcn.0048c5e3
pop ecx
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x210]
push eax
push 1
push 0
push 0x4ce480
push dword [ebp - 0x218]
call ebx
push esi
lea ecx, [edi + 0x228]
call fcn.0040ad5e
lea ecx, [edi + 0x228]
push dword [eax + 0x1808]
push esi
call fcn.0040ad5e
mov ecx, edi
push dword [eax + 0x17bc]
lea eax, [ebp - 0x228]
push eax
call fcn.0040fd88
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x220]
push eax
call fcn.0040232a
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x228]
lea ecx, [ecx - 0x10]
call fcn.004028cb
push 0x4c90b8
push 0x4cf7bc
lea ecx, [ebp - 0x220]
call fcn.0040e8d2
push dword [ebp - 0x220]
lea eax, [ebp - 0x210]
push 0x4c9330
push 0x100
push eax
call fcn.0042300a
lea eax, [ebp - 0x210]
push eax
call fcn.0048c5e3
add esp, 0x14
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x210]
push eax
push 1
push 0
push str.TemperatureClass
push dword [ebp - 0x218]
call ebx
push esi
lea ecx, [edi + 0x228]
call fcn.0040ad5e
push 4
mov eax, dword [eax + 0x1800]
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x214]
push eax
push 4
push 0
push str.DiskStatus
push dword [ebp - 0x218]
call ebx
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
lea eax, [edi + 0x228]
cmp esi, dword [edi + 0x230]
jl 0x418706
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
call fcn.004028cb
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x224]
lea ecx, [ecx - 0x10]
call fcn.004028cb
call fcn.0048799d
ret