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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40cba4
push eax
mov eax, 0x13c4
mov dword fs:[0], esp
call fcn.0040bf70
push ebx
push ebp
mov ebp, ecx
push 1
mov dword [esp + 0x13d8], 0
call sub.MFC42.DLL_CWnd::UpdateData
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ebx, [ebp + 0xc4]
push 0x410870
mov ecx, ebx
mov byte [esp + 0x13d8], 1
call fcn.0040bb40
push 0
mov ecx, ebp
call sub.MFC42.DLL_CWnd::UpdateData
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 0xe0]
lea ecx, [esp + 0x28]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
push ecx
mov byte [esp + 0x13e0], 2
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x18]
push 0
push edx
push 0
push 0xf003f
push 0
push 0x410834
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x407909
push esi
push edi
mov ecx, 0xf
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov ecx, 0x3f
lea edi, [esp + 0x5fc]
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 + 0x6fc]
push 0xff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x600]
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.TdxUnInstall.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x5fc]
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 + 0x13e4]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x600]
lea edx, [esp + 0x700]
push ecx
push str._s__s_
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, dword [ebp + 0xe8]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x38]
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x20]
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 + 0x38]
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 + 0x3c]
push ecx
push 1
push eax
push str.DisplayName
push edx
call esi
lea edi, [esp + 0x6fc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x6fc]
push ecx
mov ecx, dword [esp + 0x24]
push eax
push 1
push 0
push str.UninstallString
push ecx
call esi
mov edx, dword [esp + 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
push 0x4107f8
mov ecx, ebx
call fcn.0040bb40
push 0
mov ecx, ebp
call sub.MFC42.DLL_CWnd::UpdateData
lea eax, [esp + 0x20]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders_
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4078ff
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x3fc]
push ecx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x38]
push edx
push eax
push 0
mov ebx, 0x200
push str.Programs
push ecx
mov dword [esp + 0x40], ebx
call edi
lea edx, [esp + 0x28]
lea eax, [esp + 0x11d4]
push edx
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x38]
push eax
push ecx
push 0
push str.Desktop
push edx
mov dword [esp + 0x40], ebx
call edi
mov eax, dword [esp + 0x20]
push eax
call esi
lea edi, [esp + 0x3fc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x3fb], 0x5c
je 0x406f47
mov byte [esp + ecx + 0x3fc], 0x5c
mov byte [esp + ecx + 0x3fd], 0
mov edi, dword [ebp + 0xe0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3fc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x400]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp + 0x12c]
lea edx, [esp + 0x18]
push ecx
push str.FOLDER_02d
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebp + 0x138]
mov ecx, dword [esp + 0x24]
add esp, 0xc
push eax
lea eax, [esp + 0x400]
push eax
push ecx
push str.FOLDER
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov edx, dword [ebp + 0x12c]
push 0
inc edx
mov dword [ebp + 0x12c], edx
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [esp + 0x10]
push edx
push 0x40ddf8
push 1
push 0
push 0x40dde8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4078ff
mov eax, dword [str.NodeTool.exe]
mov ecx, dword [0x4107e4]
mov edx, dword [0x4107e8]
mov dword [esp + 0xa04], eax
mov al, byte [0x4107ec]
mov dword [esp + 0xa08], ecx
mov byte [esp + 0xa10], al
mov ecx, 0x3b
xor eax, eax
lea edi, [esp + 0xa11]
mov dword [esp + 0xa0c], edx
mov edx, dword [0x4107d4]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x1b5
xor eax, eax
lea edi, [esp + 0xafe]
mov dword [esp + 0x78], edx
rep stosd dword es:[edi], eax
mov ecx, dword [0x4107d0]
lea edx, [esp + 0xa6]
stosw word es:[edi], ax
mov eax, dword [0x4107d8]
mov dword [esp + 0x74], ecx
mov cl, byte [0x4107dc]
mov dword [esp + 0x7c], eax
mov byte [esp + 0x80], cl
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x81]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x57
xor eax, eax
lea edi, [esp + 0xa6]
mov ebx, 3
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 0xe8]
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 + 0xafe]
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 + 0xe4]
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 + 0xbf8]
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 + 0x5fc]
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 + 0xe8]
lea edx, [esp + 0xd8]
push ecx
push 0x4107c8
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [ebp + 0xec]
push 0x411d40
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 0x14
test eax, eax
je 0x4071a3
mov edi, dword [ebp + 0xec]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xcf2]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10a]
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 + 0xf0]
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 + 0xf4]
push 0x411d40
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x407211
mov edi, dword [ebp + 0xf4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xdec]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x13c]
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 + 0xf8]
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 + 0xfc]
push 0x411d40
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x40727f
mov edi, dword [ebp + 0xfc]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xee6]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x16e]
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 + 0x100]
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 + 0x104]
push 0x411d40
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x4072ed
mov edi, dword [ebp + 0x104]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xfe0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1a0]
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 + 0x108]
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]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x13dc], 3
call sub.MFC42.DLL_CString::CString
push 0x41012c
lea ecx, [esp + 0x13e8]
mov byte [esp + 0x13e0], 4
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x13e4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
xor edi, edi
test ebx, ebx
jle 0x407469
lea eax, [esp + 0xa04]
lea esi, [esp + 0x74]
mov dword [esp + 0x2c], eax
cmp edi, 2
je 0x40744f
mov eax, dword [ebp + 0x4f0]
test eax, eax
je 0x407366
test edi, edi
je 0x40744f
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x13e4]
push ecx
push edx
lea eax, [esp + 0x2c]
push 0x4107c0
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x3fc]
lea edx, [esp + 0x14]
push esi
push ecx
push str._s_s.lnk
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
add esp, 0x10
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x50]
mov eax, dword [esp + 0x10]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push 0x40de08
mov edx, dword [eax]
push eax
call dword [edx]
test eax, eax
jl 0x40744f
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x7fc]
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 + 0x7fc]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp + 0x130]
lea ecx, [esp + 0x18]
push eax
push str.FILE_02d
push ecx
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebp + 0x138]
mov edx, dword [esp + 0x20]
add esp, 0xc
push eax
mov eax, dword [esp + 0x1c]
push edx
push eax
push str.FILE
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [ebp + 0x130]
inc eax
mov dword [ebp + 0x130], eax
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov edx, dword [esp + 0x2c]
inc edi
add edx, 0xfa
add esi, 0x32
cmp edi, ebx
mov dword [esp + 0x2c], edx
jl 0x40734b
lea edx, [esp + 0xbf8]
lea ecx, [esp + 0x24]
push edx
call fcn.0040bb40
lea eax, [esp + 0xd8]
lea ecx, [esp + 0x3fc]
push eax
push ecx
lea edx, [esp + 0x1c]
push str._s_s.lnk
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x13f4]
add esp, 0x10
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x24]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xd8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x13e4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
push 0x40de08
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x407576
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x7fc]
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 + 0x7fc]
push 1
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov edx, dword [ebp + 0x130]
lea eax, [esp + 0x18]
push edx
push str.FILE_02d
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebp + 0x138]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
add esp, 0xc
push eax
push ecx
push edx
push str.FILE
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov esi, dword [ebp + 0x130]
mov eax, dword [esp + 0x1c]
inc esi
push eax
mov dword [ebp + 0x130], esi
mov ecx, dword [eax]
call dword [ecx + 8]
push 0x41079c
lea ecx, [ebp + 0xc4]
call fcn.0040bb40
push 0
mov ecx, ebp
call sub.MFC42.DLL_CWnd::UpdateData
mov edi, dword [ebp + 0xe4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x300]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x411d40
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x208]
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 + 0xe8]
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 + 0x10c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x40765a
mov edi, dword [ebp + 0x10c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x332]
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 + 0x236]
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 + 0x110]
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 + 0x114]
push 0x411d40
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x4076c8
mov edi, dword [ebp + 0x114]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x364]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x268]
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 + 0x118]
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 + 0x11c]
push 0x411d40
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x407736
mov edi, dword [ebp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x396]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x29a]
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 + 0x120]
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 + 0x124]
push 0x411d40
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x4077a4
mov edi, dword [ebp + 0x124]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3c8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x2cc]
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 + 0x128]
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 + 0x13e4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [esp + 0x10]
push 0x411d40
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test ebx, ebx
jle 0x4078d3
xor esi, esi
mov eax, dword [esp + 0x13e4]
lea edx, [esp + esi + 0x300]
push edx
push eax
lea ecx, [esp + 0x2c]
push 0x4107c0
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea edx, [esp + esi + 0x204]
lea eax, [esp + 0x11d4]
lea ecx, [esp + 0x14]
push edx
push eax
push str._s_s.lnk
push ecx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
add esp, 0x10
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x50]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x204]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push 0x40de08
mov edx, dword [eax]
push eax
call dword [edx]
test eax, eax
jl 0x4078c9
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x7fc]
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 + 0x7fc]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp + 0x130]
lea ecx, [esp + 0x18]
push eax
push str.FILE_02d
push ecx
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebp + 0x138]
mov edx, dword [esp + 0x20]
add esp, 0xc
push eax
mov eax, dword [esp + 0x1c]
push edx
push eax
push str.FILE
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov edi, dword [ebp + 0x130]
mov eax, dword [esp + 0x1c]
inc edi
push eax
mov dword [ebp + 0x130], edi
mov ecx, dword [eax]
call dword [ecx + 8]
add esi, 0x32
dec ebx
jne 0x4077cf
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
lea ecx, [esp + 0x24]
mov byte [esp + 0x13dc], 3
call fcn.0040bb3a
lea ecx, [esp + 0x14]
mov byte [esp + 0x13dc], 2
call fcn.0040bb3a
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
jmp 0x40791c
mov eax, dword [ebp + 0x20]
push 0x10
push 0x41076c
push eax
call fcn.00401030
add esp, 0xc
lea ecx, [esp + 0x28]
mov byte [esp + 0x13d4], 1
call fcn.0040bb3a
lea ecx, [esp + 0x10]
mov byte [esp + 0x13d4], 0
call fcn.0040bb3a
lea ecx, [esp + 0x13dc]
mov dword [esp + 0x13d4], 0xffffffff
call fcn.0040bb3a
mov ecx, dword [esp + 0x13cc]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x13d0
ret 4