Function at 0x473810
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a1621
mov eax, dword fs:[0]
push eax
mov eax, 0x1270
call fcn.0056e430
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
push str.OperateService::CheckAndStopDOMSService
lea ecx, [ebp - 0x1250]
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x473899
test byte [ecx + 0x1c], 1
je 0x473899
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5cf518
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x54
call fcn.00401840
add esp, 0xc
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x473e53
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1254], esi
push 0x800
lea eax, [ebp - 0xa18]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00571c00
add esp, 0x18
lea ecx, [ebp - 0x127c]
call fcn.004066e0
lea ecx, [ebp - 0x127c]
mov byte [ebp - 4], 2
call fcn.004068b0
lea eax, [ebp - 0x127c]
push eax
push 0x20019
push 0
push str.SOFTWARECanonDOMS
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x473968
mov byte [ebp - 0x124c], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x473dff
test byte [ecx + 0x1c], 1
je 0x473dff
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 1
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x55
jmp 0x473df2
lea ecx, [ebp - 0x127c]
call fcn.004068b0
push 0x800
lea eax, [ebp - 0x1218]
push 0
push eax
call fcn.00571c00
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0xa18]
add esp, 0xc
mov ecx, dword [ecx + 0x1c]
push eax
push str.TEMPPATH
call fcn.004f65f0
lea eax, [ebp - 0xa18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.InsDrv.ini
lea eax, [ebp - 0xa18]
push 0x400
push eax
call fcn.00574a48
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0xa18]
add esp, 0xc
push eax
push 0x400
lea eax, [ebp - 0x1218]
push eax
push 0x5c6930
push str.DomsServiceNAME
push str.Installer_Info
call edi
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0x1218]
push eax
push str.DOMSNAME
mov ecx, dword [ecx + 0x1c]
call fcn.004f6860
cmp dword [0x618500], 0
lea eax, [ebp - 0x1218]
push eax
push eax
push 0xa1
push dword [0x6184fc]
jne 0x473a92
call fcn.00502d80
add esp, 0x10
cmp eax, 7
jne 0x473c02
mov byte [ebp - 0x124c], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x473bfb
test byte [ecx + 0x1c], 1
je 0x473bfb
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 0
cmovae eax, dword [0x608f54]
mov edx, 0x5cf518
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x56
call fcn.004018a0
add esp, 0x10
xor edi, edi
jmp 0x473e04
call fcn.00502d80
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0xa18]
add esp, 0x10
mov ecx, dword [ecx + 0x1c]
push eax
push str.SILENTPATH
call fcn.004f65f0
cmp word [ebp - 0xa18], 0
jne 0x473aea
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0xa18]
push eax
push str.WindowsFolder
mov ecx, dword [ecx + 0x1c]
call fcn.004f65f0
push str.silent.ini
lea eax, [ebp - 0xa18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x473b31
test byte [ecx + 0x1c], 4
je 0x473b31
cmp dword [0x608f68], 8
lea edx, [ebp - 0xa18]
push edx
mov eax, 0x608f54
mov edx, 0x5cf518
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x57
call fcn.00405920
add esp, 0x10
lea eax, [ebp - 0xa18]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x5c6930
push str.DomsServiceCheck
push str.DOMS
call edi
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x473b9c
test byte [ecx + 0x1c], 4
je 0x473b9c
cmp dword [0x608f68], 8
lea edx, [ebp - 0x218]
push edx
mov eax, 0x608f54
mov edx, 0x5cf518
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x58
call fcn.00405920
add esp, 0x10
push 0x5cb138
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x473c02
mov byte [ebp - 0x124c], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x473bfb
test byte [ecx + 0x1c], 1
je 0x473bfb
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 0
cmovae eax, dword [0x608f54]
mov edx, 0x5cf518
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x59
call fcn.004018a0
add esp, 0x10
xor edi, edi
jmp 0x473e04
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0xa18]
push eax
push str.TEMPPATH
mov ecx, dword [ecx + 0x1c]
call fcn.004f65f0
lea eax, [ebp - 0xa18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0xa1a], 0x5c
je 0x473c4d
push 0x5c692c
lea eax, [ebp - 0xa18]
push 0x400
push eax
call fcn.00574a48
add esp, 0xc
push str.InsDrv.ini
lea eax, [ebp - 0xa18]
push 0x400
push eax
call fcn.00574a48
add esp, 0xc
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x473cad
test byte [ecx + 0x1c], 4
je 0x473cad
cmp dword [0x608f68], 8
lea edx, [ebp - 0xa18]
push edx
mov eax, 0x608f54
mov edx, 0x5cf518
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x5a
call fcn.00405920
add esp, 0x10
lea eax, [ebp - 0xa18]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x5c6930
push str.DomsServiceSTOP
push str.Installer_Info
call edi
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x473d18
test byte [ecx + 0x1c], 4
je 0x473d18
cmp dword [0x608f68], 8
lea edx, [ebp - 0x218]
push edx
mov eax, 0x608f54
mov edx, 0x5cf518
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x5b
call fcn.00405920
add esp, 0x10
push 0x5ca378
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x473db6
mov ecx, dword [0x6184f4]
push 0
mov ecx, dword [ecx + 4]
call fcn.00509a20
push eax
lea eax, [ebp - 0x1254]
push 0x5c6b38
push eax
call fcn.00408a60
mov eax, dword [0x6184f0]
add esp, 0xc
mov esi, dword [ebp - 0x1254]
mov eax, dword [eax + 4]
push esi
mov eax, dword [eax + 4]
add eax, 0x5814
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x473dbc
test byte [ecx + 0x1c], 4
je 0x473dbc
cmp dword [0x608f68], 8
mov eax, 0x608f54
push esi
cmovae eax, dword [0x608f54]
mov edx, 0x5cf518
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x5c
call fcn.00405920
add esp, 0x10
mov ecx, dword [0x608f30]
mov byte [ebp - 0x124c], 1
cmp ecx, 0x608f30
je 0x473dff
test byte [ecx + 0x1c], 1
je 0x473dff
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 1
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x5d
mov edx, 0x5cf518
call fcn.004018a0
add esp, 0x10
mov edi, 1
lea ecx, [ebp - 0x127c]
call fcn.004067f0
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x473e2b
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x1250]
call fcn.0040a570
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004013a0
int3