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

Disassembly:
push 0xffffffffffffffff
push 0x40fc5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov eax, dword [esp + 0x58]
push esi
push edi
push 0x8000
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::CFile_1
mov ecx, dword [esp + 0x68]
xor esi, esi
push esi
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x60], esi
call sub.MFC42.DLL_CFile::Seek
cmp dword [esp + 0x6c], 0x26
jb 0x404977
lea edx, [esp + 0x10]
push 0xc
push edx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::Read
cmp dword [esp + 0x10], 0x5a4c4748
jne 0x404977
mov ax, word [esp + 0x14]
xor ecx, ecx
mov cl, ah
test cl, cl
jne 0x404977
cmp al, 0xa
ja 0x404977
lea edx, [esp + 8]
push 6
push edx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::Read
cmp word [esp + 8], 0xee
jne 0x404977
cmp word [esp + 0xa], 0x90
jne 0x404977
mov edi, dword [esp + 0x70]
test edi, edi
jbe 0x404824
lea eax, [esp + 0x3c]
push 0x14
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::Read
cmp word [esp + 0x3c], 0xff
jne 0x404977
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
and ecx, 0xffff
push 1
add ecx, eax
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::Seek
inc esi
cmp esi, edi
jb 0x4047e6
lea edx, [esp + 0x3c]
push 0x14
push edx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::Read
cmp word [esp + 0x3c], 0xff
jne 0x404977
mov eax, dword [esp + 0x4c]
push 1
and eax, 0xffff
lea ecx, [esp + 0x20]
push eax
call sub.MFC42.DLL_CFile::Seek
mov ecx, dword [esp + 0x64]
push 0x9001
push ecx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CFile::CFile_1
lea eax, [esp + 0x2c]
lea edx, [esp + 0x1c]
mov dword [0x41b6bc], eax
mov eax, dword [esp + 0x48]
test eax, eax
mov byte [esp + 0x58], 1
mov dword [0x41b6c0], edx
je 0x404930
push 0x20
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x60], esi
test esi, esi
mov byte [esp + 0x58], 2
je 0x4048c0
push 0
mov ecx, esi
call fcn.004049b0
push 0
lea ecx, [esi + 8]
mov byte [esp + 0x5c], 3
call fcn.004041f0
jmp 0x4048c2
xor esi, esi
mov ecx, dword [esp + 0x48]
mov eax, 0x51eb851f
mul ecx
shr edx, 5
push edx
mov edx, 0x3e8
cmp edx, ecx
mov edx, dword [esp + 0x78]
sbb eax, eax
mov byte [esp + 0x5c], 1
and eax, edx
push eax
push 0x400
push 0x4046f0
push 0x404710
push ecx
mov ecx, esi
call fcn.004043f0
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFile::Flush
test esi, esi
mov dword [esp + 0x60], esi
je 0x404930
lea ecx, [esi + 8]
mov byte [esp + 0x58], 4
call fcn.00404220
mov ecx, esi
mov byte [esp + 0x58], 1
call fcn.004049e0
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 0x2c]
mov byte [esp + 0x58], 0
call fcn.0040f024
lea ecx, [esp + 0x1c]
mov dword [esp + 0x58], 0xffffffff
call fcn.0040f024
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
add esp, 0x54
ret
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 0x1c]
mov dword [esp + 0x58], 0xffffffff
call fcn.0040f024
mov ecx, dword [esp + 0x50]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x54
ret