Function at 0x407ec0
Capabilities:
Delete file
Get number of processors
Inspect section memory permissions
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4420af
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd84
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], ebp
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov dword [esp + 0xd9c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0xd9c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0xd9c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0xd9c], 3
call sub.MFC42.DLL_CFile::CFile
mov edi, 4
mov byte [esp + 0xd9c], 4
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
lea ecx, [esp + 0x2c]
add eax, 0xc4
push eax
call sub.MFC42.DLL_CString::operator
push str.ProjectSysData
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::operator_1
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x34]
push eax
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x2c]
push 0x4507cc
lea edx, [esp + 0x48]
push ecx
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0xda0], 5
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x44]
mov byte [esp + 0xd9c], 4
call fcn.00440654
mov eax, dword [esp + 0x3c]
push 0
push 0x1001
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::Open
test eax, eax
push 0
jne 0x407fd8
push 0x10
push 0x450894
call sub.MFC42.DLL_AfxMessageBox
jmp 0x409112
push 0x1000
lea ecx, [esp + 0x1c]
push 0
push ecx
lea ecx, [esp + 0x80]
call sub.MFC42.DLL_CArchive::CArchive
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x98]
mov esi, dword [ebp + 0x54]
add edx, 4
cmp edx, eax
mov byte [esp + 0xd9c], 6
jbe 0x408019
lea ecx, [esp + 0x70]
call sub.MFC42.DLL_CArchive::Flush
mov eax, dword [esp + 0x94]
lea ecx, [ebp + 0x58]
lea edx, [esp + 0x70]
push ecx
mov dword [eax], esi
mov eax, dword [esp + 0x98]
add eax, edi
push edx
mov dword [esp + 0x9c], eax
call sub.MFC42.DLL_operator__
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x98]
mov esi, dword [ebp + 0x244]
add eax, 4
cmp eax, ecx
jbe 0x408064
lea ecx, [esp + 0x70]
call sub.MFC42.DLL_CArchive::Flush
mov ecx, dword [esp + 0x94]
lea eax, [esp + 0x70]
push eax
mov dword [ecx], esi
mov ebx, dword [esp + 0x98]
mov edx, dword [ebp + 0x248]
lea ecx, [ebp + 0x248]
add ebx, edi
mov dword [esp + 0x98], ebx
call dword [edx + 8]
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0x98]
mov esi, dword [ebp + 0x228]
add ecx, 4
cmp ecx, eax
jbe 0x4080b5
lea ecx, [esp + 0x70]
call sub.MFC42.DLL_CArchive::Flush
mov edx, dword [esp + 0x94]
mov dword [edx], esi
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x98]
mov esi, dword [ebp + 0x224]
add eax, edi
mov dword [esp + 0x94], eax
add eax, 4
cmp eax, ecx
jbe 0x4080eb
lea ecx, [esp + 0x70]
call sub.MFC42.DLL_CArchive::Flush
mov eax, dword [esp + 0x94]
mov dword [eax], esi
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x98]
mov esi, dword [ebp + 0x22c]
add eax, edi
mov dword [esp + 0x94], eax
add eax, 4
cmp eax, ecx
jbe 0x408121
lea ecx, [esp + 0x70]
call sub.MFC42.DLL_CArchive::Flush
mov ecx, dword [esp + 0x94]
mov dword [ecx], esi
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x98]
mov esi, dword [ebp + 0x230]
add eax, edi
mov dword [esp + 0x94], eax
add eax, 4
cmp eax, ecx
jbe 0x408157
lea ecx, [esp + 0x70]
call sub.MFC42.DLL_CArchive::Flush
mov edx, dword [esp + 0x94]
mov dword [edx], esi
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x98]
mov esi, dword [ebp + 0x234]
add eax, edi
mov dword [esp + 0x94], eax
add eax, 4
cmp eax, ecx
jbe 0x40818d
lea ecx, [esp + 0x70]
call sub.MFC42.DLL_CArchive::Flush
mov eax, dword [esp + 0x94]
mov dword [eax], esi
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x98]
mov esi, dword [ebp + 0x238]
add eax, edi
mov dword [esp + 0x94], eax
add eax, 4
cmp eax, ecx
jbe 0x4081c3
lea ecx, [esp + 0x70]
call sub.MFC42.DLL_CArchive::Flush
mov ecx, dword [esp + 0x94]
mov dword [ecx], esi
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x98]
mov esi, dword [ebp + 0x23c]
add eax, edi
mov dword [esp + 0x94], eax
add eax, 4
cmp eax, ecx
jbe 0x4081f9
lea ecx, [esp + 0x70]
call sub.MFC42.DLL_CArchive::Flush
mov edx, dword [esp + 0x94]
mov dword [edx], esi
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x98]
mov esi, dword [ebp + 0x240]
add eax, edi
mov dword [esp + 0x94], eax
add eax, 4
cmp eax, ecx
jbe 0x40822f
lea ecx, [esp + 0x70]
call sub.MFC42.DLL_CArchive::Flush
mov eax, dword [esp + 0x94]
lea ecx, [ebp + 0x64]
mov dword [eax], esi
mov eax, dword [esp + 0x94]
mov edx, dword [ecx]
add eax, edi
mov dword [esp + 0x94], eax
lea eax, [esp + 0x70]
push eax
call dword [edx + 8]
mov edx, dword [ebp + 0x80]
lea ecx, [ebp + 0x80]
lea eax, [esp + 0x70]
push eax
call dword [edx + 8]
mov edx, dword [ebp + 0x9c]
lea ecx, [ebp + 0x9c]
lea eax, [esp + 0x70]
push eax
call dword [edx + 8]
mov edx, dword [ebp + 0xb8]
lea ecx, [ebp + 0xb8]
lea eax, [esp + 0x70]
push eax
call dword [edx + 8]
mov edx, dword [ebp + 0xd4]
lea ecx, [ebp + 0xd4]
lea eax, [esp + 0x70]
push eax
call dword [edx + 8]
mov edx, dword [ebp + 0xf0]
lea ecx, [ebp + 0xf0]
lea eax, [esp + 0x70]
push eax
call dword [edx + 8]
lea ecx, [esp + 0x70]
call sub.MFC42.DLL_CArchive::Close
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFile::Close
mov ecx, dword [ebp + 0x25c]
mov eax, dword [ecx + 0xd4]
test eax, eax
jne 0x408487
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.MSVCRT.dll__chdir]
add esp, 4
test eax, eax
je 0x4082ff
push 0
push 0
push 0x45081c
jmp 0x4090fc
lea ecx, [esp + 0xc0]
call sub.MFC42.DLL_CFileFind::CFileFind
push 0
push 0x450838
lea ecx, [esp + 0xc8]
mov byte [esp + 0xda4], 7
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x40845b
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc0]
mov byte [esp + 0xd9c], 8
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov edi, eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0xc4]
call sub.MFC42.DLL_CFileFind::GetFileName
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xda0], 9
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x44]
mov byte [esp + 0xd9c], 8
call fcn.00440654
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::MakeUpper
mov ecx, dword [esp + 0x10]
push str.SYSDB.D
push ecx
call esi
add esp, 8
test eax, eax
je 0x408442
lea edx, [esp + 0x58]
push 6
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push str.COMPDB
push eax
call esi
add esp, 8
lea ecx, [esp + 0x58]
test eax, eax
sete bl
call fcn.00440654
test bl, bl
jne 0x408442
lea eax, [esp + 0x68]
push 6
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push str.COMPGP
push eax
call esi
add esp, 8
lea ecx, [esp + 0x68]
test eax, eax
sete bl
call fcn.00440654
test bl, bl
jne 0x408442
lea ecx, [esp + 0x4c]
push 7
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push str.COMPSTG
push eax
call esi
add esp, 8
lea ecx, [esp + 0x4c]
test eax, eax
sete bl
call fcn.00440654
test bl, bl
jne 0x408442
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.MSVCRT.dll_remove]
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0xd9c], 7
call fcn.00440654
test edi, edi
jne 0x408334
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xc4]
push eax
call dword [sym.imp.MSVCRT.dll__chdir]
add esp, 4
lea ecx, [esp + 0xc0]
mov byte [esp + 0xd9c], 6
call fcn.004409a8
mov eax, dword [ebp + 0x68]
xor esi, esi
test eax, eax
mov dword [esp + 0x58], esi
je 0x4084bf
lea edx, [esp + 0xdc]
mov edi, 2
mov ecx, eax
mov eax, dword [eax]
mov ecx, dword [ecx + 8]
cmp word [ecx + 0x10], di
jne 0x4084b7
mov cx, word [ecx + 4]
inc esi
mov word [edx], cx
add edx, edi
test eax, eax
jne 0x4084a0
mov dword [esp + 0x58], esi
xor eax, eax
test esi, esi
mov dword [esp + 0x44], eax
jle 0x409101
mov ecx, dword [ebp + 0x68]
test ecx, ecx
je 0x4090e4
mov bx, word [esp + eax*2 + 0xdc]
mov dword [esp + 0x54], ebx
mov eax, ecx
mov ecx, dword [ecx]
mov eax, dword [eax + 8]
cmp word [eax + 4], bx
jne 0x4090d8
cmp word [eax + 0x10], 2
jne 0x4090d8
mov esi, ebx
lea edx, [esp + 0x40]
and esi, 0xffff
lea eax, [esi + 1]
push eax
push 0x4500d4
push edx
mov dword [esp + 0x5c], eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [esp + 0x2c]
lea ecx, [esp + 0xb8]
push str.Sysdb_
push eax
push ecx
call sub.MFC42.DLL_operator
lea edx, [esp + 0x40]
mov byte [esp + 0xd9c], 0xa
push edx
push eax
lea eax, [esp + 0xbc]
push eax
call sub.MFC42.DLL_operator_1
push 0x45080c
lea ecx, [esp + 0xc0]
push eax
push ecx
mov byte [esp + 0xda8], 0xb
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0xda0], 0xc
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0xbc]
mov byte [esp + 0xd9c], 0xb
call fcn.00440654
lea ecx, [esp + 0xb4]
mov byte [esp + 0xd9c], 0xa
call fcn.00440654
lea ecx, [esp + 0xb8]
mov byte [esp + 0xd9c], 6
call fcn.00440654
mov edx, dword [esp + 0x34]
push 0
push 0x1001
push edx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x4090f3
lea eax, [esp + 0x28]
push 4
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], esi
call sub.MFC42.DLL_CFile::Write
mov edi, dword [ebp + 0x68]
test edi, edi
je 0x40865c
mov eax, edi
mov edi, dword [edi]
mov esi, dword [eax + 8]
cmp word [esi + 4], bx
jne 0x408654
cmp word [esi + 0x10], 2
lea ebp, [esi + 0x10]
jne 0x408654
lea ecx, [esi + 0x12]
push 2
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea edx, [esi + 0x14]
push 2
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea eax, [esi + 0x16]
push 2
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
add esi, 0x18
push 2
push esi
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
push 2
push ebp
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
test edi, edi
jne 0x4085f5
mov ebp, dword [esp + 0x30]
mov edx, dword [ebp + 0x84]
xor ecx, ecx
test edx, edx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x10], edx
je 0x408696
mov eax, edx
mov edx, dword [edx]
mov eax, dword [eax + 8]
cmp word [eax + 0xe], bx
jne 0x40868e
mov ax, word [eax + 4]
mov word [esp + ecx*2 + 0x1dc], ax
inc ecx
mov dword [esp + 0x64], ecx
test edx, edx
jne 0x408670
mov dword [esp + 0x10], edx
lea ecx, [esp + 0x64]
push 4
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
mov eax, dword [esp + 0x64]
mov dword [esp + 0x38], 0
test eax, eax
jle 0x4090bc
mov eax, dword [ebp + 0x84]
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x54]
test eax, eax
je 0x408754
mov ecx, eax
mov eax, dword [eax]
mov esi, dword [ecx + 8]
cmp word [esi + 0xe], di
jne 0x4086eb
mov dx, word [esi + 4]
cmp dx, word [esp + ebx*2 + 0x1dc]
je 0x4086f1
test eax, eax
jne 0x4086d0
jmp 0x408754
lea eax, [esi + 4]
push 2
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esi + 0xc]
push 2
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea edx, [esi + 0xe]
push 2
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea eax, [esi + 0x10]
push 2
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
add esi, 0x12
push 2
push esi
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esp + 0x28]
push 4
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0x3e8
call sub.MFC42.DLL_CFile::Write
mov edx, dword [ebp + 0xa0]
xor ecx, ecx
test edx, edx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x10], edx
je 0x4087a3
mov eax, edx
mov edx, dword [edx]
mov eax, dword [eax + 8]
cmp word [eax + 0xe], di
jne 0x40879b
mov si, word [eax + 0x10]
cmp si, word [esp + ebx*2 + 0x1dc]
jne 0x40879b
cmp word [eax + 0xc], 0
je 0x40879b
mov ax, word [eax + 4]
mov word [esp + ecx*2 + 0x5c4], ax
inc ecx
mov dword [esp + 0x5c], ecx
test edx, edx
jne 0x408768
mov dword [esp + 0x10], edx
lea ecx, [esp + 0x5c]
push 4
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x68], 0
test eax, eax
jle 0x4090a7
lea edx, [esp + 0x5c4]
mov dword [esp + 0x48], edx
mov ebp, dword [ebp + 0xa0]
test ebp, ebp
mov dword [esp + 0x10], ebp
je 0x409083
mov eax, ebp
mov ebp, dword [ebp]
mov dword [esp + 0x10], ebp
mov esi, dword [eax + 8]
mov dword [esp + 0x60], esi
mov ax, word [esi + 0xe]
cmp ax, word [esp + 0x54]
jne 0x408c2b
mov ecx, dword [esp + 0x38]
mov ax, word [esi + 0x10]
mov cx, word [esp + ecx*2 + 0x1dc]
cmp ax, cx
mov dword [esp + 0x6c], ecx
jne 0x408c2b
mov edx, dword [esp + 0x48]
mov cx, word [esi + 4]
mov dx, word [edx]
cmp cx, dx
mov dword [esp + 0x4c], edx
jne 0x408c2b
add esi, 0xc
cmp word [esi], 0
je 0x408c2b
lea eax, [eax + eax*4]
lea edx, [esp + 0x24]
push 2
push edx
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*4]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
push 2
push esi
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
mov ax, word [esi]
cmp ax, 1
je 0x408abf
cmp ax, 2
je 0x408abf
cmp ax, 3
je 0x408abf
cmp ax, 4
jne 0x4089ab
lea eax, [esp + 0x24]
push 2
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], 8
call sub.MFC42.DLL_CFile::Write
mov ebx, dword [esp + 0x50]
mov ebp, 1
mov ecx, dword [esp + 0x30]
mov edi, dword [ecx + 0xd8]
test edi, edi
je 0x40899c
mov eax, edi
mov edi, dword [edi]
push 0
mov esi, dword [eax + 8]
mov ecx, esi
mov edx, dword [esi + 4]
push edx
call fcn.00437500
cmp eax, ebx
jne 0x40895e
mov eax, dword [esi + 4]
push 1
push eax
mov ecx, esi
call fcn.00437500
cmp eax, 4
jne 0x40895e
mov ecx, dword [esi + 4]
push 2
push ecx
mov ecx, esi
call fcn.00437500
mov edx, dword [esp + 0x6c]
and edx, 0xffff
inc edx
cmp eax, edx
jne 0x40895e
mov eax, dword [esi + 4]
push 3
push eax
mov ecx, esi
call fcn.00437500
mov ecx, dword [esp + 0x4c]
and ecx, 0xffff
inc ecx
cmp eax, ecx
jne 0x40895e
mov edx, dword [esi + 4]
push 4
push edx
mov ecx, esi
call fcn.00437500
cmp eax, ebp
jne 0x40895e
mov eax, dword [esi + 4]
mov ecx, eax
and ecx, 0x40000000
cmp ecx, 0x40000000
je 0x40895e
and eax, 0x80000000
cmp eax, 0x80000000
jne 0x408968
test edi, edi
jne 0x4088cc
jmp 0x40899c
mov dx, word [esi + 0x7c]
lea eax, [esp + 0x24]
push 2
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], edx
call sub.MFC42.DLL_CFile::Write
fld dword [esi + 0x20]
call sub.MSVCRT.dll__ftol
lea ecx, [esp + 0x28]
push 4
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], eax
call sub.MFC42.DLL_CFile::Write
inc ebp
cmp ebp, 8
jle 0x4088ba
jmp 0x408bb4
cmp ax, 6
jne 0x408aa2
lea edx, [esp + 0x24]
push 2
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], 0x10
call sub.MFC42.DLL_CFile::Write
mov ebx, dword [esp + 0x50]
mov ebp, 1
mov eax, dword [esp + 0x30]
mov edi, dword [eax + 0xf4]
test edi, edi
je 0x408a93
mov eax, edi
mov edi, dword [edi]
push 0
mov esi, dword [eax + 8]
mov ecx, dword [esi + 4]
push ecx
mov ecx, esi
call fcn.00437f80
cmp eax, ebx
jne 0x408a7a
mov edx, dword [esi + 4]
push 1
push edx
mov ecx, esi
call fcn.00437f80
cmp eax, 6
jne 0x408a7a
mov eax, dword [esi + 4]
push 2
push eax
mov ecx, esi
call fcn.00437f80
mov ecx, dword [esp + 0x6c]
and ecx, 0xffff
inc ecx
cmp eax, ecx
jne 0x408a7a
mov edx, dword [esi + 4]
push 3
push edx
mov ecx, esi
call fcn.00437f80
mov ecx, dword [esp + 0x4c]
and ecx, 0xffff
inc ecx
cmp eax, ecx
jne 0x408a7a
mov edx, dword [esi + 4]
push 4
push edx
mov ecx, esi
call fcn.00437f80
cmp eax, ebp
jne 0x408a7a
mov eax, dword [esi + 4]
mov ecx, eax
and ecx, 0x40000000
cmp ecx, 0x40000000
je 0x408a7a
and eax, 0x80000000
cmp eax, 0x80000000
jne 0x408a84
test edi, edi
jne 0x4089e8
jmp 0x408a93
add esi, 0x54
push 2
push esi
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
inc ebp
cmp ebp, 0x10
jle 0x4089d6
jmp 0x408bb4
lea edx, [esp + 0x24]
push 2
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], 0
call sub.MFC42.DLL_CFile::Write
jmp 0x408bb4
and eax, 0xffff
push 2
mov ebx, eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], 8
call sub.MFC42.DLL_CFile::Write
mov ebp, 1
mov ecx, dword [esp + 0x30]
mov edi, dword [ecx + 0xd8]
test edi, edi
je 0x408baa
mov eax, edi
mov edi, dword [edi]
push 0
mov esi, dword [eax + 8]
mov ecx, esi
mov edx, dword [esi + 4]
push edx
call fcn.00437500
cmp eax, dword [esp + 0x50]
jne 0x408b88
mov eax, dword [esi + 4]
push 1
push eax
mov ecx, esi
call fcn.00437500
cmp eax, ebx
jne 0x408b88
mov ecx, dword [esi + 4]
push 2
push ecx
mov ecx, esi
call fcn.00437500
mov edx, dword [esp + 0x6c]
and edx, 0xffff
inc edx
cmp eax, edx
jne 0x408b88
mov eax, dword [esi + 4]
push 3
push eax
mov ecx, esi
call fcn.00437500
mov ecx, dword [esp + 0x4c]
and ecx, 0xffff
inc ecx
cmp eax, ecx
jne 0x408b88
mov edx, dword [esi + 4]
push 4
push edx
mov ecx, esi
call fcn.00437500
cmp eax, ebp
jne 0x408b88
mov eax, dword [esi + 4]
mov ecx, eax
and ecx, 0x40000000
cmp ecx, 0x40000000
je 0x408b88
and eax, 0x80000000
cmp eax, 0x80000000
jne 0x408b92
test edi, edi
jne 0x408af5
jmp 0x408baa
mov dx, word [esi + 0x7c]
lea eax, [esp + 0x24]
push 2
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], edx
call sub.MFC42.DLL_CFile::Write
inc ebp
cmp ebp, 8
jle 0x408ae3
mov esi, dword [esp + 0x60]
push 2
lea ecx, [esp + 0x18]
lea eax, [esi + 0xe]
push eax
call sub.MFC42.DLL_CFile::Write
lea ecx, [esi + 0x12]
push 2
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea eax, [esi + 4]
push 2
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
mov ax, word [esi + 0xc]
cmp ax, 1
je 0x408e01
cmp ax, 2
je 0x408e01
cmp ax, 3
je 0x408e01
cmp ax, 4
je 0x408e01
cmp ax, 5
je 0x408e01
cmp ax, 6
je 0x408c38
cmp ax, 7
je 0x408c38
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x409083
jmp 0x4087e4
xor ebp, ebp
lea edx, [esp + 0x28]
mov bp, word [esi + 0xc]
push 4
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0x10
call sub.MFC42.DLL_CFile::Write
mov eax, dword [esp + 0x30]
mov ebx, dword [eax + 0xf4]
test ebx, ebx
mov dword [esp + 0x10], ebx
je 0x409083
mov eax, ebx
mov ebx, dword [ebx]
push 0
mov esi, dword [eax + 8]
mov ecx, dword [esi + 4]
lea edi, [esi + 4]
push ecx
mov ecx, esi
call fcn.00437f80
cmp eax, dword [esp + 0x50]
jne 0x408df0
mov edx, dword [edi]
push 1
push edx
mov ecx, esi
call fcn.00437f80
cmp eax, ebp
jne 0x408df0
mov eax, dword [edi]
push 2
push eax
mov ecx, esi
call fcn.00437f80
mov edx, dword [esp + 0x38]
xor ecx, ecx
mov cx, word [esp + edx*2 + 0x1dc]
inc ecx
cmp eax, ecx
jne 0x408df0
mov eax, dword [edi]
push 3
push eax
mov ecx, esi
call fcn.00437f80
mov edx, dword [esp + 0x48]
xor ecx, ecx
mov cx, word [edx]
inc ecx
cmp eax, ecx
jne 0x408df0
mov eax, dword [edi]
mov ecx, eax
and ecx, 0x20000000
cmp ecx, 0x20000000
je 0x408df0
and eax, 0x80000000
cmp eax, 0x80000000
je 0x408df0
push 4
push edi
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea edx, [esi + 0x10]
push 2
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea eax, [esi + 0x12]
push 2
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esi + 0x14]
push 4
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
xor edx, edx
lea eax, [esp + 0x28]
mov dl, byte [esi + 0x1a]
push 4
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], edx
call sub.MFC42.DLL_CFile::Write
lea ecx, [esi + 0x1c]
push 4
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea edx, [esi + 0x20]
push 4
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea eax, [esi + 0x2c]
push 4
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esi + 0x30]
push 4
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea edx, [esi + 0x38]
push 4
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea eax, [esi + 0x48]
push 2
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esi + 0x4a]
push 2
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea edx, [esi + 0x4c]
push 2
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea eax, [esi + 0x50]
push 4
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
add esi, 0x54
push 2
push esi
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
test ebx, ebx
jne 0x408c6c
mov dword [esp + 0x10], ebx
jmp 0x409083
xor ebp, ebp
lea edx, [esp + 0x28]
mov bp, word [esi + 0xc]
push 4
mov ecx, ebp
push edx
sub ecx, 5
neg ecx
sbb ecx, ecx
and ecx, 4
add ecx, 4
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
mov eax, dword [esp + 0x30]
mov ebx, dword [eax + 0xd8]
test ebx, ebx
mov dword [esp + 0x10], ebx
je 0x409083
mov eax, ebx
mov ebx, dword [ebx]
push 0
mov dword [esp + 0x14], ebx
mov esi, dword [eax + 8]
mov ecx, dword [esi + 4]
lea edi, [esi + 4]
push ecx
mov ecx, esi
call fcn.00437500
cmp eax, dword [esp + 0x50]
jne 0x40907b
mov edx, dword [edi]
push 1
push edx
mov ecx, esi
call fcn.00437500
cmp eax, ebp
jne 0x40907b
mov eax, dword [edi]
push 2
push eax
mov ecx, esi
call fcn.00437500
mov edx, dword [esp + 0x38]
xor ecx, ecx
mov cx, word [esp + edx*2 + 0x1dc]
inc ecx
cmp eax, ecx
jne 0x40907b
mov eax, dword [edi]
push 3
push eax
mov ecx, esi
call fcn.00437500
mov edx, dword [esp + 0x48]
xor ecx, ecx
mov cx, word [edx]
inc ecx
cmp eax, ecx
jne 0x40907b
mov eax, dword [edi]
mov ecx, eax
and ecx, 0x40000000
cmp ecx, 0x40000000
je 0x40907b
and eax, 0x80000000
cmp eax, 0x80000000
je 0x40907b
push 4
push edi
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea edx, [esi + 0x14]
push 2
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea eax, [esi + 0x16]
push 2
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esi + 0x18]
push 4
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea edx, [esi + 0x20]
push 4
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea eax, [esi + 0x2c]
push 4
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esi + 0x30]
push 4
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea edx, [esi + 0x34]
push 4
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea eax, [esi + 0x38]
push 4
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esi + 0x3c]
push 4
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea edx, [esi + 0x40]
push 4
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea eax, [esi + 0x44]
push 4
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esi + 0x48]
push 4
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea edx, [esi + 0x4c]
push 4
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea eax, [esi + 0x50]
push 4
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esi + 0x54]
push 4
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
push 4
lea edx, [esi + 0x58]
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea eax, [esi + 0x5c]
push 4
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esi + 0x60]
push 4
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea edx, [esi + 0x64]
push 4
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea eax, [esi + 0x6c]
push 4
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esi + 0x74]
push 4
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea edx, [esi + 0x78]
push 4
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea eax, [esi + 0x7c]
push 4
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esi + 0x84]
push 4
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
lea edx, [esi + 0x88]
push 4
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
add esi, 0x8c
push 4
push esi
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
test ebx, ebx
jne 0x408e40
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x30]
inc eax
add edx, 2
cmp eax, ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x48], edx
jl 0x4087d2
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x64]
inc eax
cmp eax, ecx
mov dword [esp + 0x38], eax
jl 0x4086ba
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFile::Close
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x58]
mov ebx, dword [esp + 0x54]
mov dword [ebp + 0x60], 0
test ecx, ecx
jne 0x4084e4
mov eax, dword [esp + 0x44]
inc eax
cmp eax, esi
mov dword [esp + 0x44], eax
jl 0x4084cd
jmp 0x409101
push 0
push 0x10
push 0x45084c
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x70]
mov byte [esp + 0xd9c], 4
call fcn.00440882
lea ecx, [esp + 0x14]
mov byte [esp + 0xd9c], 3
call fcn.0044087c
lea ecx, [esp + 0x40]
mov byte [esp + 0xd9c], 2
call fcn.00440654
lea ecx, [esp + 0x34]
mov byte [esp + 0xd9c], 1
call fcn.00440654
lea ecx, [esp + 0x3c]
mov byte [esp + 0xd9c], 0
call fcn.00440654
lea ecx, [esp + 0x2c]
mov dword [esp + 0xd9c], 0xffffffff
call fcn.00440654
mov ecx, dword [esp + 0xd94]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xd90
ret