Function at 0x403687
Capabilities:
Contain obfuscated stackstrings
Delete registry key
Get common file path
Inspect load icon resource
Parse pe header
Read .ini file

Disassembly:
push 0x41c
mov eax, 0x4ad3ba
call fcn.00487ec7
mov esi, ecx
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x420], esi
push ecx
push ecx
mov dword [ebp - 0x428], esi
call fcn.00436853
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [esi + 0x230]
mov dword [esi], vtable.CDiskInfoDlg.0
call fcn.00440817
mov byte [ebp - 4], 1
lea ecx, [esi + 0xec8]
call fcn.00435d33
mov byte [ebp - 4], 2
lea ecx, [esi + 0x10c0]
call fcn.00466545
mov byte [ebp - 4], 3
lea eax, [esi + 0x10c8]
push fcn.0042f454
push fcn.0042f28f
push 8
push 0x1e8
push eax
call fcn.00487ace
mov byte [ebp - 4], 4
lea ecx, [esi + 0x2008]
call fcn.0042f28f
mov byte [ebp - 4], 5
lea ecx, [esi + 0x21f0]
call fcn.0042f28f
mov byte [ebp - 4], 6
lea ecx, [esi + 0x23d8]
call fcn.0043a5d2
mov byte [ebp - 4], 7
lea ecx, [esi + 0x25d8]
call fcn.0043a5d2
mov byte [ebp - 4], 8
lea ecx, [esi + 0x27d8]
call fcn.0043a5d2
mov byte [ebp - 4], 9
lea ecx, [esi + 0x29d8]
call fcn.0043a5d2
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x2bd8]
call fcn.0043a5d2
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x2dd8]
call fcn.0043a5d2
mov byte [ebp - 4], 0xc
lea ecx, [esi + 0x2fd8]
call fcn.0043a5d2
mov byte [ebp - 4], 0xd
lea ecx, [esi + 0x31d8]
call fcn.0043a5d2
mov byte [ebp - 4], 0xe
lea ecx, [esi + 0x33d8]
call fcn.0043a5d2
mov byte [ebp - 4], 0xf
lea ecx, [esi + 0x35d8]
call fcn.0043a5d2
mov byte [ebp - 4], 0x10
lea ecx, [esi + 0x37d8]
call fcn.0043a5d2
mov byte [ebp - 4], 0x11
lea ecx, [esi + 0x39d8]
call fcn.0043a5d2
mov byte [ebp - 4], 0x12
lea ecx, [esi + 0x3bd8]
call fcn.0043a5d2
mov byte [ebp - 4], 0x13
lea ecx, [esi + 0x3dd8]
call fcn.0043a5d2
mov byte [ebp - 4], 0x14
lea ecx, [esi + 0x3fd8]
call fcn.00433f8d
mov byte [ebp - 4], 0x15
lea ecx, [esi + 0x41b8]
call fcn.00433f8d
mov byte [ebp - 4], 0x16
lea ecx, [esi + 0x4398]
call fcn.00433f8d
mov byte [ebp - 4], 0x17
lea ecx, [esi + 0x4578]
call fcn.00433f8d
mov byte [ebp - 4], 0x18
lea ecx, [esi + 0x4758]
call fcn.00433f8d
mov byte [ebp - 4], 0x19
lea ecx, [esi + 0x4938]
call fcn.00433f8d
mov byte [ebp - 4], 0x1a
lea ecx, [esi + 0x4b18]
call fcn.00433f8d
mov byte [ebp - 4], 0x1b
lea ecx, [esi + 0x4cf8]
call fcn.00433f8d
mov byte [ebp - 4], 0x1c
lea ecx, [esi + 0x4ed8]
call fcn.00433f8d
mov byte [ebp - 4], 0x1d
lea ecx, [esi + 0x50b8]
call fcn.00433f8d
mov byte [ebp - 4], 0x1e
lea ecx, [esi + 0x5298]
call fcn.00433f8d
mov byte [ebp - 4], 0x1f
lea ecx, [esi + 0x5478]
call fcn.00433f8d
mov byte [ebp - 4], 0x20
lea ecx, [esi + 0x5658]
call fcn.00433f8d
mov byte [ebp - 4], 0x21
lea ecx, [esi + 0x5838]
call fcn.0042f28f
mov byte [ebp - 4], 0x22
lea ecx, [esi + 0x5a20]
call fcn.0042f28f
mov byte [ebp - 4], 0x23
lea ecx, [esi + 0x5c08]
call fcn.0042f28f
mov byte [ebp - 4], 0x24
lea ecx, [esi + 0x5df0]
call fcn.0042f28f
mov byte [ebp - 4], 0x25
lea ecx, [esi + 0x5fd8]
call fcn.0042f28f
mov byte [ebp - 4], 0x26
lea ecx, [esi + 0x61c0]
call fcn.0042f28f
mov byte [ebp - 4], 0x27
lea ecx, [esi + 0x63ac]
call fcn.0040364a
mov byte [ebp - 4], 0x28
lea ecx, [esi + 0x63b0]
call fcn.0040364a
mov byte [ebp - 4], 0x29
lea ecx, [esi + 0x63b4]
call fcn.0040364a
mov byte [ebp - 4], 0x2a
lea ecx, [esi + 0x63b8]
call fcn.0040364a
mov byte [ebp - 4], 0x2b
lea ecx, [esi + 0x63bc]
call fcn.0040364a
mov byte [ebp - 4], 0x2c
lea ecx, [esi + 0x63c0]
call fcn.0040364a
mov byte [ebp - 4], 0x2d
mov dword [esi + 0x63e0], 0x4cb61c
mov dword [esi + 0x63e4], ebx
mov dword [esi + 0x63f0], ebx
mov dword [esi + 0x63ec], ebx
mov dword [esi + 0x63e8], ebx
mov byte [ebp - 4], 0x2e
lea eax, [esi + 0x681c]
push 0x40254f
push fcn.0040364a
push 8
push 4
push eax
call fcn.00487ace
mov byte [ebp - 4], 0x2f
lea ecx, [esi + 0x683c]
call fcn.0040364a
mov byte [ebp - 4], 0x30
lea ecx, [esi + 0x6840]
call fcn.0040364a
mov byte [ebp - 4], 0x31
lea ecx, [esi + 0x6844]
call fcn.0040364a
mov byte [ebp - 4], 0x32
lea ecx, [esi + 0x6848]
call fcn.0040364a
mov byte [ebp - 4], 0x33
lea ecx, [esi + 0x684c]
call fcn.0040364a
mov byte [ebp - 4], 0x34
lea ecx, [esi + 0x6850]
call fcn.0040364a
mov byte [ebp - 4], 0x35
lea ecx, [esi + 0x6854]
call fcn.0040364a
mov byte [ebp - 4], 0x36
lea ecx, [esi + 0x6858]
call fcn.0040364a
mov byte [ebp - 4], 0x37
lea ecx, [esi + 0x685c]
call fcn.0040364a
mov byte [ebp - 4], 0x38
lea ecx, [esi + 0x6860]
call fcn.0040364a
mov byte [ebp - 4], 0x39
lea ecx, [esi + 0x6864]
call fcn.0040364a
mov byte [ebp - 4], 0x3a
lea ecx, [esi + 0x6868]
call fcn.0040364a
mov byte [ebp - 4], 0x3b
lea ecx, [esi + 0x686c]
call fcn.0040364a
mov byte [ebp - 4], 0x3c
lea ecx, [esi + 0x6870]
call fcn.0040364a
mov byte [ebp - 4], 0x3d
lea ecx, [esi + 0x6874]
call fcn.0040364a
mov byte [ebp - 4], 0x3e
lea ecx, [esi + 0x6878]
call fcn.0040364a
mov byte [ebp - 4], 0x3f
lea ecx, [esi + 0x687c]
call fcn.0040364a
mov byte [ebp - 4], 0x40
lea ecx, [esi + 0x6880]
call fcn.0040364a
mov byte [ebp - 4], 0x41
lea ecx, [esi + 0x6884]
call fcn.0040364a
mov byte [ebp - 4], 0x42
lea ecx, [esi + 0x6888]
call fcn.0040364a
mov byte [ebp - 4], 0x43
lea ecx, [esi + 0x688c]
call fcn.0040364a
mov byte [ebp - 4], 0x44
lea ecx, [esi + 0x6890]
call fcn.0040364a
mov byte [ebp - 4], 0x45
lea ecx, [esi + 0x6894]
call fcn.0040364a
mov byte [ebp - 4], 0x46
lea ecx, [esi + 0x6898]
call fcn.0040364a
mov byte [ebp - 4], 0x47
lea ecx, [esi + 0x689c]
call fcn.0040364a
mov byte [ebp - 4], 0x48
lea ecx, [esi + 0x68a0]
call fcn.0040364a
mov byte [ebp - 4], 0x49
lea ecx, [esi + 0x68a4]
call fcn.0040364a
mov byte [ebp - 4], 0x4a
lea ecx, [esi + 0x68a8]
call fcn.0040364a
mov byte [ebp - 4], 0x4b
lea ecx, [esi + 0x68ac]
call fcn.0040364a
mov byte [ebp - 4], 0x4c
lea ecx, [esi + 0x68b0]
call fcn.0040364a
mov byte [ebp - 4], 0x4d
lea ecx, [esi + 0x68b4]
call fcn.0040364a
mov byte [ebp - 4], 0x4e
lea ecx, [esi + 0x68b8]
call fcn.0040364a
mov byte [ebp - 4], 0x4f
lea ecx, [esi + 0x68bc]
call fcn.0040364a
mov byte [ebp - 4], 0x50
lea ecx, [esi + 0x68c0]
call fcn.0040364a
mov byte [ebp - 4], 0x51
lea ecx, [esi + 0x68c4]
call fcn.0040364a
mov byte [ebp - 4], 0x52
lea ecx, [esi + 0x68c8]
call fcn.0040364a
mov byte [ebp - 4], 0x53
lea ecx, [esi + 0x68cc]
call fcn.0040364a
mov byte [ebp - 4], 0x54
lea ebx, [esi + 0x68d0]
mov ecx, ebx
call fcn.0040364a
mov byte [ebp - 4], 0x55
lea edi, [esi + 0x68d4]
mov ecx, edi
call fcn.0040364a
mov byte [ebp - 4], 0x56
push ecx
mov ecx, esp
mov dword [ebp - 0x424], esp
push str.CDiskInfoDlg::CDiskInfoDlg___START
call fcn.00402306
mov byte [ebp - 4], 0x57
mov byte [ebp - 4], 0x56
call fcn.0043bfae
pop ecx
call fcn.0046718b
lea ecx, [esi + 0xd4]
mov eax, dword [eax + 4]
add eax, 0xe8
push eax
call fcn.00401ffd
and dword [esi + 0x168], 0
push 0x4ca32c
call fcn.0048cb73
pop ecx
push eax
push 0x4ca32c
lea ecx, [esi + 0x174]
call fcn.00402266
push 0x4ca32c
call fcn.0048cb73
pop ecx
push eax
push 0x4ca32c
lea ecx, [esi + 0x204]
call fcn.00402266
push 0x4ca900
call fcn.0048cb73
pop ecx
push eax
push 0x4ca900
lea ecx, [esi + 0x200]
call fcn.00402266
push str.Random
call fcn.0048cb73
pop ecx
push eax
push str.Random
lea ecx, [esi + 0x180]
call fcn.00402266
push str.Background
call fcn.0048cb73
pop ecx
push eax
push str.Background
lea ecx, [esi + 0x198]
call fcn.00402266
and dword [esi + 0x3f8], 0
call fcn.0046718b
call fcn.0046718b
push 0x80
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esi + 0x3fc], eax
call fcn.0046718b
call fcn.0046718b
push 0x91
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esi + 0x400], eax
mov eax, dword [0x4fe95c]
mov dword [esi + 0xea4], eax
call fcn.0046718b
lea ecx, [esi + 0x63ac]
mov eax, dword [eax + 4]
add eax, 0xd4
push eax
call fcn.00401ffd
call fcn.0046718b
lea ecx, [esi + 0x63b0]
mov eax, dword [eax + 4]
add eax, 0xdc
push eax
call fcn.00401ffd
call fcn.0046718b
lea ecx, [esi + 0x63b4]
mov eax, dword [eax + 4]
add eax, 0xd8
push eax
call fcn.00401ffd
call fcn.0046718b
lea ecx, [esi + 0x63b8]
mov eax, dword [eax + 4]
add eax, 0xe0
push eax
call fcn.00401ffd
call fcn.0046718b
lea ecx, [esi + 0x63bc]
mov eax, dword [eax + 4]
add eax, 0xe4
push eax
call fcn.00401ffd
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
call fcn.0048cb73
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
call fcn.00402266
mov esi, str.CrystalDiskInfo.opus
push esi
call fcn.0048cb73
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00403393
lea eax, [ebp - 0x218]
push eax
call fcn.0048cb73
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.00402266
mov esi, str.CrystalDiskInfo.wav
push esi
call fcn.0048cb73
pop ecx
push eax
push esi
mov ecx, ebx
call fcn.00403393
mov ebx, dword [ebp - 0x41c]
xor esi, esi
mov eax, dword [ebp + 0xc]
push 0x4c9ff4
push esi
mov dword [ebx + 0x67c0], eax
mov dword [ebx + 0xea8], esi
mov dword [ebx + 0xeac], esi
mov dword [ebx + 0xeb4], esi
mov dword [ebx + 0xeb8], esi
call fcn.00491a0b
pop ecx
pop ecx
lea eax, [ebx + 0x8b4]
mov ecx, 0x12c
mov dword [eax - 0x4b0], esi
mov dword [eax], esi
lea eax, [eax + 4]
sub ecx, 1
jne 0x403e51
lea ecx, [ebp - 0x420]
call fcn.0040364a
mov byte [ebp - 4], 0x58
lea edi, [ebx + 0xd64]
push esi
lea eax, [ebp - 0x420]
push str.TempIcon_d
push eax
call fcn.00403636
add esp, 0xc
push dword [ebp - 0x420]
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov dword [esi*4 + 0x4fe6f0], eax
inc esi
mov dword [edi], eax
lea edi, [edi + 4]
cmp esi, 0x50
jl 0x403e76
mov ebx, dword [ebp - 0x41c]
xor edx, edx
push 0x50
pop ecx
mov dword [ebx + 0x67bc], edx
lea eax, [ebx + 0x653c]
mov dword [eax - 0x140], edx
mov dword [eax], edx
lea eax, [eax + 4]
sub ecx, 1
jne 0x403ec0
push ecx
xor esi, esi
mov dword [ebp - 0x424], esp
mov ecx, esp
mov dword [ebx + 0x63c4], edx
inc esi
mov dword [ebx + 0x63c8], edx
push str.CDiskInfoDlg::CDiskInfoDlg___CENTER
mov dword [ebx + 0x63cc], edx
mov dword [ebx + 0x63d0], edx
mov dword [ebx + 0x63d4], edx
mov dword [ebx + 0x63d8], edx
mov dword [ebx + 0x63dc], edx
mov dword [ebx + 0xa8], esi
call fcn.00402306
mov byte [ebp - 4], 0x59
mov byte [ebp - 4], 0x58
call fcn.0043bfae
pop ecx
push esi
push 3
push 0x21
push 0x10
push 0x10
lea ecx, [ebx + 0x10c0]
call fcn.0046682e
call fcn.0046718b
call fcn.0046718b
mov edi, dword [sym.imp.USER32.dll_LoadIconW]
push 0x85
mov eax, dword [eax + 0xc]
push eax
call edi
mov esi, dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push eax
push 0xffffffffffffffff
push dword [ebx + 0x10c4]
call esi
call fcn.0046718b
call fcn.0046718b
push 0x89
mov eax, dword [eax + 0xc]
push eax
call edi
push eax
push 0xffffffffffffffff
push dword [ebx + 0x10c4]
call esi
call fcn.0046718b
call fcn.0046718b
push 0x86
mov eax, dword [eax + 0xc]
push eax
call edi
push eax
push 0xffffffffffffffff
push dword [ebx + 0x10c4]
call esi
call fcn.0046718b
call fcn.0046718b
push 0x87
mov eax, dword [eax + 0xc]
push eax
call edi
push eax
push 0xffffffffffffffff
push dword [ebx + 0x10c4]
call esi
call fcn.0046718b
call fcn.0046718b
push 0x88
mov eax, dword [eax + 0xc]
push eax
call edi
push eax
push 0xffffffffffffffff
push dword [ebx + 0x10c4]
call esi
lea esi, [ebx + 0xd4]
push dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
push str.AdvancedDiskSearch
push str.Setting
call edi
push dword [esi]
mov dword [ebx + 0x67cc], eax
push 0
push str.HD204UI
push 0x4ca374
call edi
push dword [esi]
mov dword [ebx + 0x67d0], eax
push 0
push str.IE8MODE
push 0x4ca374
call edi
push dword [esi]
mov dword [ebx + 0x67d4], eax
push 1
push str.AdataSsd
push 0x4ca374
call edi
push dword [esi]
mov dword [ebx + 0x67d8], eax
push 1
push str.IgnoreC4
push 0x4ca374
call edi
push dword [esi]
mov dword [ebx + 0x67dc], eax
push 0
push str.EventLog
push str.Setting
call edi
push dword [esi]
mov dword [ebx + 0x67e0], eax
push 0
push str.AlertMail
push str.Setting
call edi
push dword [esi]
mov dword [ebx + 0x67e4], eax
push 1
push str.AtaPassThroughSmart
push str.Setting
call edi
push dword [esi]
mov dword [ebx + 0x67e8], eax
push 0
push str.AutoAamApm
push str.Setting
call edi
push dword [esi]
mov dword [ebx + 0x67f0], eax
push 1
push str.DumpIdentifyDevice
push str.Setting
call edi
push dword [esi]
mov dword [ebx + 0x67f4], eax
push 1
push str.DumpSmartReadData
push str.Setting
call edi
push dword [esi]
mov dword [ebx + 0x67f8], eax
push 1
push str.DumpSmartReadThreshold
push str.Setting
call edi
push dword [esi]
mov dword [ebx + 0x67fc], eax
push 0
push str.ResidentMinimize
push str.Setting
call edi
push dword [esi]
mov dword [ebx + 0x1fc], eax
push 0
push str.ShowTemperatureIconOnly
push str.Setting
call edi
push dword [esi]
mov dword [ebx + 0x6800], eax
push 0
push str.AsciiView
push str.Setting
call edi
push dword [esi]
mov dword [ebx + 0x6804], eax
push 0
push str.SmartEnglish
push str.Setting
call edi
push dword [esi]
mov dword [ebx + 0x6808], eax
push 1
push str.AlertSound
push str.Setting
call edi
push dword [esi]
mov dword [ebx + 0x6814], eax
push 0
push str.HideNoSmartDisk
push str.Setting
call edi
push dword [esi]
mov dword [ebx + 0x6818], eax
push 0
push str.GreenMode
push str.Setting
call edi
push dword [esi]
mov dword [ebx + 0x6810], eax
push 0
push str.ExecFailed
push 0x4ca374
call edi
test eax, eax
je 0x4041c4
push dword [esi]
and dword [ebx + 0x67e8], 0
push 0x4cac14
push str.AtaPassThroughSmart
push str.Setting
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push dword [esi]
push 0x4cac18
push str.ExecFailed
push 0x4ca374
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push dword [esi]
lea eax, [ebp - 0x418]
push 0x100
push eax
push 0x4c9ff4
push 0x4cac1c
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x418]
push eax
call fcn.0048cb73
pop ecx
push eax
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebx + 0x63c0]
call fcn.00402266
push dword [esi]
push 0
push str.Gadget
push str.Setting
call edi
push dword [esi]
mov dword [ebx + 0x680c], eax
push 0
push str.AutoDetection
push str.Setting
call edi
push dword [esi]
mov dword [ebx + 0x63d4], eax
push 0
push str.RawValues
push str.Setting
call edi
mov dword [ebx + 0x63d8], eax
cmp eax, 3
jbe 0x40426c
and dword [ebx + 0x63d8], 0
push dword [esi]
push 0
push str.ZoomType
push str.Setting
call edi
push dword [esi]
mov dword [ebx + 0x10c], eax
push 0x96
push str.SAVE_SMART_PERIOD
push str.Setting
call edi
push dword [esi]
mov esi, str.Setting
mov dword [ebx + 0x3f0], eax
push 0xe10
push str.ALARM_TEMPERATURE_PERIOD
push esi
call edi
cmp dword [ebx + 0x67e0], 0
mov dword [ebx + 0x3f4], eax
je 0x4042c5
call fcn.004592d4
jmp 0x4042d5
push str.SYSTEMCurrentControlSetServicesEventLogApplicationCrystalDiskInfo
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
xor eax, eax
cmp dword [ebx + 0x67e8], eax
setne al
mov dword [ebx + 0x3e4], eax
push dword [ebx + 0xd4]
push 1
push str.CsmiType
push esi
call edi
mov edi, str.Background
mov dword [ebx + 0x374], eax
push edi
call fcn.0048cb73
pop ecx
push eax
push edi
lea ecx, [ebx + 0x198]
call fcn.00402266
push ecx
mov ecx, esp
mov dword [ebp - 0x424], esp
push str.CDiskInfoDlg::CDiskInfoDlg___END
call fcn.00402306
mov byte [ebp - 4], 0x5a
mov byte [ebp - 4], 0x58
call fcn.0043bfae
pop ecx
mov byte [ebp - 4], 0x56
mov ecx, dword [ebp - 0x420]
add ecx, 0xfffffff0
call fcn.0040259b
or dword [ebp - 4], 0xffffffff
mov eax, ebx
call fcn.00487e76
ret 8