Function at 0x403240
Capabilities:
Delete file
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40558d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7b4
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebp, ebp
lea ebx, [esi + 0x8c]
push 0xffffffffffffffff
push ebp
mov ecx, ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x34], ebx
call sub.MFC42.DLL_CStringArray::SetSize
lea ecx, [esi + 0xa0]
push 0xffffffffffffffff
push ebp
mov dword [esp + 0x54], ecx
call sub.MFC42.DLL_CStringArray::SetSize
push str.C:SmtTemp.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x40]
mov dword [esp + 0x40], ebp
push eax
push 0x20019
push ebp
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebp
jne 0x403e80
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0xc1]
mov byte [esp + 0xc0], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xb8]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x44]
push ebp
push ebp
stosb byte es:[edi], al
push ebp
lea eax, [esp + 0xd0]
push edx
push eax
push ebp
push ecx
mov dword [esp + 0x38], 0x200
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x403539
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x14]
push edx
push 0x20019
lea eax, [esp + 0xc8]
push 0
push eax
push ecx
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40335a
inc ebp
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0xc0]
mov dword [esp + 0x18], 0x200
rep stosd dword es:[edi], eax
jmp 0x403507
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x3c5]
mov byte [esp + 0x3c4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
stosb byte es:[edi], al
lea eax, [esp + 0x3c4]
push edx
push eax
push 0
push 0
push str.DisplayName
push ecx
mov dword [esp + 0x30], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4033cc
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0xc0]
inc ebp
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], 0x200
test eax, eax
je 0x403507
jmp 0x403500
mov al, byte [esp + 0x3c4]
test al, al
je 0x4034df
cmp al, 0x20
je 0x4034df
mov al, byte [esp + 0xc0]
cmp al, 0x51
je 0x40341a
cmp al, 0x4b
jne 0x4033fc
cmp byte [esp + 0xc1], 0x42
je 0x40341a
lea edx, [esp + 0xc0]
push 0x408054
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x40349c
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x3c4]
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0x7d0], 0
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::MakeUpper
push str.WINDOWS
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x403488
mov eax, dword [esp + 0x14]
inc ebp
test eax, eax
mov dword [esp + 0x18], 0x200
je 0x403472
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov dword [esp + 0x7cc], 0xffffffff
call fcn.00404940
jmp 0x403507
lea ecx, [esp + 0x10]
mov dword [esp + 0x7cc], 0xffffffff
call fcn.00404940
mov eax, dword [ebx + 8]
lea ecx, [esp + 0xc0]
push ecx
push eax
mov ecx, ebx
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x3c4]
push edx
mov eax, dword [ecx + 8]
push eax
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0xc0]
mov dword [esp + 0x18], 0x200
rep stosd dword es:[edi], eax
inc ebp
jmp 0x403507
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0xc0]
inc ebp
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], 0x200
test eax, eax
je 0x403507
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0xb8]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x44]
push 0
push 0
push 0
lea edx, [esp + 0xd0]
push ecx
push edx
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x403311
mov eax, dword [esp + 0x40]
test eax, eax
je 0x403548
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [esi + 0x94]
xor edi, edi
test ebp, ebp
jle 0x403646
mov bl, 3
push 0x40846c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
push 0x40846c
lea ecx, [esp + 0x2c]
mov dword [esp + 0x7d0], 1
call sub.MFC42.DLL_CString::CString_2
push 0x40846c
lea ecx, [esp + 0x14]
mov byte [esp + 0x7d0], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x44]
push edi
push ecx
mov ecx, dword [esp + 0x54]
mov byte [esp + 0x7d4], bl
call fcn.00402a50
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x7d0], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x44]
mov byte [esp + 0x7cc], bl
call fcn.00404940
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call sub.MFC42.DLL_CString::CString_1
push ecx
mov byte [esp + 0x7d4], 5
mov ecx, esp
mov dword [esp + 0x60], esp
push str.C:SmtTemp.txt
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
mov byte [esp + 0x7d4], bl
call fcn.00402a80
lea ecx, [esp + 0x10]
mov byte [esp + 0x7cc], 2
call fcn.00404940
lea ecx, [esp + 0x28]
mov byte [esp + 0x7cc], 1
call fcn.00404940
lea ecx, [esp + 0x14]
mov dword [esp + 0x7cc], 0xffffffff
call fcn.00404940
inc edi
cmp edi, ebp
jl 0x40355a
mov ecx, esi
call fcn.00403070
mov ecx, esi
call fcn.00402d40
lea edi, [esi + 0x60]
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.00404200
push eax
lea ecx, [esi + 0x80]
mov dword [esp + 0x7d0], 6
call sub.MFC42.DLL_CString::operator_1
or ebx, 0xffffffff
lea ecx, [esp + 0x28]
mov dword [esp + 0x7cc], ebx
call fcn.00404940
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push str.sabun
call sub.MFC42.DLL_CString::CString_2
push ecx
mov dword [esp + 0x7d4], 7
mov ecx, esp
mov dword [esp + 0x60], esp
push str.CLSID0D202373_A939_4c62_98A1_967EC4FB2995
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x30]
push 0x80000000
push ecx
mov ecx, edi
mov dword [esp + 0x7dc], ebx
call fcn.00404030
lea ecx, [esi + 0x88]
push eax
mov dword [esp + 0x7d0], 8
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x28]
mov dword [esp + 0x7cc], ebx
call fcn.00404940
mov edx, dword [esi + 0x94]
mov eax, dword [esi + 0xd0]
push 0x40846c
lea ecx, [esp + 0x70]
mov dword [esp + 0x48], edx
mov dword [esp + 0x18], eax
call sub.MFC42.DLL_CString::CString_2
push 0x40846c
lea ecx, [esp + 0x68]
mov dword [esp + 0x7d0], 9
call sub.MFC42.DLL_CString::CString_2
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x2c0]
push str.c:SmtTemp.txt
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x2c4]
mov byte [esp + 0x7d0], 0xa
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 8
lea ecx, [esp + 0xa0]
call sub.MFC42.DLL_CStdioFile::CStdioFile
lea ecx, [esp + 0x70]
mov byte [esp + 0x7cc], 0xb
call sub.MFC42.DLL_CException::CException
lea ecx, [esp + 0x80]
mov byte [esp + 0x7cc], 0xc
call sub.MFC42.DLL_CString::CString
mov edi, 0x406654
mov byte [esp + 0x7cc], 0xd
mov dword [esp + 0x70], edi
push 0
lea ecx, [esp + 0x84]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], ebx
call sub.MFC42.DLL_CString::operator
push 0x40846c
lea ecx, [esp + 0x6c]
mov byte [esp + 0x7d0], 0xe
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x70]
lea eax, [esp + 0x2c0]
push edx
push 0x40
push eax
lea ecx, [esp + 0xac]
mov byte [esp + 0x7d8], 0xf
call sub.MFC42.DLL_CStdioFile::Open
test eax, eax
jne 0x403860
lea ecx, [esp + 0x68]
mov byte [esp + 0x7cc], 0xe
call fcn.00404940
mov dword [esp + 0x70], edi
lea ecx, [esp + 0x80]
mov byte [esp + 0x7cc], 0x10
call fcn.00404940
lea ecx, [esp + 0xa0]
mov dword [esp + 0x70], 0x406640
mov byte [esp + 0x7cc], 0xa
call fcn.00404aa2
lea ecx, [esp + 0x64]
mov byte [esp + 0x7cc], 9
call fcn.00404940
mov dword [esp + 0x7cc], ebx
jmp 0x403e77
push 0x40846c
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_2
push 0x40846c
lea ecx, [esp + 0x34]
mov byte [esp + 0x7d0], 0x11
call sub.MFC42.DLL_CString::CString_2
push 0x40846c
lea ecx, [esp + 0x4c]
mov byte [esp + 0x7d0], 0x12
call sub.MFC42.DLL_CString::CString_2
push 0x40846c
lea ecx, [esp + 0x58]
mov byte [esp + 0x7d0], 0x13
call sub.MFC42.DLL_CString::CString_2
mov byte [esp + 0x7cc], 0x14
mov bl, 0x19
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0xa4]
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x403da8
push 0x40846c
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x44]
xor edi, edi
test eax, eax
mov byte [esp + 0x7cc], 0x15
jle 0x403d92
push 0x40846c
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::CString_2
push 0x40846c
lea ecx, [esp + 0x40]
mov byte [esp + 0x7d0], 0x16
call sub.MFC42.DLL_CString::CString_2
push ecx
mov ecx, dword [esp + 0x30]
mov edx, esp
mov dword [esp + 0x3c], esp
push edi
push edx
mov byte [esp + 0x7d8], 0x17
call fcn.00402a50
push ecx
mov byte [esp + 0x7d4], 0x18
mov ecx, esp
mov dword [esp + 0x18], esp
push str.CLSID0D202373_A939_4c62_98A1_967EC4FB2995Soft
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x68]
push 0x80000000
push eax
lea ecx, [esi + 0x60]
mov byte [esp + 0x7dc], 0x17
call fcn.00404030
push 0x4080ac
lea ecx, [esp + 0x20]
mov byte [esp + 0x7d0], bl
call sub.MFC42.DLL_CString::Find
mov ecx, dword [esp + 0x1c]
mov ebp, eax
mov eax, dword [ecx - 8]
test eax, eax
je 0x403d5f
test ebp, ebp
jl 0x403d5f
lea edx, [esp + 0x28]
push ebp
push edx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x7d0], 0x1a
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x28]
mov byte [esp + 0x7cc], bl
call fcn.00404940
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x84]
mov eax, dword [eax - 8]
sub eax, ebp
dec eax
push eax
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x7d0], 0x1b
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x84]
mov byte [esp + 0x7cc], bl
call fcn.00404940
lea ebp, [esi + 0x84]
lea edx, [esp + 0x50]
push edx
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, eax
mov dword [esp + 0x10], esi
jle 0x403a81
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x88]
push esi
push eax
add ecx, 0xc8
call fcn.00402a50
mov eax, dword [eax]
mov ecx, ebp
push eax
mov byte [esp + 0x7d0], 0x1c
call sub.MFC42.DLL_CString::Find
test eax, eax
lea ecx, [esp + 0x88]
mov byte [esp + 0x7cc], bl
setge byte [esp + 0x27]
call fcn.00404940
mov al, byte [esp + 0x27]
test al, al
jne 0x403bc7
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
jl 0x403a28
mov esi, dword [esp + 0x20]
push 0x408170
mov ecx, ebp
call sub.MFC42.DLL_CString::Find
test eax, eax
jge 0x403d19
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x90]
push edi
push edx
call fcn.00402a50
mov eax, dword [eax]
lea ecx, [esp + 0x54]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push 0x408168
push ecx
mov byte [esp + 0x7dc], 0x1f
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x90]
mov byte [esp + 0x7cc], bl
call fcn.00404940
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push str.DisplayVersion
call sub.MFC42.DLL_CString::CString_2
push ecx
lea edx, [esp + 0x5c]
mov ecx, esp
mov dword [esp + 0x64], esp
push edx
mov byte [esp + 0x7d8], 0x20
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0xa4]
push 0x80000002
lea ecx, [esi + 0x60]
push eax
mov byte [esp + 0x7dc], bl
mov dword [esp + 0x48], ecx
call fcn.00404030
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x7d0], 0x21
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x9c]
mov byte [esp + 0x7cc], bl
call fcn.00404940
mov eax, dword [esp + 0x10]
push edi
test eax, eax
je 0x403c4e
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x34]
call fcn.00402a50
mov edx, dword [eax]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [ebp]
push ecx
mov ecx, dword [esi + 0x88]
push edx
push eax
push ecx
push str.http:__202.31.6.80
lea edx, [esp + 0x4c]
push str._s_softcompareinsert.asp_sabun_ssoft_sgubun1com_sbo_sver_skey_s
push edx
mov byte [esp + 0x7f0], 0x22
call sub.MFC42.DLL_CString::Format
add esp, 0x24
lea ecx, [esp + 0x58]
mov byte [esp + 0x7cc], bl
call fcn.00404940
push ecx
lea eax, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x60], esp
push eax
jmp 0x403cb0
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x94]
push esi
push edx
lea ecx, [eax + 0xdc]
mov dword [esp + 0x18], 1
call fcn.00402a50
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x7d0], 0x1d
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x94]
mov byte [esp + 0x7cc], bl
call fcn.00404940
push esi
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esi + 0xf0]
call fcn.00402a50
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x7d0], 0x1e
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x8c]
mov byte [esp + 0x7cc], bl
call fcn.00404940
jmp 0x403a85
lea ecx, [esp + 0x9c]
push ecx
mov ecx, dword [esp + 0x34]
call fcn.00402a50
mov edx, dword [eax]
mov eax, dword [esp + 0x48]
mov ecx, dword [ebp]
push edx
mov edx, dword [esi + 0x88]
push eax
push ecx
push edx
push str.http:__202.31.6.80
lea eax, [esp + 0x44]
push str._s_softcompareinsert.asp_sabun_ssoft_sgubun0ver_skey_s
push eax
mov byte [esp + 0x7e8], 0x23
call sub.MFC42.DLL_CString::Format
add esp, 0x1c
lea ecx, [esp + 0x98]
mov byte [esp + 0x7cc], bl
call fcn.00404940
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x60], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00402c50
push ecx
mov ecx, dword [esp + 0x50]
mov eax, esp
mov dword [esp + 0x60], esp
push edi
push eax
call fcn.00402a50
push ecx
mov byte [esp + 0x7d4], 0x24
mov ecx, esp
mov dword [esp + 0x18], esp
push edi
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.00402a50
push ecx
mov byte [esp + 0x7d8], 0x25
mov ecx, esp
mov dword [esp + 0xc0], esp
push str.CLSID0D202373_A939_4c62_98A1_967EC4FB2995Soft
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x44]
push 0x80000000
mov byte [esp + 0x7dc], bl
call fcn.00404140
lea ecx, [esp + 0x60]
mov byte [esp + 0x7cc], 0x17
call fcn.00404940
lea ecx, [esp + 0x3c]
mov byte [esp + 0x7cc], 0x16
call fcn.00404940
lea ecx, [esp + 0x34]
mov byte [esp + 0x7cc], 0x15
call fcn.00404940
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x20]
inc edi
cmp edi, eax
jl 0x4038f7
jmp 0x403d92
lea ecx, [esp + 0x60]
mov byte [esp + 0x7cc], 0x17
call fcn.00404940
lea ecx, [esp + 0x3c]
mov byte [esp + 0x7cc], 0x16
call fcn.00404940
lea ecx, [esp + 0x34]
mov byte [esp + 0x7cc], 0x15
call fcn.00404940
lea ecx, [esp + 0x50]
mov byte [esp + 0x7cc], 0x14
call fcn.00404940
jmp 0x4038ba
lea ecx, [esp + 0x54]
mov byte [esp + 0x7cc], 0x13
call fcn.00404940
lea ecx, [esp + 0x48]
mov byte [esp + 0x7cc], 0x12
call fcn.00404940
lea ecx, [esp + 0x30]
mov byte [esp + 0x7cc], 0x11
call fcn.00404940
lea ecx, [esp + 0x1c]
mov byte [esp + 0x7cc], 0xf
call fcn.00404940
lea ecx, [esp + 0xa0]
call sub.MFC42.DLL_CStdioFile::Close
mov ecx, dword [esp + 0x2c]
push 0xffffffffffffffff
push 0
call sub.MFC42.DLL_CStringArray::SetSize
mov ecx, dword [esp + 0x4c]
push 0xffffffffffffffff
push 0
call sub.MFC42.DLL_CStringArray::SetSize
lea ecx, [esp + 0x68]
mov byte [esp + 0x7cc], 0xe
call fcn.00404940
mov dword [esp + 0x70], 0x406654
lea ecx, [esp + 0x80]
mov byte [esp + 0x7cc], 0x26
call fcn.00404940
lea ecx, [esp + 0xa0]
mov dword [esp + 0x70], 0x406640
mov byte [esp + 0x7cc], 0xa
call fcn.00404aa2
lea ecx, [esp + 0x64]
mov byte [esp + 0x7cc], 9
call fcn.00404940
mov dword [esp + 0x7cc], 0xffffffff
lea ecx, [esp + 0x6c]
call fcn.00404940
mov ecx, dword [esp + 0x7c4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x7c0
ret