Function at 0x49a350
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x500d60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a4
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x70], 0x508238
xor esi, esi
lea ecx, [esp + 0x78]
mov dword [esp + 0x1b8], esi
call fcn.004d5be0
lea ecx, [esp + 0x90]
call fcn.004d5be0
lea ecx, [esp + 0xf0]
call sub.MFC42.DLL_CString::CString_3
push 0x40
mov byte [esp + 0x1bc], 1
mov dword [esp + 0x74], 0x50f640
mov dword [esp + 0xdc], 0x47ae147b
mov dword [esp + 0xe0], 0x3f847ae1
mov dword [esp + 0xb0], esi
mov dword [esp + 0xb4], 0x168
mov dword [esp + 0xb8], 0x64
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
mov dword [esp + 0x58], ebx
cmp ebx, esi
mov byte [esp + 0x1b8], 2
je 0x49a41d
lea ecx, [ebx + 0x10]
call fcn.00486cc0
mov dword [ebx], 0x5085fc
mov dword [ebx + 0xc], esi
mov dword [ebx + 8], esi
jmp 0x49a41f
xor ebx, ebx
push 0x40
mov byte [esp + 0x1bc], 1
mov dword [esp + 0xbc], ebx
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
mov dword [esp + 0x58], ebx
cmp ebx, esi
mov byte [esp + 0x1b8], 3
je 0x49a494
push esi
push esi
push 0x46293e59
push 0x39a08cea
push 0x46293e59
lea ecx, [ebx + 0x10]
push 0x39a08cea
call fcn.004d5c00
push esi
push esi
push 0xc6293e59
push 0x39a08cea
push 0xc6293e59
push 0x39a08cea
lea ecx, [ebx + 0x28]
call fcn.004d5c00
mov dword [ebx], 0x5085fc
mov dword [ebx + 0xc], esi
mov dword [ebx + 8], esi
jmp 0x49a496
xor ebx, ebx
push esi
push esi
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x90]
mov byte [esp + 0x1d0], 1
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xc0], esi
call fcn.004d6080
push esi
push esi
push esi
push esi
push esi
push esi
lea ecx, [esp + 0xa8]
call fcn.004d6080
mov ebx, dword [ebp + 8]
lea ecx, [esp + 0x70]
push ebx
push esi
mov dword [esp + 0x1c0], 4
call fcn.004d8c00
test eax, eax
jne 0x49a55a
push esi
push esi
push str.Cant_Open_
call sub.MFC42.DLL_AfxMessageBox
mov dword [esp + 0x70], 0x50f640
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0x1b8], 6
cmp ecx, esi
je 0x49a524
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esp + 0xb8], esi
mov ecx, dword [esp + 0xbc]
cmp ecx, esi
je 0x49a53c
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [esp + 0xbc], esi
mov ecx, dword [esp + 0xa8]
cmp ecx, esi
je 0x49a54d
mov eax, dword [ecx]
push 1
call dword [eax]
mov byte [esp + 0x1b8], 5
jmp 0x49adec
lea ecx, [esp + 0x70]
call fcn.004d9f40
push ebx
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString_1
push str..dmf
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1bc], 7
call fcn.004f668e
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CFile::CFile
mov ecx, dword [esp + 0x38]
push esi
push 0x9002
push ecx
lea ecx, [esp + 0x48]
mov byte [esp + 0x1c4], 8
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x49a6a8
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x20]
push edx
push 0xe744
push eax
mov byte [esp + 0x1c4], 9
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push esi
push esi
push ecx
call sub.MFC42.DLL_AfxMessageBox
mov ecx, dword [esp + 0xb8]
cmp ecx, esi
je 0x49a5fc
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [esp + 0xb8], esi
mov ecx, dword [esp + 0xbc]
cmp ecx, esi
je 0x49a614
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esp + 0xbc], esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x1b8], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1b8], 7
call fcn.004f6a8a
lea ecx, [esp + 0x38]
mov byte [esp + 0x1b8], 4
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x70], 0x50f640
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0x1b8], 0xb
cmp ecx, esi
je 0x49a672
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [esp + 0xb8], esi
mov ecx, dword [esp + 0xbc]
cmp ecx, esi
je 0x49a68a
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esp + 0xbc], esi
mov ecx, dword [esp + 0xa8]
cmp ecx, esi
je 0x49a69b
mov edx, dword [ecx]
push 1
call dword [edx]
mov byte [esp + 0x1b8], 0xa
jmp 0x49adec
mov eax, dword [ebp + 0xc]
lea ebx, [edi + 0x260]
push 4
mov ecx, dword [eax + 0x7c]
mov dword [edi + 0x254], ecx
mov edx, dword [eax + 0x78]
mov dword [edi + 0x250], edx
mov ecx, dword [eax + 0x48]
fld qword [ecx + 0x10]
lea ecx, [esp + 0x40]
fst dword [edi + 0x270]
mov edx, dword [eax + 0x48]
lea eax, [esp + 0x30]
push eax
fsubr qword [edx + 0x28]
fidiv dword [ebx]
fstp dword [edi + 0x26c]
fld dword [edi + 0x254]
fmul dword [0x50bad8]
fstp dword [esp + 0x34]
call sub.MFC42.DLL_CFile::Write
fld dword [edi + 0x250]
fmul dword [0x50bad8]
lea ecx, [esp + 0x2c]
push 4
push ecx
lea ecx, [esp + 0x44]
fstp dword [esp + 0x34]
call sub.MFC42.DLL_CFile::Write
fld dword [edi + 0x270]
fmul dword [0x50bad8]
lea edx, [esp + 0x2c]
push 4
push edx
lea ecx, [esp + 0x44]
fstp dword [esp + 0x34]
call sub.MFC42.DLL_CFile::Write
push 4
push ebx
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CFile::Write
fld dword [edi + 0x26c]
fmul dword [0x50bad8]
lea eax, [esp + 0x2c]
push 4
push eax
lea ecx, [esp + 0x44]
fstp dword [esp + 0x34]
call sub.MFC42.DLL_CFile::Write
mov eax, dword [esp + 0xb8]
push esi
push esi
push esi
fld qword [eax + 0x10]
push esi
lea ecx, [esp + 0x108]
sub esp, 8
mov dword [esp + 0x24], eax
fchs
fstp qword [esp]
call fcn.004d5c00
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xf8]
push ecx
push edx
call fcn.00443e70
fld dword [edi + 0x270]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x100]
fstp qword [esp + 0x100]
push eax
push ecx
call fcn.00443e70
add esp, 0x10
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x6c], esi
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CFile::GetPosition
mov edx, dword [ebx]
mov dword [esp + 0x58], eax
shl edx, 3
push edx
mov dword [edi + 0x258], esi
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [edi + 0x264], eax
lea eax, [edi + 0x258]
lea ecx, [esp + 0x3c]
push 4
push eax
call sub.MFC42.DLL_CFile::Write
mov eax, dword [ebx]
mov ecx, dword [edi + 0x264]
shl eax, 3
push eax
push ecx
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CFile::Write
mov edx, dword [edi + 0x270]
lea eax, [esp + 0x110]
mov dword [esp + 0x30], edx
mov ecx, 0xa
mov dword [eax], esi
mov dword [eax + 4], esi
add eax, 8
dec ecx
jne 0x49a838
lea eax, [esp + 0x160]
mov ecx, 0xa
mov dword [eax], esi
mov dword [eax + 4], esi
add eax, 8
dec ecx
jne 0x49a84f
mov eax, dword [edi + 0x260]
mov dword [esp + 0x20], esi
cmp eax, esi
jle 0x49aa7f
fld dword [esp + 0x30]
fadd dword [edi + 0x26c]
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, dword [ebp + 0xc]
fst dword [esp + 0x38]
fstp qword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
push esi
push ebx
call fcn.004da2a0
mov dword [esp + 0xc], eax
lea edx, [esp + 0x6c]
lea eax, [esp + 0x24]
push edx
push eax
push esi
push ebx
lea ecx, [esp + 0x80]
call fcn.004da2a0
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x110]
mov esi, eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
call fcn.0049a1a0
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x16c]
push ecx
mov ebx, eax
push esi
push edx
mov dword [esp + 0x28], ebx
call fcn.0049a1a0
mov esi, eax
mov eax, dword [esp + 0x40]
add esp, 0x18
test eax, eax
je 0x49a906
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x49a91f
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x24], 0
lea eax, [esp + 0x5c]
mov ecx, 2
xor edx, edx
mov dword [eax], edx
mov dword [eax + 4], edx
add eax, 8
dec ecx
jne 0x49a92a
cmp esi, edx
jle 0x49a9e3
lea eax, [esp + ebx*8 + 0x110]
lea ecx, [esp + 0x160]
mov dword [esp + 0x34], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], esi
xor esi, esi
test ebx, ebx
jle 0x49a9c5
lea ebx, [esp + 0x110]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x5c]
push edx
push eax
push ebx
call fcn.0049a230
add esp, 0xc
test eax, eax
jne 0x49a989
mov eax, dword [esp + 0x10]
inc esi
add ebx, 8
cmp esi, eax
jl 0x49a964
jmp 0x49a9c5
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov dword [esp + esi*8 + 0x110], ecx
cmp eax, 2
mov dword [esp + esi*8 + 0x114], edx
jne 0x49a9c5
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov edx, dword [esp + 0x10]
inc edx
add eax, 8
mov dword [esp + 0x10], edx
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
add ecx, 8
dec eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
jne 0x49a957
test ebx, ebx
jle 0x49aa4f
lea esi, [esp + 0x110]
mov dword [esp + 0x14], ebx
fld dword [esi]
fmul dword [0x50bad8]
mov eax, dword [esp + 0x3c]
push 8
push esi
lea ecx, [esp + 0x44]
fstp dword [esi]
fld dword [esi + 4]
fmul dword [0x50bad8]
fstp dword [esi + 4]
call dword [eax + 0x40]
fld dword [esi + 4]
fsub dword [esi]
fld qword [0x538f18]
fchs
fcomp st(1)
fnstsw ax
test ah, 1
je 0x49aa3b
fcomp qword [0x538f18]
fnstsw ax
test ah, 1
jne 0x49aa41
jmp 0x49aa3d
fstp st(0)
inc dword [esp + 0x54]
mov eax, dword [esp + 0x14]
add esi, 8
dec eax
mov dword [esp + 0x14], eax
jne 0x49a9f2
mov esi, dword [edi + 0x258]
mov edx, dword [edi + 0x264]
mov eax, dword [esp + 0x20]
add esi, ebx
mov ecx, esi
mov dword [edi + 0x258], esi
mov dword [edx + eax*4], ecx
mov ecx, dword [edi + 0x260]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x49a86c
mov eax, dword [edi + 0x270]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x49aa9a
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x24]
test eax, eax
je 0x49aaab
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x49aabc
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x49aacd
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [edi + 0x260]
mov dword [esp + 0x20], 0
test eax, eax
jle 0x49acfc
fld dword [esp + 0x30]
fadd dword [edi + 0x26c]
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
fst dword [esp + 0x38]
fstp qword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
push esi
push ebx
call fcn.004da2a0
mov dword [esp + 0xc], eax
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x24]
push eax
push ecx
push esi
push ebx
lea ecx, [esp + 0x80]
call fcn.004da2a0
mov ecx, dword [esp + 0x28]
mov esi, eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x110]
push edx
push eax
push ecx
call fcn.0049a1a0
lea edx, [esp + 0x16c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
push edx
push esi
push eax
call fcn.0049a1a0
mov ebx, eax
mov eax, dword [esp + 0x40]
xor esi, esi
add esp, 0x18
cmp eax, esi
mov dword [esp + 0x10], ebx
je 0x49ab7d
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x24]
cmp eax, esi
je 0x49ab92
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x24], esi
lea eax, [esp + 0x5c]
mov ecx, 2
mov dword [eax], esi
mov dword [eax + 4], esi
add eax, 8
dec ecx
jne 0x49ab9b
mov eax, dword [esp + 0x14]
cmp eax, esi
jle 0x49ac58
lea ecx, [esp + ebx*8 + 0x160]
lea edx, [esp + 0x110]
mov dword [esp + 0x34], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], eax
xor esi, esi
test ebx, ebx
jle 0x49ac3a
lea ebx, [esp + 0x160]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x5c]
push ecx
push edx
push ebx
call fcn.0049a230
add esp, 0xc
test eax, eax
jne 0x49abfe
mov eax, dword [esp + 0x10]
inc esi
add ebx, 8
cmp esi, eax
jl 0x49abd9
jmp 0x49ac3a
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov dword [esp + esi*8 + 0x160], ecx
cmp eax, 2
mov dword [esp + esi*8 + 0x164], edx
jne 0x49ac3a
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov edx, dword [esp + 0x10]
inc edx
add eax, 8
mov dword [esp + 0x10], edx
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
add ecx, 8
dec eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
jne 0x49abcc
test ebx, ebx
jle 0x49acc4
lea esi, [esp + 0x160]
mov dword [esp + 0x14], ebx
fld dword [esi]
fmul dword [0x50bad8]
mov eax, dword [esp + 0x3c]
push 8
push esi
lea ecx, [esp + 0x44]
fstp dword [esi]
fld dword [esi + 4]
fmul dword [0x50bad8]
fstp dword [esi + 4]
call dword [eax + 0x40]
fld dword [esi + 4]
fsub dword [esi]
fld qword [0x538f18]
fchs
fcomp st(1)
fnstsw ax
test ah, 1
je 0x49acb0
fcomp qword [0x538f18]
fnstsw ax
test ah, 1
jne 0x49acb6
jmp 0x49acb2
fstp st(0)
inc dword [esp + 0x50]
mov eax, dword [esp + 0x14]
add esi, 8
dec eax
mov dword [esp + 0x14], eax
jne 0x49ac67
mov eax, dword [edi + 0x258]
mov edx, dword [edi + 0x260]
mov esi, dword [edi + 0x264]
add eax, ebx
mov dword [edi + 0x258], eax
mov ecx, eax
mov eax, dword [esp + 0x20]
add edx, eax
inc eax
mov dword [esp + 0x20], eax
mov dword [esi + edx*4], ecx
mov ecx, dword [edi + 0x260]
cmp eax, ecx
jl 0x49aae3
mov eax, dword [esp + 0x58]
xor esi, esi
push esi
push eax
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CFile::Seek
lea ecx, [edi + 0x258]
push 4
push ecx
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CFile::Write
mov edx, dword [edi + 0x260]
mov eax, dword [edi + 0x264]
shl edx, 3
push edx
push eax
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CFile::Write
push 2
push esi
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CFile::Seek
lea ecx, [esp + 0x54]
push 4
push ecx
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CFile::Write
lea edx, [esp + 0x50]
push 4
push edx
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1b8], 7
call fcn.004f6a8a
lea ecx, [esp + 0x38]
mov byte [esp + 0x1b8], 4
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x70], 0x50f640
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0x1b8], 0xd
cmp ecx, esi
je 0x49adbb
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esp + 0xb8], esi
mov ecx, dword [esp + 0xbc]
cmp ecx, esi
je 0x49add3
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [esp + 0xbc], esi
mov ecx, dword [esp + 0xa8]
cmp ecx, esi
je 0x49ade4
mov eax, dword [ecx]
push 1
call dword [eax]
mov byte [esp + 0x1b8], 0xc
lea ecx, [esp + 0xf0]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1b0]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8