Function at 0x408720
Capabilities:
Create directory
Create shortcut via ishelllink
Get common file path
Get installed programs
Persist via run registry key
Query or enumerate registry value
Read .ini file
Resolve function by parsing pe exports
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42e40f
push eax
mov eax, 0x1604
mov dword fs:[0], esp
call fcn.004154c0
push ebx
push ebp
mov ebp, ecx
push 1
mov dword [esp + 0x1618], 0
call fcn.00424c05
mov eax, dword [0x43c620]
mov dword [esp + 0xc], eax
lea ebx, [ebp + 0x134]
push 0x43adcc
mov ecx, ebx
mov byte [esp + 0x1618], 1
call fcn.0042610f
push 0
mov ecx, ebp
call fcn.00424c05
mov ecx, dword [0x43c620]
mov dword [esp + 0x28], ecx
mov edx, dword [ebp + 0x150]
lea eax, [esp + 0x28]
push edx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
push eax
mov byte [esp + 0x1620], 2
call fcn.0042187d
add esp, 0xc
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x1c]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0x43ad90
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4094f5
push esi
push edi
mov ecx, 0xf
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov ecx, 0x3f
lea edi, [esp + 0x63c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x73c]
push 0xff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x640]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.TdxUnInstall.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x63c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x1624]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x640]
lea edx, [esp + 0x740]
push ecx
push str._s__s_
push edx
call fcn.00415274
mov edi, dword [ebp + 0x158]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x3c]
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ecx
lea ecx, [esp + 0x40]
push ecx
push 1
push eax
push str.DisplayName
push edx
call esi
lea edi, [esp + 0x73c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x73c]
push ecx
mov ecx, dword [esp + 0x28]
push eax
push 1
push 0
push str.UninstallString
push ecx
call esi
mov edx, dword [esp + 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
push 0x43ad54
mov ecx, ebx
call fcn.0042610f
push 0
mov ecx, ebp
call fcn.00424c05
lea eax, [esp + 0x24]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders_
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4094eb
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x244]
push ecx
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x3c]
push edx
push eax
push 0
mov ebx, 0x200
push str.Programs
push ecx
mov dword [esp + 0x44], ebx
call edi
lea edx, [esp + 0x2c]
lea eax, [esp + 0x1414]
push edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x3c]
push eax
push ecx
push 0
push str.Desktop
push edx
mov dword [esp + 0x44], ebx
call edi
mov eax, dword [esp + 0x24]
push eax
call esi
lea edi, [esp + 0x244]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x243], 0x5c
je 0x4089b7
mov byte [esp + ecx + 0x244], 0x5c
mov byte [esp + ecx + 0x245], 0
mov ecx, dword [0x43c620]
mov dword [esp + 0x28], ecx
mov edx, dword [ebp + 0x13c]
lea eax, [esp + 0x28]
push edx
push str._sconnect.cfg
push eax
mov byte [esp + 0x1628], 3
call fcn.0042187d
mov ecx, dword [esp + 0x34]
add esp, 0xc
push ecx
push 0
push str.HASHDIR
push str.STARTMENU
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x83c]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x244]
push ebx
lea eax, [esp + 0x840]
push edx
push eax
call fcn.00415540
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0xc
test esi, esi
je 0x408b38
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x78]
push ecx
push 0x3c
push edx
push 0x43e158
push str.HDIRNAME
push str.STARTMENU
call fcn.00402ab0
lea edi, [esp + 0x90]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x18
mov byte [esp + 0xb3], 0
lea edx, [esp + 0x83c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x840]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
mov ecx, dword [ebp + 0x19c]
lea edx, [esp + 0x14]
push ecx
push str.FOLDER_02d
push edx
call fcn.0042187d
mov eax, dword [ebp + 0x1a8]
mov ecx, dword [esp + 0x20]
add esp, 0xc
push eax
lea eax, [esp + 0x840]
push eax
push ecx
push str.FOLDER
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [ebp + 0x19c]
mov ecx, 0x80
inc eax
lea edi, [esp + 0x244]
mov dword [ebp + 0x19c], eax
xor eax, eax
rep stosd dword es:[edi], eax
lea edx, [esp + 0x83c]
push 0x200
lea eax, [esp + 0x248]
push edx
push eax
call fcn.00415540
lea edi, [esp + 0x250]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x243], 0x5c
je 0x408b38
mov byte [esp + ecx + 0x244], 0x5c
mov byte [esp + ecx + 0x245], 0
mov edi, dword [ebp + 0x150]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x244]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x248]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
mov ecx, dword [ebp + 0x19c]
lea edx, [esp + 0x14]
push ecx
push str.FOLDER_02d
push edx
call fcn.0042187d
mov eax, dword [ebp + 0x1a8]
mov ecx, dword [esp + 0x20]
add esp, 0xc
push eax
lea eax, [esp + 0x248]
push eax
push ecx
push str.FOLDER
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov edx, dword [ebp + 0x19c]
push 0
inc edx
mov dword [ebp + 0x19c], edx
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [esp + 0x10]
push edx
push 0x4337f0
push 1
push 0
push 0x4337e0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4094da
mov eax, dword [str.NodeTool.exe]
mov ecx, dword [0x43ad20]
mov edx, dword [0x43ad24]
mov dword [esp + 0xc44], eax
mov al, byte [0x43ad28]
mov dword [esp + 0xc48], ecx
mov byte [esp + 0xc50], al
mov ecx, 0x3b
xor eax, eax
lea edi, [esp + 0xc51]
mov dword [esp + 0xc4c], edx
mov edx, dword [0x43ad10]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x1b5
xor eax, eax
lea edi, [esp + 0xd3e]
mov dword [esp + 0xb8], edx
rep stosd dword es:[edi], eax
mov ecx, dword [0x43ad0c]
lea edx, [esp + 0xe6]
stosw word es:[edi], ax
mov eax, dword [0x43ad14]
mov dword [esp + 0xb4], ecx
mov cl, byte [0x43ad18]
mov dword [esp + 0xbc], eax
mov byte [esp + 0xc0], cl
mov ecx, 9
xor eax, eax
lea edi, [esp + 0xc1]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x57
xor eax, eax
lea edi, [esp + 0xe6]
mov ebx, 3
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 0x158]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xd3e]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, ebx
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0x154]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xe38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, ebx
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x63c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, ebx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x158]
lea edx, [esp + 0x118]
push ecx
push 0x43ad04
push edx
call fcn.00415274
mov eax, dword [ebp + 0x15c]
push 0x43e158
push eax
call fcn.00414fac
add esp, 0x14
test eax, eax
je 0x408d97
mov edi, dword [ebp + 0x15c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xf32]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14a]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, ebx
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0x160]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, ebx
mov ebx, 4
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x164]
push 0x43e158
push eax
call fcn.00414fac
add esp, 8
test eax, eax
je 0x408e04
mov edi, dword [ebp + 0x164]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x102c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x17c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0x168]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x16c]
push 0x43e158
push eax
call fcn.00414fac
add esp, 8
test eax, eax
je 0x408e71
mov edi, dword [ebp + 0x16c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1126]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1ae]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0x170]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x174]
push 0x43e158
push eax
call fcn.00414fac
add esp, 8
test eax, eax
je 0x408ede
mov edi, dword [ebp + 0x174]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1220]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1e0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0x178]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x43c620]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
push 0x43a588
lea ecx, [esp + 0x1628]
mov byte [esp + 0x1620], 5
call fcn.00426288
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1624]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
xor esi, esi
test ebx, ebx
jle 0x409051
lea eax, [esp + 0xb4]
lea edi, [esp + 0xc44]
mov dword [esp + 0x34], eax
cmp esi, 2
je 0x409037
mov eax, dword [ebp + 0x560]
test eax, eax
je 0x408f4d
test esi, esi
je 0x409037
mov ecx, dword [esp + 0x1624]
push edi
push ecx
lea edx, [esp + 0x28]
push str._s_s
push edx
call fcn.0042187d
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x254]
push eax
push ecx
lea edx, [esp + 0x30]
push str._s_s.lnk
push edx
call fcn.0042187d
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x40]
add esp, 0x20
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x50]
mov eax, dword [esp + 0x10]
push 0x43e158
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push 0x433800
mov edx, dword [eax]
push eax
call dword [edx]
test eax, eax
jl 0x409037
mov eax, dword [esp + 0x18]
lea edx, [esp + 0xa3c]
push 0x104
push edx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0xa3c]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp + 0x1a0]
lea ecx, [esp + 0x14]
push eax
push str.FILE_02d
push ecx
call fcn.0042187d
mov eax, dword [ebp + 0x1a8]
mov edx, dword [esp + 0x24]
add esp, 0xc
push eax
mov eax, dword [esp + 0x18]
push edx
push eax
push str.FILE
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [ebp + 0x1a0]
inc eax
mov dword [ebp + 0x1a0], eax
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esp + 0x34]
inc esi
add edi, 0xfa
add ecx, 0x32
cmp esi, ebx
mov dword [esp + 0x34], ecx
jl 0x408f32
lea edx, [esp + 0xe38]
lea ecx, [esp + 0x20]
push edx
call fcn.0042610f
lea eax, [esp + 0x118]
lea ecx, [esp + 0x244]
push eax
push ecx
lea edx, [esp + 0x20]
push str._s_s.lnk
push edx
call fcn.0042187d
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1634]
add esp, 0x10
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x24]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp + 0x10]
push 0x43e158
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1624]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x2c]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push 0x433800
mov edx, dword [eax]
push eax
call dword [edx]
test eax, eax
jl 0x40915b
mov eax, dword [esp + 0x18]
lea edx, [esp + 0xa3c]
push 0x104
push edx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0xa3c]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp + 0x1a0]
lea ecx, [esp + 0x14]
push eax
push str.FILE_02d
push ecx
call fcn.0042187d
mov eax, dword [ebp + 0x1a8]
mov edx, dword [esp + 0x24]
add esp, 0xc
push eax
mov eax, dword [esp + 0x18]
push edx
push eax
push str.FILE
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov esi, dword [ebp + 0x1a0]
mov eax, dword [esp + 0x1c]
inc esi
push eax
mov dword [ebp + 0x1a0], esi
mov ecx, dword [eax]
call dword [ecx + 8]
push 0x43acd8
lea ecx, [ebp + 0x134]
call fcn.0042610f
push 0
mov ecx, ebp
call fcn.00424c05
mov edi, dword [ebp + 0x154]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x540]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x43e158
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x448]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov ebx, 1
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0x158]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0x17c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00414fac
add esp, 8
test eax, eax
je 0x40923e
mov edi, dword [ebp + 0x17c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x572]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, 2
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x476]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0x180]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x184]
push 0x43e158
push eax
call fcn.00414fac
add esp, 8
test eax, eax
je 0x4092ab
mov edi, dword [ebp + 0x184]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x5a4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x4a8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0x188]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x18c]
push 0x43e158
push eax
call fcn.00414fac
add esp, 8
test eax, eax
je 0x409318
mov edi, dword [ebp + 0x18c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x5d6]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x4da]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0x190]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x194]
push 0x43e158
push eax
call fcn.00414fac
add esp, 8
test eax, eax
je 0x409385
mov edi, dword [ebp + 0x194]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x608]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x50c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0x198]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1624]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [esp + 0x10]
push 0x43e158
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test ebx, ebx
jle 0x4094ae
xor esi, esi
mov eax, dword [esp + 0x1624]
lea edx, [esp + esi + 0x540]
push edx
push eax
lea ecx, [esp + 0x28]
push str._s_s
push ecx
call fcn.0042187d
lea edx, [esp + esi + 0x454]
lea eax, [esp + 0x1424]
push edx
push eax
lea ecx, [esp + 0x30]
push str._s_s.lnk
push ecx
call fcn.0042187d
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
add esp, 0x20
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x50]
mov eax, dword [esp + 0x10]
push 0x43e158
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
push 0x433800
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x4094a4
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xa3c]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xa3c]
push 1
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov edx, dword [ebp + 0x1a0]
lea eax, [esp + 0x14]
push edx
push str.FILE_02d
push eax
call fcn.0042187d
mov eax, dword [ebp + 0x1a8]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
add esp, 0xc
push eax
push ecx
push edx
push str.FILE
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov edi, dword [ebp + 0x1a0]
mov eax, dword [esp + 0x1c]
inc edi
push eax
mov dword [ebp + 0x1a0], edi
mov ecx, dword [eax]
call dword [ecx + 8]
add esi, 0x32
dec ebx
jne 0x4093b0
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
lea ecx, [esp + 0x20]
mov byte [esp + 0x161c], 4
call fcn.00425fca
lea ecx, [esp + 0x18]
mov byte [esp + 0x161c], 3
call fcn.00425fca
lea ecx, [esp + 0x28]
mov byte [esp + 0x161c], 2
call fcn.00425fca
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
jmp 0x409508
mov eax, dword [ebp + 0x1c]
push 0x10
push 0x43ac88
push eax
call fcn.00402ae0
add esp, 0xc
lea ecx, [esp + 0x28]
mov byte [esp + 0x1614], 1
call fcn.00425fca
lea ecx, [esp + 0xc]
mov byte [esp + 0x1614], 0
call fcn.00425fca
lea ecx, [esp + 0x161c]
mov dword [esp + 0x1614], 0xffffffff
call fcn.00425fca
mov ecx, dword [esp + 0x160c]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1610
ret 4