Function at 0x4046e0
Capabilities:
Create directory
Create process on windows
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40caeb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1564
call fcn.0040bf70
push ebx
push esi
mov ebx, ecx
push edi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0xd0], ebx
call sub.MFC42.DLL_CString::CString
xor edi, edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], edi
call sub.MFC42.DLL_CString::CString
push 1
mov ecx, ebx
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CWnd::UpdateData
lea ecx, [ebp - 0x2c]
mov dword [ebx + 0x2d4], edi
call sub.MFC42.DLL_CFile::CFile
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x494]
push 0xfa
push eax
push edi
mov byte [ebp - 4], 4
mov dword [ebp - 0x64], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push edi
lea ecx, [ebp - 0x494]
push 0xa040
push ecx
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x404821
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
lea edx, [ebp - 0x494]
lea eax, [ebp - 0x18]
push edx
push 0x4100dc
push eax
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::Format
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebx + 0x20]
push 0x10
push ecx
push edx
call fcn.00401030
add esp, 0x18
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.0040bb3a
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.0040bb3a
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.0040bb3a
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0040bd0e
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.0040bb3a
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.0040bb3a
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 0x3c
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::Seek
lea eax, [ebp - 0x5c]
push 2
push eax
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::Read
movsx ecx, word [ebp - 0x5c]
push edi
push ecx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CFile::Seek
push 1
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 4
call sub.MFC42.DLL_CFile::Seek
lea edx, [ebp - 0x398]
push 0xf8
push edx
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::Read
cmp dword [ebp - 0x398], 0x4550
je 0x40489e
mov eax, dword [ebx + 0x20]
push 0x10
push 0x4100c8
push eax
call fcn.00401030
add esp, 0xc
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::Close
jmp 0x4047cf
movsx esi, word [ebp - 0x392]
mov dword [ebp - 0x68], esi
lea ecx, [esi + esi*4]
shl ecx, 3
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
cmp esi, edi
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x40], edi
jle 0x40496a
push 1
push 0
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::Seek
mov eax, dword [ebp - 0x40]
push 0x28
lea ecx, [ebp - 0x2c]
lea edx, [eax + eax*4]
mov eax, dword [ebp - 0x78]
lea edi, [eax + edx*8]
push edi
call sub.MFC42.DLL_CFile::Read
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0xd4]
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 edi, str..rsrc
lea esi, [ebp - 0xd4]
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x40493e
test al, al
je 0x40493a
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x40493e
add esi, 2
add edi, 2
test al, al
jne 0x404916
xor eax, eax
jmp 0x404943
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov eax, dword [ebp - 0x40]
je 0x40495b
mov ecx, dword [ebp - 0x68]
inc eax
cmp eax, ecx
mov dword [ebp - 0x40], eax
jl 0x4048c5
jmp 0x404968
mov ecx, dword [ebp - 0x78]
lea eax, [eax + eax*4]
mov edx, dword [ecx + eax*8 + 0x14]
mov dword [ebp - 0x64], edx
xor edi, edi
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x50], 1
cmp eax, edi
je 0x405dc2
push 0
push eax
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::Seek
lea eax, [ebp - 0x1bc]
push 0x10
push eax
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::Read
mov ecx, dword [ebp - 0x1b0]
mov edx, dword [ebp - 0x1ae]
lea esi, [ecx + edx]
mov dword [ebp - 0xd0], esi
and esi, 0xffff
lea eax, [esi*8]
push eax
call sub.MFC42.DLL_operatornew
mov ecx, esi
mov dword [ebp - 0x6c], eax
shl ecx, 4
push ecx
call sub.MFC42.DLL_operatornew
add esp, 8
xor edi, edi
test esi, esi
mov dword [ebp - 0x68], eax
jle 0x4049f0
mov edx, dword [ebp - 0x6c]
push 8
lea ecx, [ebp - 0x2c]
lea eax, [edx + edi*8]
push eax
call sub.MFC42.DLL_CFile::Read
inc edi
cmp edi, esi
jl 0x4049da
xor eax, eax
mov dword [ebp - 0x18], 0
test esi, esi
mov dword [ebp - 0x40], eax
jle 0x405da2
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x405da2
mov ecx, dword [ebp - 0x68]
push 0x10
shl eax, 4
lea esi, [eax + ecx]
lea ecx, [ebp - 0x2c]
push esi
call sub.MFC42.DLL_CFile::Read
mov ax, word [esi + 0xe]
add ax, word [esi + 0xc]
movsx edx, ax
shl edx, 3
push edx
mov dword [ebp - 0x5c], eax
call sub.MFC42.DLL_operatornew
xor esi, esi
add esp, 4
cmp word [ebp - 0x5c], si
mov dword [ebp - 0xd8], eax
jle 0x405d74
mov eax, dword [ebp - 0xd8]
push 8
lea ecx, [ebp - 0x2c]
lea edi, [eax + esi*8]
push edi
call sub.MFC42.DLL_CFile::Read
push 1
push 0
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::Seek
mov ecx, dword [edi + 4]
mov edx, dword [ebp - 0x64]
and ecx, 0x7fffffff
push 0
add ecx, edx
mov dword [ebp - 0x3c], eax
push ecx
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::Seek
lea edx, [ebp - 0x238]
push 0x10
push edx
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::Read
lea eax, [ebp - 0x15c]
push 8
push eax
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::Read
mov ecx, dword [ebp - 0x158]
mov edx, dword [ebp - 0x64]
and ecx, 0x7fffffff
push 0
add ecx, edx
push ecx
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::Seek
lea edx, [ebp - 0x1a8]
push 0x10
push edx
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::Read
cmp dword [edi], 0x80000000
jae 0x404aef
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x40]
cmp word [eax + ecx*8], 3
je 0x404b0f
mov edx, dword [ebp - 0x3c]
push 0
push edx
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::Seek
movsx eax, word [ebp - 0x5c]
inc esi
cmp esi, eax
jl 0x404a4f
jmp 0x405d74
mov eax, dword [ebp - 0x19c]
test eax, eax
jne 0x404b29
mov ecx, dword [ebx + 0x20]
push 0x30
push 0x4100a8
push ecx
jmp 0x405d5e
push 0
push eax
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::Seek
mov ecx, 0xb
xor eax, eax
lea edi, [ebp - 0x144]
lea edx, [ebp - 0x144]
rep stosd dword es:[edi], eax
push 0x2e
push edx
lea ecx, [ebp - 0x2c]
stosw word es:[edi], ax
call sub.MFC42.DLL_CFile::Read
cmp dword [ebp - 0x144], 0x58445400
jne 0x405d53
cmp word [ebp - 0x138], 0x100
jne 0x405d53
mov eax, dword [ebp - 0x12e]
mov ecx, dword [ebp - 0x136]
mov edi, dword [ebp - 0x122]
mov esi, dword [ebp - 0x126]
mov edx, dword [ebp - 0x12a]
mov dword [ebx + 0x4ec], eax
mov eax, dword [ebp - 0x11e]
sub ecx, eax
mov eax, dword [ebp - 0x13c]
sub ecx, edi
mov edi, dword [ebp - 0x140]
sub ecx, esi
sub ecx, edx
sub ecx, eax
sub ecx, edi
sub ecx, 0x2e
mov dword [ebx + 0xdc], ecx
lea ecx, [ebp - 0x60]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebx + 0xcc]
mov byte [ebp - 4], 9
mov eax, dword [edx - 8]
add eax, 2
push eax
call sub.MFC42.DLL_operatornew
mov edi, dword [ebx + 0xcc]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [ebp - 0x18], edx
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 ecx, dword [ebx + 0xcc]
mov esi, dword [ecx - 8]
push 0x5c
lea ecx, [ebx + 0xcc]
lea edi, [esi - 1]
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, edi
jne 0x404c4a
mov eax, dword [ebp - 0x18]
lea ecx, [ebx + 0xcc]
push eax
mov byte [esi + eax - 1], 0
mov esi, edi
call fcn.0040bb40
jmp 0x404c1e
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push edx
call fcn.0040bb40
mov eax, dword [ebp - 0x122]
mov ecx, dword [ebp - 0x11e]
mov edx, dword [ebp - 0x126]
mov edi, dword [ebp - 0x13c]
mov esi, dword [ebp - 0x140]
add ecx, eax
mov eax, dword [ebp - 0x12a]
add ecx, edx
mov edx, dword [ebp - 0x19c]
add ecx, eax
add ecx, edi
push 0
add ecx, esi
add ecx, edx
mov edx, dword [0x411d64]
lea eax, [ecx + edx + 0x2e]
lea ecx, [ebp - 0x2c]
push eax
call sub.MFC42.DLL_CFile::Seek
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CString::CString_2
push 0x4105c8
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::operator
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x5d4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [ebp - 0x38]
mov edi, eax
mov esi, 1
call sub.MFC42.DLL_CString::CString
cmp edi, 0xffffffff
mov byte [ebp - 4], 0xb
je 0x405c94
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x38]
push ecx
push 0x4105b0
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [ebp - 0x38]
push 0x41058c
call sub.MFC42.DLL_CString::operator
push 0x410574
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::operator
mov eax, dword [ebp - 0x38]
push 0
push 0x21
push eax
call sub.MFC42.DLL_AfxMessageBox
cmp eax, esi
jne 0x405cbf
xor esi, esi
mov eax, dword [0x411d68]
mov edi, 1
cmp eax, edi
jne 0x404dbf
mov eax, dword [0x411d70]
test eax, eax
jne 0x404dbf
push 0
lea ecx, [ebp - 0x228]
call fcn.004010c0
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CDialog::DoModal
cmp eax, edi
jne 0x405e49
mov eax, dword [ebp - 0x1c0]
mov dword [0x411d74], 0
cmp eax, edi
jne 0x404db0
mov eax, dword [ebp - 0x1c4]
mov dword [0x411d74], edi
cmp eax, edi
jne 0x404da1
mov dword [0x411d74], 2
cmp dword [ebp - 0x1c8], edi
jne 0x404db0
add dword [0x411d74], 2
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0xb
call fcn.0040bb10
push 1
mov ecx, ebx
call fcn.00406c00
lea edi, [ebx + 0x60]
push 0x64
push 0
mov ecx, edi
call fcn.00401890
mov eax, dword [ebx + 0xd8]
xor edx, edx
mov ecx, edi
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
div dword [ebx + 0xdc]
push eax
call fcn.004018c0
test esi, esi
je 0x404e30
mov ecx, dword [ebp - 0x14]
lea edx, [ebx + 0xc4]
push ecx
push 0x410570
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, ebx
push 0
call sub.MFC42.DLL_CWnd::UpdateData
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x3c], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, ebx
call fcn.00407970
push str.T0002_
lea ecx, [ebp - 0x10c]
push 0x411d44
push ecx
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xd
call fcn.0040bcde
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], 0xb
call fcn.0040bb3a
lea edx, [ebp - 0x14]
push str.T0002T_
lea eax, [ebp - 0x100]
push edx
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xe
call fcn.0040bcde
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 0xb
call fcn.0040bb3a
cmp dword [0x411d6c], 1
jne 0x404f67
mov eax, dword [0x411d74]
cmp eax, 2
je 0x404eb3
cmp eax, 4
jne 0x404f67
push 0x410548
lea ecx, [ebx + 0xc4]
call fcn.0040bb40
push 0
mov ecx, ebx
call sub.MFC42.DLL_CWnd::UpdateData
lea ecx, [ebp - 0x14]
push str.T0002T
lea edx, [ebp - 0xe0]
push ecx
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xf
call fcn.0040bcde
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 0xb
call fcn.0040bb3a
mov eax, dword [ebp - 0x1c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x14]
push str.T0002T_
lea edx, [ebp - 0xdc]
push ecx
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x10
call fcn.0040bcde
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 0xb
call fcn.0040bb3a
push ecx
lea eax, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x3c], esp
push eax
call sub.MFC42.DLL_CString::CString_2
push ecx
lea edx, [ebp - 0x34]
mov ecx, esp
mov dword [ebp - 0x18], esp
push edx
mov byte [ebp - 4], 0x11
call sub.MFC42.DLL_CString::CString_2
mov ecx, ebx
mov byte [ebp - 4], 0xb
call fcn.00408270
mov eax, dword [0x411d74]
test eax, eax
jle 0x404fba
push 0x41052c
lea ecx, [ebx + 0xc4]
call fcn.0040bb40
push 0
mov ecx, ebx
call sub.MFC42.DLL_CWnd::UpdateData
mov ecx, ebx
call fcn.00408840
mov eax, dword [0x411d74]
cmp eax, 3
je 0x404f9f
cmp eax, 4
jne 0x404fba
mov eax, dword [0x411d44]
push eax
call fcn.00403340
mov ecx, dword [0x411d44]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea edx, [ebp - 0x14]
push str.T0002T_
lea eax, [ebp - 0x108]
push edx
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x12
call fcn.0040bcde
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 0xb
call fcn.0040bb3a
lea ecx, [ebp - 0x14]
push str.T0002_
lea edx, [ebp - 0x110]
push ecx
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x13
call fcn.0040bcde
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 0xb
call fcn.0040bb3a
lea ecx, [ebp - 0x154]
call sub.MFC42.DLL_CFile::CFile
lea edi, [ebx + 0x138]
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
mov byte [ebp - 4], 0x14
call fcn.0040bcde
push str.uninstall.cfg
mov ecx, edi
call sub.MFC42.DLL_CString::operator
mov eax, dword [edi]
push 0
push 0x9001
push eax
lea ecx, [ebp - 0x154]
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x40506c
lea ecx, [ebp - 0x154]
call sub.MFC42.DLL_CFile::Close
lea ecx, [ebp - 0x74]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebx + 0x12c]
xor esi, esi
test eax, eax
mov byte [ebp - 4], 0x15
jle 0x4050bb
push esi
lea ecx, [ebp - 0x74]
push str.FOLDER_02d
push ecx
call sub.MFC42.DLL_CString::Format
mov eax, dword [edi]
mov ecx, dword [ebx + esi*4 + 0x140]
mov edx, dword [ebp - 0x74]
add esp, 0xc
push eax
push ecx
push edx
push str.FOLDER
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [ebx + 0x12c]
inc esi
cmp esi, eax
jl 0x405084
lea eax, [ebx + 0x2e0]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebx + 0x3e4]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push ecx
lea edx, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x3c], esp
push edx
mov dword [ebx + 0x4e8], 1
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [ebp - 0x132]
mov ecx, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x2c]
push ecx
push edx
mov ecx, ebx
call fcn.00405ec0
test eax, eax
je 0x405cff
lea eax, [ebp - 0xcc]
push 0x50
push eax
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::Read
mov eax, dword [ebp - 0xcc]
test eax, eax
jle 0x405173
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp - 0xcc]
add esp, 4
mov esi, eax
push ecx
push esi
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::Read
mov edx, dword [ebp - 0xcc]
push esi
lea ecx, [ebx + 0xe0]
mov byte [esi + edx], 0
call fcn.0040bb40
test esi, esi
je 0x405173
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp - 0xc8]
test eax, eax
jle 0x4051bc
inc eax
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0x2c]
push eax
push esi
call sub.MFC42.DLL_CFile::Read
mov ecx, dword [ebp - 0xc8]
push esi
mov byte [esi + ecx], 0
lea ecx, [ebx + 0xe4]
call fcn.0040bb40
test esi, esi
je 0x4051bc
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp - 0xc4]
test eax, eax
jle 0x405205
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov edx, dword [ebp - 0xc4]
add esp, 4
mov esi, eax
lea ecx, [ebp - 0x2c]
push edx
push esi
call sub.MFC42.DLL_CFile::Read
mov eax, dword [ebp - 0xc4]
push esi
lea ecx, [ebx + 0xe8]
mov byte [esi + eax], 0
call fcn.0040bb40
test esi, esi
je 0x405205
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp - 0xc0]
test eax, eax
jle 0x40524e
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp - 0xc0]
add esp, 4
mov esi, eax
push ecx
push esi
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::Read
mov edx, dword [ebp - 0xc0]
push esi
lea ecx, [ebx + 0xec]
mov byte [esi + edx], 0
call fcn.0040bb40
test esi, esi
je 0x40524e
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp - 0xbc]
test eax, eax
jle 0x405297
inc eax
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0xbc]
lea ecx, [ebp - 0x2c]
push eax
push esi
call sub.MFC42.DLL_CFile::Read
mov ecx, dword [ebp - 0xbc]
push esi
mov byte [esi + ecx], 0
lea ecx, [ebx + 0xf0]
call fcn.0040bb40
test esi, esi
je 0x405297
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp - 0xb8]
test eax, eax
jle 0x4052e0
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov edx, dword [ebp - 0xb8]
add esp, 4
mov esi, eax
lea ecx, [ebp - 0x2c]
push edx
push esi
call sub.MFC42.DLL_CFile::Read
mov eax, dword [ebp - 0xb8]
push esi
lea ecx, [ebx + 0xf4]
mov byte [esi + eax], 0
call fcn.0040bb40
test esi, esi
je 0x4052e0
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp - 0xb4]
test eax, eax
jle 0x405329
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp - 0xb4]
add esp, 4
mov esi, eax
push ecx
push esi
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::Read
mov edx, dword [ebp - 0xb4]
push esi
lea ecx, [ebx + 0xf8]
mov byte [esi + edx], 0
call fcn.0040bb40
test esi, esi
je 0x405329
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp - 0xb0]
test eax, eax
jle 0x405372
inc eax
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0xb0]
lea ecx, [ebp - 0x2c]
push eax
push esi
call sub.MFC42.DLL_CFile::Read
mov ecx, dword [ebp - 0xb0]
push esi
mov byte [esi + ecx], 0
lea ecx, [ebx + 0xfc]
call fcn.0040bb40
test esi, esi
je 0x405372
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp - 0xac]
test eax, eax
jle 0x4053bb
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov edx, dword [ebp - 0xac]
add esp, 4
mov esi, eax
lea ecx, [ebp - 0x2c]
push edx
push esi
call sub.MFC42.DLL_CFile::Read
mov eax, dword [ebp - 0xac]
push esi
lea ecx, [ebx + 0x100]
mov byte [esi + eax], 0
call fcn.0040bb40
test esi, esi
je 0x4053bb
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp - 0xa8]
test eax, eax
jle 0x405404
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp - 0xa8]
add esp, 4
mov esi, eax
push ecx
push esi
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::Read
mov edx, dword [ebp - 0xa8]
push esi
lea ecx, [ebx + 0x104]
mov byte [esi + edx], 0
call fcn.0040bb40
test esi, esi
je 0x405404
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp - 0xa4]
test eax, eax
jle 0x40544d
inc eax
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0xa4]
lea ecx, [ebp - 0x2c]
push eax
push esi
call sub.MFC42.DLL_CFile::Read
mov ecx, dword [ebp - 0xa4]
push esi
mov byte [esi + ecx], 0
lea ecx, [ebx + 0x108]
call fcn.0040bb40
test esi, esi
je 0x40544d
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp - 0xa0]
test eax, eax
jle 0x405496
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov edx, dword [ebp - 0xa0]
add esp, 4
mov esi, eax
lea ecx, [ebp - 0x2c]
push edx
push esi
call sub.MFC42.DLL_CFile::Read
mov eax, dword [ebp - 0xa0]
push esi
lea ecx, [ebx + 0x10c]
mov byte [esi + eax], 0
call fcn.0040bb40
test esi, esi
je 0x405496
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp - 0x9c]
test eax, eax
jle 0x4054df
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp - 0x9c]
add esp, 4
mov esi, eax
push ecx
push esi
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::Read
mov edx, dword [ebp - 0x9c]
push esi
lea ecx, [ebx + 0x110]
mov byte [esi + edx], 0
call fcn.0040bb40
test esi, esi
je 0x4054df
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp - 0x98]
test eax, eax
jle 0x405528
inc eax
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x98]
lea ecx, [ebp - 0x2c]
push eax
push esi
call sub.MFC42.DLL_CFile::Read
mov ecx, dword [ebp - 0x98]
push esi
mov byte [esi + ecx], 0
lea ecx, [ebx + 0x114]
call fcn.0040bb40
test esi, esi
je 0x405528
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp - 0x94]
test eax, eax
jle 0x405571
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov edx, dword [ebp - 0x94]
add esp, 4
mov esi, eax
lea ecx, [ebp - 0x2c]
push edx
push esi
call sub.MFC42.DLL_CFile::Read
mov eax, dword [ebp - 0x94]
push esi
lea ecx, [ebx + 0x118]
mov byte [esi + eax], 0
call fcn.0040bb40
test esi, esi
je 0x405571
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp - 0x90]
test eax, eax
jle 0x4055ba
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp - 0x90]
add esp, 4
mov esi, eax
push ecx
push esi
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::Read
mov edx, dword [ebp - 0x90]
push esi
lea ecx, [ebx + 0x11c]
mov byte [esi + edx], 0
call fcn.0040bb40
test esi, esi
je 0x4055ba
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp - 0x8c]
test eax, eax
jle 0x405603
inc eax
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x8c]
lea ecx, [ebp - 0x2c]
push eax
push esi
call sub.MFC42.DLL_CFile::Read
mov ecx, dword [ebp - 0x8c]
push esi
mov byte [esi + ecx], 0
lea ecx, [ebx + 0x120]
call fcn.0040bb40
test esi, esi
je 0x405603
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp - 0x88]
test eax, eax
jle 0x40564c
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov edx, dword [ebp - 0x88]
add esp, 4
mov esi, eax
lea ecx, [ebp - 0x2c]
push edx
push esi
call sub.MFC42.DLL_CFile::Read
mov eax, dword [ebp - 0x88]
push esi
lea ecx, [ebx + 0x124]
mov byte [esi + eax], 0
call fcn.0040bb40
test esi, esi
je 0x40564c
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp - 0x84]
test eax, eax
jle 0x405695
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp - 0x84]
add esp, 4
mov esi, eax
push ecx
push esi
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::Read
mov edx, dword [ebp - 0x84]
push esi
lea ecx, [ebx + 0x128]
mov byte [esi + edx], 0
call fcn.0040bb40
test esi, esi
je 0x405695
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp - 0x80]
test eax, eax
jle 0x4056d9
inc eax
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x80]
lea ecx, [ebp - 0x2c]
push eax
push esi
call sub.MFC42.DLL_CFile::Read
mov ecx, dword [ebp - 0x80]
push esi
mov byte [esi + ecx], 0
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebx + 0x4f0], eax
test esi, esi
je 0x4056d9
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push ecx
lea edx, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x3c], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, ebx
call fcn.00406cb0
lea ecx, [ebp - 0x48]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebx + 0x130]
lea ecx, [ebp - 0x48]
push eax
push 0x410140
push ecx
mov byte [ebp - 4], 0x16
call sub.MFC42.DLL_CString::Format
mov eax, dword [edi]
mov ecx, dword [ebx + 0xe0]
add esp, 0xc
push eax
push ecx
push str.TITLE
push str.HEADER
call esi
mov eax, dword [edi]
mov edx, dword [ebp - 0x48]
push eax
push edx
push str.FILENUM
push str.FILE
call esi
mov eax, dword [ebx + 0x12c]
lea ecx, [ebp - 0x48]
push eax
push 0x410140
push ecx
call sub.MFC42.DLL_CString::Format
mov eax, dword [edi]
mov edx, dword [ebp - 0x48]
add esp, 0xc
push eax
push edx
push str.FOLDERNUM
push str.FOLDER
call esi
mov eax, dword [ebx + 0x134]
lea ecx, [ebp - 0x48]
push eax
push 0x410140
push ecx
call sub.MFC42.DLL_CString::Format
mov edi, dword [edi]
mov edx, dword [ebp - 0x48]
add esp, 0xc
push edi
push edx
push str.OCXNUM
push 0x4104d0
call esi
push 0x64
lea ecx, [ebx + 0x60]
call fcn.004018c0
cmp dword [0x411d68], 1
jne 0x405868
cmp dword [0x411d6c], 1
jne 0x405868
mov eax, dword [0x411d74]
cmp eax, 2
je 0x4057cf
cmp eax, 4
jne 0x405868
mov eax, dword [ebp - 0x1c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x4104bc
lea ecx, [ebx + 0xc4]
call fcn.0040bb40
push 0
mov ecx, ebx
call sub.MFC42.DLL_CWnd::UpdateData
push ecx
lea edx, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x3c], esp
push edx
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [ebp - 0x34]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov byte [ebp - 4], 0x17
call sub.MFC42.DLL_CString::CString_2
mov ecx, ebx
mov byte [ebp - 4], 0x16
call fcn.00408270
lea ecx, [ebp - 0x14]
push str.T0002T
lea edx, [ebp - 0xec]
push ecx
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x18
call fcn.0040bcde
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 0x16
call fcn.0040bb3a
mov eax, dword [ebp - 0x34]
push eax
call fcn.00403340
mov ecx, dword [ebp - 0x34]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0x4104a8
lea ecx, [ebx + 0xc4]
call fcn.0040bb40
push 0
mov ecx, ebx
call sub.MFC42.DLL_CWnd::UpdateData
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0x19
call sub.MFC42.DLL_CString::CString
lea edx, [ebp - 0x14]
push str.connect.cfg
lea eax, [ebp - 0x104]
push edx
push eax
mov byte [ebp - 4], 0x1a
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x1b
call fcn.0040bcde
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 0x1a
call fcn.0040bb3a
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 0x1c
push ecx
push 0
push str.EXENUM
push str.SHELLEXE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
mov ecx, 0x1f4
xor eax, eax
lea edi, [ebp - 0x1574]
rep stosd dword es:[edi], eax
mov ecx, 0x1f4
lea edi, [ebp - 0xda4]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x18], esi
call sub.MFC42.DLL_CString::CString
xor edi, edi
mov byte [ebp - 4], 0x1d
test esi, esi
jle 0x405998
push edi
lea edx, [ebp - 0x44]
push str.EXENAME_02d
push edx
call sub.MFC42.DLL_CString::Format
lea eax, [edi + edi*4]
mov edx, dword [ebp - 0x44]
add esp, 0xc
lea esi, [eax + eax*4]
mov eax, dword [ebp - 0x30]
shl esi, 2
push eax
push 0x62
lea ecx, [ebp + esi - 0x1574]
push ecx
push 0x411d40
push edx
push str.SHELLEXE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edi
lea eax, [ebp - 0x44]
push str.EXEDESC_02d
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x44]
add esp, 0xc
lea edx, [ebp + esi - 0xda4]
push ecx
push 0x62
push edx
push 0x411d40
push eax
push str.SHELLEXE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x18]
inc edi
cmp edi, eax
jl 0x40591f
lea ecx, [ebp - 0x14]
push 0x41012c
lea edx, [ebp - 0xf4]
push ecx
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x1e
call fcn.0040bcde
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 0x1d
call fcn.0040bb3a
mov eax, dword [ebp - 0x18]
xor edi, edi
test eax, eax
mov dword [ebp - 0x3c], edi
jle 0x405b0a
lea esi, [edi + edi*4]
lea ecx, [ebp - 0x70]
lea esi, [esi + esi*4]
shl esi, 2
lea eax, [ebp + esi - 0xda4]
push eax
push 0x410424
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [ebp - 0x70]
mov eax, dword [ebx + 0x20]
push 0x24
push edx
push eax
call fcn.00401030
add esp, 0x18
cmp eax, 6
jne 0x405afb
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x198]
push 0x41012c
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0xfc]
push ecx
push edx
mov dword [ebp - 0x198], 0x3c
mov dword [ebp - 0x194], 0x40
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x18c], eax
call sub.MFC42.DLL_operator
lea ecx, [ebp + esi - 0x1574]
lea edx, [ebp - 0x114]
push ecx
push eax
push edx
mov byte [ebp - 4], 0x1f
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x20
call fcn.0040bcde
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0x1f
call fcn.0040bb3a
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0x1d
call fcn.0040bb3a
push 0
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_CString::GetBuffer
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x198]
mov dword [ebp - 0x184], 0x411d40
push ecx
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x17c], 5
mov dword [ebp - 0x178], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov edx, dword [ebp - 0x160]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov edi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x18]
inc edi
cmp edi, eax
mov dword [ebp - 0x3c], edi
jl 0x4059d9
mov eax, dword [ebx + 0x20]
push 0x40
push 0x410418
push eax
call fcn.00401030
add esp, 0xc
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0xe4]
push str.connect.cfg
push ecx
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x21
call fcn.0040bcde
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 0x1d
call fcn.0040bb3a
mov eax, dword [ebp - 0x30]
push eax
push 0
push str.NeedPlugExe
push str.Other
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x405c3d
mov ecx, 0x19
xor eax, eax
lea edi, [ebp - 0x2a0]
lea edx, [ebp - 0x2a0]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x30]
push ecx
push 0x64
push edx
push 0x411d40
push str.PlugExePath
push str.Other
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x14]
push 0x41012c
lea ecx, [ebp - 0xe8]
push eax
push ecx
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x22
call fcn.0040bcde
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 0x1d
call fcn.0040bb3a
lea edx, [ebp - 0x14]
push 0x41012c
lea eax, [ebp - 0xf8]
push edx
push eax
call sub.MFC42.DLL_operator
lea ecx, [ebp - 0x2a0]
lea edx, [ebp - 0xf0]
push ecx
push eax
push edx
mov byte [ebp - 4], 0x23
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0x24
call fcn.0040bcde
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 0x23
call fcn.0040bb3a
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 0x1d
call fcn.0040bb3a
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x7c]
push 5
push eax
push 0
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x411d40
lea ecx, [ebx + 0xc4]
call fcn.0040bb40
push 0
mov ecx, ebx
call sub.MFC42.DLL_CWnd::UpdateData
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x1c
call fcn.0040bb3a
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x1a
call fcn.0040bb3a
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0x19
call fcn.0040bb3a
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x16
call fcn.0040bb3a
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x15
call fcn.0040bb3a
jmp 0x405d06
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x38]
push ecx
push 0x4103dc
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebp - 0x38]
add esp, 0xc
push 0
push 0x21
push eax
call sub.MFC42.DLL_AfxMessageBox
cmp eax, 2
jne 0x404d38
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 0xa
call fcn.0040bb3a
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 9
call fcn.0040bb3a
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.0040bb3a
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 4
call fcn.0040bb3a
jmp 0x405d74
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0x14
call fcn.0040bb3a
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], 0xb
call fcn.0040bd0e
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xa
call fcn.0040bb3a
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 9
call fcn.0040bb3a
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.0040bb3a
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 4
call fcn.0040bb3a
jmp 0x405d6d
mov edx, dword [ebx + 0x20]
push 0x10
push 0x410080
push edx
call fcn.00401030
add esp, 0xc
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0xd8]
test eax, eax
je 0x405d87
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xd0]
inc eax
and ecx, 0xffff
cmp eax, ecx
mov dword [ebp - 0x40], eax
jl 0x404a04
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x405db2
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x405dc2
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x405dd2
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::Close
mov eax, dword [ebx + 0x2d4]
mov dword [ebx + 0xdc], 0
cmp eax, 3
jne 0x405df6
mov ecx, ebx
call sub.MFC42.DLL_CDialog::OnCancel
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.0040bb3a
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.0040bb3a
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0040bd0e
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.0040bb3a
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.0040bb3a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x50]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
call sub.MFC42.DLL_CDialog::OnOK
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0xb
call fcn.0040bb10
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xa
call fcn.0040bb3a
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 9
call fcn.0040bb3a
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.0040bb3a
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x60]
jmp 0x4047ca