Function at 0x41d391
Capabilities:
Check if file exists
Get file attributes
Get number of processors
Move file
Read .ini file

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4c00b8
push eax
mov eax, 0x4034
mov dword fs:[0], esp
call fcn.00461c90
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0xfff
xor eax, eax
lea edi, [esp + 0x45]
mov byte [esp + 0x44], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x20]
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0x404c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x24]
push 0x5398c4
push eax
call sub.MFC42.DLL_CString::Format_1
lea ecx, [esp + 0x1c]
push ecx
call fcn.0041af30
add esp, 0x10
lea edx, [esp + 0x20]
mov byte [esp + 0x404c], 1
push edx
push eax
lea eax, [esp + 0x1c]
push eax
call sub.MFC42.DLL_operator_4
push str.mymacro.htm
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x4058], 2
call sub.MFC42.DLL_operator_3
mov edi, dword [eax]
lea edx, [esp + 0x24]
mov bl, 3
push edx
mov byte [esp + 0x4050], bl
call fcn.0041af30
add esp, 4
push str.mymacro.htm
push eax
lea eax, [esp + 0x24]
mov byte [esp + 0x4054], 4
push eax
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileA]
push edi
push eax
call ebp
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x404c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x404c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x404c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x404c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
push ecx
call fcn.0041af30
add esp, 4
lea edx, [esp + 0x20]
mov ebx, 5
push edx
push eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x4054], bl
push eax
call sub.MFC42.DLL_operator_4
push str.mymacro.htm
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x4058], 6
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor edx, edx
cmp eax, 0xffffffff
setne dl
lea ecx, [esp + 0x10]
mov edi, edx
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x404c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x404c], 0
call sub.MFC42.DLL_CString::CString
test edi, edi
je 0x41d5b9
lea edi, [esi + 0x134]
push ebx
mov ecx, edi
call sub.MFC42.DLL_CWnd::ShowWindow
lea eax, [esp + 0x18]
push eax
call fcn.0041af30
add esp, 4
lea ecx, [esp + 0x20]
lea edx, [esp + 0x14]
push ecx
mov bl, 7
push eax
push edx
mov byte [esp + 0x4058], bl
call sub.MFC42.DLL_operator_4
push str.mymacro.htm
push eax
lea eax, [esp + 0x18]
mov byte [esp + 0x4054], 8
push eax
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push eax
mov ecx, edi
mov byte [esp + 0x4060], 9
call fcn.00425100
lea ecx, [esp + 0x10]
mov byte [esp + 0x404c], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x404c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x404c], 0
call sub.MFC42.DLL_CString::CString
jmp 0x41d5cd
push 0
push 0
push 0
push 0
push 0
push 0x41d180
call sub.MFC42.DLL_AfxBeginThread
lea edi, [esi + 0x64]
push 0
mov ecx, edi
call sub.MFC42.DLL_CWnd::ShowWindow
push 0
mov ecx, edi
call sub.MFC42.DLL_CWnd::EnableWindow
lea ecx, [esp + 0x1c]
push ecx
call fcn.0041af30
add esp, 4
lea edx, [esp + 0x20]
mov byte [esp + 0x404c], 0xa
push edx
push eax
lea eax, [esp + 0x2c]
push eax
call sub.MFC42.DLL_operator_4
push str.background.bmp
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x4058], 0xb
call sub.MFC42.DLL_operator_3
mov edi, dword [eax]
lea edx, [esp + 0x14]
mov bl, 0xc
push edx
mov byte [esp + 0x4050], bl
call fcn.0041af30
add esp, 4
push str.background.bmp
push eax
lea eax, [esp + 0x18]
mov byte [esp + 0x4054], 0xd
push eax
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
push edi
push eax
call ebp
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x404c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x404c], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x404c], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x404c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString_3
mov byte [esp + 0x404c], 0xe
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x41d6c4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x41d6c6
xor eax, eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, eax
call sub.MFC42.DLL_CWnd::GetWindowTextA
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call sub.MFC42.DLL_CString::CString_4
lea eax, [esp + 0x14]
push eax
call fcn.00490880
add esp, 8
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
call fcn.0041dad0
mov edx, dword [eax + 0x8c]
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x14]
push eax
call fcn.00490880
add esp, 8
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov ebx, dword [esi + 0x11f0]
xor edi, edi
test ebx, ebx
jbe 0x41d78e
cmp edi, dword [esi + 0x11f0]
jge 0x41d750
test edi, edi
jl 0x41d750
mov eax, dword [esi + 0x11e8]
je 0x41d752
mov ecx, edi
mov eax, dword [eax]
dec ecx
jne 0x41d749
jmp 0x41d752
xor eax, eax
mov ecx, dword [eax + 8]
mov edx, dword [ecx]
call dword [edx + 4]
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0x20]
push ecx
add eax, 0xc
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call sub.MFC42.DLL_CString::CString_4
lea eax, [esp + 0x14]
push eax
call fcn.00490880
add esp, 8
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
inc edi
cmp edi, ebx
jb 0x41d733
mov edx, dword [esi + 0x970]
lea ecx, [esp + 0x2c]
or edx, 8
mov dword [esi + 0x970], edx
call sub.MFC42.DLL_CString::CString_3
push 0xf229
lea ecx, [esp + 0x30]
mov byte [esp + 0x4050], 0xf
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [esp + 0x2c]
lea edi, [esi + 0x90c]
lea ebp, [esi + 0x1108]
mov dword [esi + 0x980], ecx
push edi
mov ecx, ebp
call sub.MFC42.DLL_CPropertySheet::AddPage
mov eax, dword [esi + 0x121c]
lea edx, [esp + 0x44]
push eax
push 0x4000
push edx
push 0x539fe4
mov ecx, esi
call fcn.0041db90
push ecx
lea eax, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, edi
call fcn.0041dae0
mov eax, dword [esi + 0x121c]
push eax
push 0
push str.ShowFirstMacro
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x11f0]
xor ebx, ebx
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x1c], ebx
jbe 0x41d8f6
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41d855
cmp ebx, 1
jae 0x41d8f6
cmp ebx, dword [esi + 0x11f0]
jge 0x41d870
test ebx, ebx
jl 0x41d870
mov eax, dword [esi + 0x11e8]
je 0x41d872
mov eax, dword [eax]
dec ebx
jne 0x41d869
jmp 0x41d872
xor eax, eax
mov ecx, dword [eax + 8]
mov edx, dword [ecx]
call dword [edx + 4]
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0x20]
push 0x758
mov ebx, eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
mov byte [esp + 0x404c], 0x10
je 0x41d8ad
mov ecx, eax
call fcn.0040aed0
mov edi, eax
jmp 0x41d8af
xor edi, edi
push edi
lea ecx, [esi + 0x1a0]
mov byte [esp + 0x4050], 0xf
call sub.MFC42.DLL_CObList::AddTail
mov eax, dword [edi + 0x64]
push edi
or al, 8
mov ecx, ebp
mov dword [edi + 0x64], eax
mov eax, dword [ebx + 0xc]
mov dword [edi + 0x74], eax
mov dword [edi + 0x90], ebx
call sub.MFC42.DLL_CPropertySheet::AddPage
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov ebx, eax
jb 0x41d844
mov edx, dword [esi + 0x220]
lea ecx, [esp + 0x28]
or edx, 8
mov dword [esi + 0x220], edx
call sub.MFC42.DLL_CString::CString_3
push 0xf227
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4050], 0x11
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esp + 0x28]
lea edi, [esi + 0x1bc]
mov ecx, edi
mov dword [esi + 0x230], eax
call fcn.0040d8c0
mov ecx, edi
call fcn.0040dd40
push edi
mov ecx, ebp
call sub.MFC42.DLL_CPropertySheet::AddPage
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
mov ecx, ebp
call fcn.0040a6b0
push 0
push 0x50000000
push esi
mov ecx, ebp
call sub.MFC42.DLL_CPropertySheet::Create
push 0
push 0x10000
push 0
mov ecx, ebp
call sub.MFC42.DLL_CWnd::ModifyStyleEx
push 0
push 0x10000
push 0
mov ecx, ebp
call sub.MFC42.DLL_CWnd::ModifyStyle
mov ecx, dword [esi + 0x1128]
push 0
push 0
push 0x474
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
test eax, eax
je 0x41d9b9
push 0
push 0
push 0x200
mov ecx, eax
call sub.MFC42.DLL_CWnd::ModifyStyle
mov ecx, ebp
call sub.MFC42.DLL_CPropertySheet::GetPageCount
mov edi, eax
dec edi
js 0x41d9d0
push edi
mov ecx, ebp
call sub.MFC42.DLL_CPropertySheet::SetActivePage
dec edi
jns 0x41d9c5
push 0x400
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov eax, dword [eax + 0x20]
lea edx, [esp + 0x34]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CWnd::ScreenToClient
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
sub edx, eax
push 4
push edx
add eax, 0xfffffff9
push 0x400
push eax
mov eax, dword [esp + 0x44]
mov ecx, ebp
add eax, 0xfffffff9
push eax
push 0
call sub.MFC42.DLL_CWnd::SetWindowPos
mov eax, dword [0x5467f4]
test eax, eax
je 0x41da37
mov ecx, ebp
call sub.MFC42.DLL_CPropertySheet::GetPageCount
dec eax
mov ecx, ebp
push eax
call sub.MFC42.DLL_CPropertySheet::RemovePage
mov eax, dword [0x5467f0]
test eax, eax
je 0x41da4f
test ebx, ebx
jbe 0x41da4f
push ebx
mov ecx, ebp
call sub.MFC42.DLL_CPropertySheet::RemovePage
dec ebx
jne 0x41da44
mov eax, dword [0x546800]
test eax, eax
je 0x41da66
add esi, 0x1030
mov ecx, ebp
push esi
call sub.MFC42.DLL_CPropertySheet::AddPage
lea ecx, [esp + 0x28]
mov byte [esp + 0x404c], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x404c], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x404c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x404c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x4044]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x4040
ret