Function at 0x408400
Capabilities:
Delete file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5c3101
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xaf4
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x1c], esi
call fcn.00432930
test al, al
jne 0x4097b9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc8]
call sub.mfc42u.dll_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.mfc42u.dll_CCmdTarget::BeginWaitCursor
xor edi, edi
mov ecx, esi
mov dword [esp + 0xb08], edi
call fcn.0043eb10
mov dword [esp + 0x34], 0x5e29d4
mov dword [esp + 0x38], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x20], 0x5e29c0
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
lea ecx, [esp + 0x6c]
mov byte [esp + 0xb08], 2
call fcn.0040aea0
lea ecx, [esp + 0x80]
mov byte [esp + 0xb08], 3
call fcn.0040af20
lea ecx, [esp + 0x94]
mov byte [esp + 0xb08], 4
call fcn.0040afa0
lea ecx, [esp + 0xa8]
mov byte [esp + 0xb08], 5
call fcn.0040abe0
lea ecx, [esp + 0xbc]
mov byte [esp + 0xb08], 6
call fcn.0040b330
lea ecx, [esp + 0xd0]
mov byte [esp + 0xb08], 7
call fcn.0040b6d0
lea ecx, [esp + 0xe4]
mov byte [esp + 0xb08], 8
call fcn.0040bae0
mov ecx, dword [ebp + 8]
push edi
push ecx
lea ecx, [esp + 0x13c]
call fcn.004b4ed0
lea edx, [esp + 0x548]
push 0x558
push edx
lea ecx, [esp + 0x13c]
mov byte [esp + 0xb10], 0xa
call sub.mfc42u.dll_CFile::Read
cmp eax, 0x558
jae 0x40858e
mov edx, dword [esp + 0x134]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x138]
call dword [edx + 0x18]
mov eax, dword [esp + 0x134]
lea ecx, [esp + 0x134]
call dword [eax + 0x54]
mov ecx, dword [esp + 0x14]
push ecx
push 0xffffffffffffffff
push 1
call sub.mfc42u.dll_AfxThrowFileException
lea ecx, [esp + 0x14]
call sub.mfc42u.dll_CString::CString
lea edx, [esp + 0xaa0]
push 0x60
push edx
lea ecx, [esp + 0x13c]
call sub.mfc42u.dll_CFile::Read
cmp eax, 0x60
jae 0x4085e7
mov edx, dword [esp + 0x134]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x138]
call dword [edx + 0x18]
mov eax, dword [esp + 0x134]
lea ecx, [esp + 0x134]
call dword [eax + 0x54]
mov ecx, dword [esp + 0x14]
push ecx
push 0xffffffffffffffff
push 1
call sub.mfc42u.dll_AfxThrowFileException
lea ecx, [esp + 0x14]
call sub.mfc42u.dll_CString::CString
mov edx, dword [esp + 0xa74]
lea ecx, [esp + 0x6c]
push edx
push esi
call fcn.00401ff0
mov ecx, dword [esp + 0x554]
mov eax, dword [esp + 0x550]
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x108], ecx
mov ecx, dword [esp + 0xa7c]
mov dword [esp + 0x104], eax
mov esi, ecx
cmp ecx, edi
mov dword [esp + 0x18], esi
jne 0x40864c
cmp ebx, edi
je 0x40863d
push ebx
call sub.mfc42u.dll_operatordelete
add esp, 4
xor ebx, ebx
mov dword [esp + 0x70], ebx
xor esi, esi
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], esi
jmp 0x40874f
cmp ebx, edi
jne 0x40867b
lea edx, [ecx + ecx*2]
shl edx, 2
push edx
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [esp + 0x70], eax
push esi
push eax
call fcn.00415f70
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], esi
jmp 0x40874f
cmp ecx, dword [esp + 0x78]
jg 0x4086a5
mov eax, dword [esp + 0x74]
cmp ecx, eax
jle 0x40869c
sub ecx, eax
lea eax, [eax + eax*2]
push ecx
lea ecx, [ebx + eax*4]
push ecx
call fcn.00415f70
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x74], esi
jmp 0x40874f
mov eax, dword [esp + 0x7c]
cmp eax, edi
jne 0x4086d2
mov eax, dword [esp + 0x74]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x4086c6
mov eax, 4
jmp 0x4086d2
cmp eax, 0x400
jle 0x4086d2
mov eax, 0x400
mov edx, dword [esp + 0x78]
add eax, edx
cmp ecx, eax
mov dword [esp + 0x10], eax
jl 0x4086e4
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
lea eax, [eax + eax*2]
shl eax, 2
push eax
call sub.mfc42u.dll_operatornew
mov ebx, eax
mov eax, dword [esp + 0x78]
mov esi, dword [esp + 0x74]
mov edi, ebx
lea ecx, [eax + eax*2]
add esp, 4
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x74]
mov esi, dword [esp + 0x18]
mov ecx, esi
lea edx, [eax + eax*2]
sub ecx, eax
push ecx
lea eax, [ebx + edx*4]
push eax
call fcn.00415f70
mov ecx, dword [esp + 0x70]
push ecx
call sub.mfc42u.dll_operatordelete
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], edx
xor edi, edi
lea esi, [esi + esi*2]
lea ecx, [esp + 0x134]
shl esi, 2
push esi
push ebx
call sub.mfc42u.dll_CFile::Read
cmp eax, esi
jae 0x4087a5
mov edx, dword [esp + 0x134]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x138]
call dword [edx + 0x18]
mov eax, dword [esp + 0x134]
lea ecx, [esp + 0x134]
call dword [eax + 0x54]
mov ecx, dword [esp + 0x14]
push ecx
push 0xffffffffffffffff
push 1
call sub.mfc42u.dll_AfxThrowFileException
lea ecx, [esp + 0x14]
call sub.mfc42u.dll_CString::CString
mov ecx, dword [esp + 0xa80]
mov ebx, dword [esp + 0x38]
mov esi, ecx
cmp ecx, edi
mov dword [esp + 0x18], esi
jne 0x4087dc
cmp ebx, edi
je 0x4087cd
push ebx
call sub.mfc42u.dll_operatordelete
add esp, 4
xor ebx, ebx
mov dword [esp + 0x38], ebx
xor eax, eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], eax
jmp 0x4088da
cmp ebx, edi
jne 0x40880a
shl ecx, 4
push ecx
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [esp + 0x38], eax
push esi
push eax
call fcn.00505af0
mov ebx, dword [esp + 0x38]
mov eax, esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], eax
jmp 0x4088da
cmp ecx, dword [esp + 0x40]
jg 0x408835
mov eax, dword [esp + 0x3c]
cmp ecx, eax
jle 0x40882a
sub ecx, eax
shl eax, 4
add eax, ebx
push ecx
push eax
call fcn.00505af0
mov ebx, dword [esp + 0x38]
mov eax, esi
mov dword [esp + 0x3c], eax
jmp 0x4088da
mov eax, dword [esp + 0x44]
cmp eax, edi
jne 0x408862
mov eax, dword [esp + 0x3c]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x408856
mov eax, 4
jmp 0x408862
cmp eax, 0x400
jle 0x408862
mov eax, 0x400
mov edx, dword [esp + 0x40]
add eax, edx
cmp ecx, eax
mov dword [esp + 0x10], eax
jl 0x408874
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
shl eax, 4
push eax
call sub.mfc42u.dll_operatornew
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
shl ecx, 4
mov ebx, eax
mov edx, ecx
mov edi, ebx
add esp, 4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x3c]
mov ecx, esi
sub ecx, eax
shl eax, 4
add eax, ebx
push ecx
push eax
call fcn.00505af0
mov edx, dword [esp + 0x38]
push edx
call sub.mfc42u.dll_operatordelete
mov ecx, dword [esp + 0x14]
mov eax, esi
add esp, 4
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
xor edi, edi
shl eax, 4
mov esi, eax
lea ecx, [esp + 0x134]
push esi
push ebx
call sub.mfc42u.dll_CFile::Read
cmp eax, esi
jae 0x40892f
mov eax, dword [esp + 0x134]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x138]
call dword [eax + 0x18]
mov edx, dword [esp + 0x134]
lea ecx, [esp + 0x134]
call dword [edx + 0x54]
mov eax, dword [esp + 0x14]
push eax
push 0xffffffffffffffff
push 1
call sub.mfc42u.dll_AfxThrowFileException
lea ecx, [esp + 0x14]
call sub.mfc42u.dll_CString::CString
mov ecx, dword [esp + 0xa7c]
mov esi, ecx
cmp ecx, edi
mov dword [esp + 0x18], esi
jne 0x408970
mov eax, dword [esp + 0x84]
cmp eax, edi
je 0x40895b
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x84], edi
xor edx, edx
mov dword [esp + 0x8c], edi
mov dword [esp + 0x88], edx
jmp 0x408a89
mov edx, dword [esp + 0x84]
cmp edx, edi
jne 0x4089aa
shl ecx, 2
push ecx
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [esp + 0x84], eax
push esi
push eax
call fcn.005463a0
mov edx, esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], edx
jmp 0x408a89
mov ebx, dword [esp + 0x8c]
cmp ecx, ebx
jg 0x4089da
mov eax, dword [esp + 0x88]
cmp ecx, eax
jle 0x4089cc
sub ecx, eax
lea edx, [edx + eax*4]
push ecx
push edx
call fcn.005463a0
mov edx, esi
mov dword [esp + 0x88], edx
jmp 0x408a89
mov eax, dword [esp + 0x90]
cmp eax, edi
jne 0x408a0d
mov eax, dword [esp + 0x88]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x408a01
mov eax, 4
jmp 0x408a0d
cmp eax, 0x400
jle 0x408a0d
mov eax, 0x400
add eax, ebx
cmp ecx, eax
mov dword [esp + 0x10], eax
jl 0x408a1b
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
lea ecx, [eax*4]
push ecx
call sub.mfc42u.dll_operatornew
mov ecx, dword [esp + 0x8c]
mov esi, dword [esp + 0x88]
mov ebx, eax
add esp, 4
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x88]
mov edx, esi
sub edx, eax
lea eax, [ebx + eax*4]
push edx
push eax
call fcn.005463a0
mov ecx, dword [esp + 0x84]
push ecx
call sub.mfc42u.dll_operatordelete
mov eax, dword [esp + 0x14]
mov edx, esi
add esp, 4
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], eax
xor edi, edi
xor eax, eax
xor ecx, ecx
cmp edx, edi
jle 0x408ac1
xor edx, edx
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x84]
mov esi, eax
add edx, 0xc
shl esi, 4
add esi, ebx
mov dword [edi + ecx*4], esi
mov esi, dword [esp + 0x70]
mov edi, dword [edx + esi - 0xc]
mov esi, dword [esp + 0x88]
add eax, edi
inc ecx
cmp ecx, esi
jl 0x408a93
mov ecx, dword [esp + 0xa78]
mov ebx, dword [esp + 0x98]
mov esi, ecx
test ecx, ecx
mov dword [esp + 0x18], esi
jne 0x408b08
test ebx, ebx
je 0x408aef
push ebx
call sub.mfc42u.dll_operatordelete
add esp, 4
xor ebx, ebx
mov dword [esp + 0x98], ebx
xor eax, eax
mov dword [esp + 0xa0], 0
mov dword [esp + 0x9c], eax
jmp 0x408c35
test ebx, ebx
jne 0x408b42
shl ecx, 7
push ecx
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [esp + 0x98], eax
push esi
push eax
call fcn.0040ce30
mov ebx, dword [esp + 0x98]
mov eax, esi
mov dword [esp + 0xa0], esi
mov dword [esp + 0x9c], eax
jmp 0x408c35
mov edi, dword [esp + 0xa0]
cmp ecx, edi
jg 0x408b7b
mov eax, dword [esp + 0x9c]
cmp ecx, eax
jle 0x408b6d
sub ecx, eax
shl eax, 7
add eax, ebx
push ecx
push eax
call fcn.0040ce30
mov ebx, dword [esp + 0x98]
mov eax, esi
mov dword [esp + 0x9c], eax
jmp 0x408c35
mov eax, dword [esp + 0xa4]
test eax, eax
jne 0x408bae
mov eax, dword [esp + 0x9c]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x408ba2
mov eax, 4
jmp 0x408bae
cmp eax, 0x400
jle 0x408bae
mov eax, 0x400
add eax, edi
cmp ecx, eax
mov dword [esp + 0x10], eax
jl 0x408bbc
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x10]
shl ecx, 7
push ecx
call sub.mfc42u.dll_operatornew
mov ecx, dword [esp + 0xa0]
mov esi, dword [esp + 0x9c]
shl ecx, 7
mov ebx, eax
mov edx, ecx
mov edi, ebx
add esp, 4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x9c]
mov ecx, esi
sub ecx, eax
shl eax, 7
add eax, ebx
push ecx
push eax
call fcn.0040ce30
mov edx, dword [esp + 0x98]
push edx
call sub.mfc42u.dll_operatordelete
mov ecx, dword [esp + 0x14]
mov eax, esi
add esp, 4
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], ecx
shl eax, 7
mov esi, eax
lea ecx, [esp + 0x134]
push esi
push ebx
call sub.mfc42u.dll_CFile::Read
cmp eax, esi
jae 0x408c8a
mov eax, dword [esp + 0x134]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x138]
call dword [eax + 0x18]
mov edx, dword [esp + 0x134]
lea ecx, [esp + 0x134]
call dword [edx + 0x54]
mov eax, dword [esp + 0x14]
push eax
push 0xffffffffffffffff
push 1
call sub.mfc42u.dll_AfxThrowFileException
lea ecx, [esp + 0x14]
call sub.mfc42u.dll_CString::CString
mov ecx, dword [esp + 0x55c]
push 0
add ecx, 0x558
push ecx
lea ecx, [esp + 0x13c]
call sub.mfc42u.dll_CFile::Seek
mov esi, dword [esp + 0x1c]
lea edx, [esp + 0x134]
push 1
push edx
lea edi, [esi + 0x2e0]
mov ecx, edi
call fcn.004d9d50
mov ecx, edi
mov ebx, eax
call fcn.004da3f0
test ebx, ebx
push 0
je 0x40967b
mov ecx, esi
call fcn.0043df80
test al, al
lea ecx, [esp + 0x134]
jne 0x408df7
call sub.mfc42u.dll_CFile::Close
push 1
push 0
push 0
push 0
push 0
push 0x617b88
call sub.etinfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
push eax
call fcn.0046c660
add esp, 0x18
lea ecx, [esp + 0x134]
mov byte [esp + 0xb08], 9
call fcn.004b4f00
lea ecx, [esp + 0xe4]
mov byte [esp + 0xb08], 0x10
call fcn.0040bb00
lea ecx, [esp + 0xd0]
mov byte [esp + 0xb08], 0xf
call fcn.0040b880
lea ecx, [esp + 0xbc]
mov byte [esp + 0xb08], 0xe
call fcn.0040b4b0
lea ecx, [esp + 0xa8]
mov byte [esp + 0xb08], 0xd
call fcn.0040ac00
lea ecx, [esp + 0x94]
mov byte [esp + 0xb08], 0xc
call fcn.0040b120
lea ecx, [esp + 0x80]
mov byte [esp + 0xb08], 0xb
call fcn.0040af40
lea ecx, [esp + 0x6c]
mov byte [esp + 0xb08], 2
call fcn.0040aec0
mov dword [esp + 0x20], 0x5e29c0
mov eax, dword [esp + 0x24]
mov byte [esp + 0xb08], 0x11
test eax, eax
je 0x408dcd
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov esi, 0x5e262c
mov dword [esp + 0x34], 0x5e29d4
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x38]
mov byte [esp + 0xb08], 0x12
test eax, eax
je 0x40979d
jmp 0x409794
call sub.mfc42u.dll_CFile::GetPosition
lea ecx, [esp + 0x134]
mov esi, eax
call sub.mfc42u.dll_CFile::GetLength
mov ecx, eax
mov eax, 0xcccccccd
sub ecx, esi
mul ecx
mov eax, dword [esp + 0x24]
mov ebx, edx
shr ebx, 5
jne 0x408e42
xor ebx, ebx
cmp eax, ebx
je 0x408e35
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
jmp 0x408f45
test eax, eax
jne 0x408e71
lea eax, [ebx + ebx*4]
shl eax, 3
push eax
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [esp + 0x24], eax
push ebx
push eax
call fcn.0040d460
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
jmp 0x408f45
mov ecx, dword [esp + 0x2c]
cmp ebx, ecx
jg 0x408e9f
mov ecx, dword [esp + 0x28]
cmp ebx, ecx
jle 0x408e96
mov edx, ebx
sub edx, ecx
lea ecx, [ecx + ecx*4]
push edx
lea edx, [eax + ecx*8]
push edx
call fcn.0040d460
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], ebx
jmp 0x408f45
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x408ecc
mov eax, dword [esp + 0x28]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x408ec0
mov eax, 4
jmp 0x408ecc
cmp eax, 0x400
jle 0x408ecc
mov eax, 0x400
add eax, ecx
cmp ebx, eax
mov dword [esp + 0x10], eax
jl 0x408eda
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x10]
lea eax, [eax + eax*4]
shl eax, 3
push eax
call sub.mfc42u.dll_operatornew
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov edi, eax
add esp, 4
lea ecx, [ecx + ecx*4]
mov dword [esp + 0x18], eax
shl ecx, 3
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x28]
sub edx, ecx
lea ecx, [ecx + ecx*4]
push edx
lea edx, [eax + ecx*8]
push edx
call fcn.0040d460
mov eax, dword [esp + 0x24]
push eax
call sub.mfc42u.dll_operatordelete
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ecx
lea esi, [ebx + ebx*4]
lea ecx, [esp + 0x134]
shl esi, 3
push esi
push eax
call sub.mfc42u.dll_CFile::Read
cmp eax, esi
jae 0x408f9b
mov eax, dword [esp + 0x134]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x138]
call dword [eax + 0x18]
mov edx, dword [esp + 0x134]
lea ecx, [esp + 0x134]
call dword [edx + 0x54]
mov eax, dword [esp + 0x14]
push eax
push 0xffffffffffffffff
push 1
call sub.mfc42u.dll_AfxThrowFileException
lea ecx, [esp + 0x14]
call sub.mfc42u.dll_CString::CString
lea ecx, [esp + 0x134]
call sub.mfc42u.dll_CFile::Close
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.kernel32.dll_DeleteFileW]
mov edi, dword [esp + 0x1c]
mov ecx, edi
call fcn.004382f0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xa74]
cdq
idiv ecx
test edx, edx
jne 0x409622
cmp dword [edi + 0x800], ecx
jl 0x409622
push 0xffffffffffffffff
push edx
lea ecx, [edi + 0xb18]
mov dword [edi + 0xab0], 1
call fcn.0046d900
mov eax, dword [edi + 0x800]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xd8]
call fcn.0040b6f0
mov eax, dword [edi + 0x800]
xor esi, esi
test eax, eax
mov dword [esp + 0x18], eax
jle 0x40904e
xor ebx, ebx
mov edx, dword [edi + 0x7fc]
lea ecx, [esp + 0xa8]
mov eax, dword [edx + esi*4]
push eax
call fcn.00599100
mov eax, dword [esp + 0xd4]
lea ecx, [ebx + eax]
call fcn.004b75c0
mov eax, dword [esp + 0x18]
inc esi
add ebx, 0x50
cmp esi, eax
jl 0x40901d
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x4c]
push ecx
push edx
lea ecx, [esp + 0x74]
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
call fcn.00402120
mov edi, 2
mov dword [esp + 0x18], eax
cmp eax, edi
jne 0x4090d6
mov eax, dword [esp + 0xb0]
xor esi, esi
test eax, eax
jle 0x4090d6
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + esi*4]
cmp dword [ecx + 0x1b0], edi
jne 0x4090ca
fld qword [esp + 0x4c]
mov edx, dword [ecx]
sub esp, 8
fchs
fstp qword [esp]
fld qword [esp + 0x64]
sub esp, 8
fchs
fstp qword [esp]
call dword [edx + 0xc]
mov eax, dword [esp + 0xb0]
inc esi
cmp esi, eax
jl 0x40909b
fld qword [esp + 0x570]
fcomp qword [0x5e2798]
xor edx, edx
mov dword [esp + 0x14], edx
fnstsw ax
test ah, 0x41
jne 0x40910f
lea ecx, [esp + 0x570]
fld qword [ecx + 8]
fcomp qword [0x5e2798]
add ecx, 8
inc edx
fnstsw ax
test ah, 0x41
je 0x4090f7
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0xa74]
cdq
idiv edi
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x58], ebx
mov dword [esp + 0x11c], ebx
mov dword [esp + 0x120], ebx
test eax, eax
mov dword [esp + 0x68], eax
jle 0x409414
lea eax, [esp + 0x5f0]
mov dword [esp + 0x48], eax
xor edx, edx
test edi, edi
jle 0x40926d
xor eax, eax
mov ecx, esi
mov ebx, dword [esp + 0x98]
imul ecx, edi
mov edi, dword [esp + 0x24]
add ecx, edx
lea ecx, [ecx + ecx*4]
lea ecx, [edi + ecx*8 + 0x10]
mov edi, dword [ecx]
mov dword [eax + ebx + 0x14], edi
mov edi, dword [esp + 0x98]
mov ecx, dword [ecx + 4]
mov dword [eax + edi + 0x18], ecx
mov ecx, esi
imul ecx, dword [esp + 0xa74]
mov edi, dword [esp + 0x24]
add ecx, edx
mov ebx, dword [esp + 0x98]
lea ecx, [ecx + ecx*4]
lea ecx, [edi + ecx*8]
mov edi, dword [ecx]
mov dword [eax + ebx + 4], edi
mov edi, dword [esp + 0x98]
mov ecx, dword [ecx + 4]
mov dword [eax + edi + 8], ecx
mov ecx, esi
imul ecx, dword [esp + 0xa74]
mov edi, dword [esp + 0x24]
add ecx, edx
mov ebx, dword [esp + 0x98]
lea ecx, [ecx + ecx*4]
lea ecx, [edi + ecx*8 + 8]
mov edi, dword [ecx]
mov dword [eax + ebx + 0xc], edi
mov edi, dword [esp + 0x98]
mov ecx, dword [ecx + 4]
mov dword [eax + edi + 0x10], ecx
mov ecx, esi
imul ecx, dword [esp + 0xa74]
mov edi, dword [esp + 0x24]
add ecx, edx
lea ecx, [ecx + ecx*4]
mov ecx, dword [edi + ecx*8 + 0x18]
mov edi, dword [esp + 0x98]
mov dword [eax + edi + 0x1c], ecx
mov ecx, dword [esp + 0x98]
mov dword [eax + ecx + 0x50], 1
mov ecx, dword [esp + 0x18]
cmp ecx, 2
jne 0x409254
fld qword [esp + 0x5c]
fmul qword [esp + 0x104]
mov ecx, dword [esp + 0x98]
fsubr qword [eax + ecx + 4]
fstp qword [eax + ecx + 4]
fld qword [esp + 0x4c]
fmul qword [esp + 0x104]
mov ecx, dword [esp + 0x98]
fsubr qword [eax + ecx + 0xc]
fstp qword [eax + ecx + 0xc]
mov edi, dword [esp + 0xa74]
inc edx
add eax, 0x80
cmp edx, edi
jl 0x409156
mov ebx, dword [esp + 0x58]
lea ecx, [esp + 0x6c]
call fcn.00402330
lea ecx, [esp + 0x10]
call sub.mfc42u.dll_CString::CString_3
mov eax, dword [esp + 0x14]
mov byte [esp + 0xb08], 0x1b
cmp eax, 1
jg 0x4092dd
mov eax, esi
sub esp, 8
imul eax, dword [esp + 0xa7c]
lea ecx, [esp + 0x18]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x2c]
fld dword [eax + edx*8 + 0x20]
fstp qword [esp]
push 0x617b78
push ecx
call sub.mfc42u.dll_CString::Format_1
mov edi, dword [esp + 0x2c]
add esp, 0x10
lea edx, [esp + 0x10]
push edx
lea ecx, [edi + 0x2e0]
call fcn.004df000
mov ecx, edi
call fcn.0043d980
jmp 0x4093e4
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [esp + 0x1c]
push ecx
push edx
lea edi, [eax + 0x2e0]
mov ecx, edi
call fcn.004df0a0
mov ecx, dword [esp + 0x1c]
push 0
mov edx, dword [ecx + 0xbb4]
mov eax, dword [ecx + 0xbb0]
push edx
push eax
call fcn.00457020
push eax
mov ecx, edi
call fcn.004df160
mov ecx, edi
fstp st(0)
call fcn.004dfab0
mov ecx, dword [eax + 0xbc]
push ecx
mov edx, dword [eax + 0xb8]
lea eax, [esp + 0x14]
push edx
push 0x617b6c
push eax
call sub.mfc42u.dll_CString::Format_1
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call fcn.004df000
push fcn.0043d6a0
lea ecx, [esp + 0x130]
call fcn.004097d0
mov eax, dword [eax + 4]
push eax
call fcn.004cfc92
add esp, 4
test eax, eax
je 0x40942b
mov ecx, dword [esp + 0x1c]
call fcn.0043d6a0
push fcn.0043d6a0
lea ecx, [esp + 0x128]
call fcn.004097d0
mov eax, dword [eax + 4]
push eax
call fcn.004cfc8c
add esp, 4
test eax, eax
je 0x409433
mov ecx, edi
call fcn.004dfab0
fld qword [eax + 0xb8]
fcomp qword [esp + 0x11c]
fnstsw ax
test ah, 0x41
jne 0x4093e4
mov ecx, edi
call fcn.004dfab0
mov edx, dword [eax + 0xb8]
mov ebx, esi
mov dword [esp + 0x11c], edx
mov dword [esp + 0x58], ebx
mov eax, dword [eax + 0xbc]
mov dword [esp + 0x120], eax
lea ecx, [esp + 0x10]
mov byte [esp + 0xb08], 0xa
call sub.mfc42u.dll_CString::CString
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x68]
mov edi, dword [esp + 0xa74]
inc esi
add ecx, 8
cmp esi, eax
mov dword [esp + 0x48], ecx
jl 0x40914a
cmp dword [esp + 0x14], 1
jg 0x40943b
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.0043eb10
jmp 0x4095bb
push 1
call dword [sym.imp.msvcrt.dll__exit]
push 1
call dword [sym.imp.msvcrt.dll__exit]
dec eax
cmp ebx, eax
je 0x4095ae
xor edx, edx
test edi, edi
jle 0x409563
xor eax, eax
mov ecx, ebx
mov esi, dword [esp + 0x24]
imul ecx, edi
add ecx, edx
mov edi, dword [esp + 0x98]
lea ecx, [ecx + ecx*4]
lea ecx, [esi + ecx*8 + 0x10]
mov esi, dword [ecx]
mov dword [edi + eax + 0x14], esi
mov esi, dword [esp + 0x98]
mov ecx, dword [ecx + 4]
mov dword [esi + eax + 0x18], ecx
mov ecx, ebx
imul ecx, dword [esp + 0xa74]
mov esi, dword [esp + 0x24]
add ecx, edx
mov edi, dword [esp + 0x98]
lea ecx, [ecx + ecx*4]
lea ecx, [esi + ecx*8]
mov esi, dword [ecx]
mov dword [edi + eax + 4], esi
mov esi, dword [esp + 0x98]
mov ecx, dword [ecx + 4]
mov dword [esi + eax + 8], ecx
mov ecx, ebx
imul ecx, dword [esp + 0xa74]
mov esi, dword [esp + 0x24]
add ecx, edx
mov edi, dword [esp + 0x98]
lea ecx, [ecx + ecx*4]
lea ecx, [esi + ecx*8 + 8]
mov esi, dword [ecx]
mov dword [edi + eax + 0xc], esi
mov esi, dword [esp + 0x98]
mov ecx, dword [ecx + 4]
mov dword [esi + eax + 0x10], ecx
mov ecx, ebx
imul ecx, dword [esp + 0xa74]
mov esi, dword [esp + 0x24]
add ecx, edx
lea ecx, [ecx + ecx*4]
mov ecx, dword [esi + ecx*8 + 0x18]
mov esi, dword [esp + 0x98]
mov dword [esi + eax + 0x1c], ecx
mov ecx, dword [esp + 0x98]
mov dword [ecx + eax + 0x50], 1
mov ecx, dword [esp + 0x18]
cmp ecx, 2
jne 0x40954e
fld qword [esp + 0x5c]
fmul qword [esp + 0x104]
mov ecx, dword [esp + 0x98]
fsubr qword [ecx + eax + 4]
fstp qword [ecx + eax + 4]
fld qword [esp + 0x4c]
fmul qword [esp + 0x104]
mov ecx, dword [esp + 0x98]
fsubr qword [ecx + eax + 0xc]
fstp qword [ecx + eax + 0xc]
mov edi, dword [esp + 0xa74]
inc edx
add eax, 0x80
cmp edx, edi
jl 0x409450
lea ecx, [esp + 0x6c]
call fcn.00402330
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + ebx*8 + 0x5f4]
mov eax, dword [esp + ebx*8 + 0x5f0]
push edx
lea esi, [edi + 0x2e0]
push eax
mov ecx, esi
call fcn.004df0a0
mov ecx, dword [edi + 0xbb4]
mov edx, dword [edi + 0xbb0]
push 0
push ecx
push edx
mov ecx, edi
call fcn.00457020
push eax
mov ecx, esi
call fcn.004df160
fstp st(0)
mov ecx, dword [esp + 0x1c]
call fcn.0043db60
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.004382f0
mov ecx, esi
call fcn.0043f300
push 0
push 1
push 0
mov ecx, esi
call sub.mfc42u.dll_CDocument::UpdateAllViews
lea ecx, [esp + 0x134]
mov byte [esp + 0xb08], 9
call fcn.004b4f00
lea ecx, [esp + 0x6c]
mov byte [esp + 0xb08], 2
call fcn.004080c0
lea ecx, [esp + 0x20]
mov byte [esp + 0xb08], 1
call fcn.0040c580
lea ecx, [esp + 0x34]
mov byte [esp + 0xb08], 0
call fcn.0040c520
jmp 0x4097a1
push 0
push 1
push 0
mov ecx, edi
call sub.mfc42u.dll_CDocument::UpdateAllViews
lea ecx, [esp + 0x134]
mov byte [esp + 0xb08], 9
call fcn.004b4f00
lea ecx, [esp + 0x6c]
mov byte [esp + 0xb08], 2
call fcn.004080c0
lea ecx, [esp + 0x20]
mov byte [esp + 0xb08], 1
call fcn.0040c580
lea ecx, [esp + 0x34]
mov byte [esp + 0xb08], 0
call fcn.0040c520
jmp 0x4097a1
mov eax, dword [esi + 0x1cc]
mov ecx, esi
push eax
call fcn.0043db90
lea ecx, [esp + 0x134]
call sub.mfc42u.dll_CFile::Close
push 1
push 0
push 0
push 0
push 0
push 0x617b88
call sub.etinfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
push eax
call fcn.0046c660
add esp, 0x18
lea ecx, [esp + 0x134]
mov byte [esp + 0xb08], 9
call fcn.004b4f00
lea ecx, [esp + 0xe4]
mov byte [esp + 0xb08], 0x18
call fcn.0040bb00
lea ecx, [esp + 0xd0]
mov byte [esp + 0xb08], 0x17
call fcn.0040b880
lea ecx, [esp + 0xbc]
mov byte [esp + 0xb08], 0x16
call fcn.0040b4b0
lea ecx, [esp + 0xa8]
mov byte [esp + 0xb08], 0x15
call fcn.0040ac00
lea ecx, [esp + 0x94]
mov byte [esp + 0xb08], 0x14
call fcn.0040b120
lea ecx, [esp + 0x80]
mov byte [esp + 0xb08], 0x13
call fcn.0040af40
lea ecx, [esp + 0x6c]
mov byte [esp + 0xb08], 2
call fcn.0040aec0
mov dword [esp + 0x20], 0x5e29c0
mov eax, dword [esp + 0x24]
mov byte [esp + 0xb08], 0x19
test eax, eax
je 0x409773
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov esi, 0x5e262c
mov dword [esp + 0x34], 0x5e29d4
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x38]
mov byte [esp + 0xb08], 0x1a
test eax, eax
je 0x40979d
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x34], esi
mov dword [esp + 0xb08], 0xffffffff
call sub.mfc42u.dll_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.mfc42u.dll_CCmdTarget::EndWaitCursor
mov ecx, dword [esp + 0xb00]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4