Function at 0x446540
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4591a5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x20]
mov dword [esp + 0x154], 0
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x1c]
mov byte [esp + 0x154], 1
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x14]
mov byte [esp + 0x154], 2
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0xc]
mov byte [esp + 0x154], 3
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x24]
mov byte [esp + 0x154], 4
call sub.MFC42.DLL_CFile::CFile_1
mov eax, dword [edi + 0x20]
push 0
mov ebx, 5
push 0
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x160], bl
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x446608
mov eax, dword [edi + 0x20]
lea ecx, [esp + 0x18]
push eax
push str.Cant_Open__s_File_
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x24]
add esp, 0xc
push 0
push 0x30
push edx
call sub.MFC42.DLL_AfxMessageBox
jmp 0x446687
lea eax, [esp + 0x34]
lea ecx, [esp + 0x24]
push eax
call sub.MFC42.DLL_CFile::GetStatus
mov ecx, dword [esp + 0x40]
push 1
inc ecx
push ecx
call dword [sym.imp.MSVCRT.dll_calloc]
mov edx, dword [esp + 0x48]
add esp, 8
mov esi, eax
lea ecx, [esp + 0x24]
push edx
push esi
call sub.MFC42.DLL_CFile::Read
push esi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
push esi
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [esp + 0x160]
lea ecx, [esp + 0x20]
push eax
push str.__d_
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x2c]
add esp, 0x10
lea ecx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CString::Find_3
push eax
push str._TABLE_
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Find
mov esi, eax
cmp esi, 0xffffffff
jne 0x4466f7
lea ecx, [esp + 0x24]
mov byte [esp + 0x154], 4
call fcn.00447944
lea ecx, [esp + 0xc]
mov byte [esp + 0x154], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x154], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x154], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x154], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x154], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x446a09
push ebp
push esi
push str._END_
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Find
add eax, ebx
lea ecx, [esp + 0x18]
sub eax, esi
push eax
lea eax, [esp + 0x18]
push esi
push eax
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x15c], 6
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x14]
mov byte [esp + 0x158], bl
call sub.MFC42.DLL_CString::CString
push 7
push str._HEADER_
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find
mov esi, eax
lea edx, [esp + 0x14]
lea ecx, [esi - 7]
push ecx
push 7
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [edi + 0x68]
mov byte [esp + 0x15c], 7
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x14]
mov byte [esp + 0x158], bl
call sub.MFC42.DLL_CString::CString
add esi, 8
lea ecx, [esp + 0x10]
push esi
push str._DATA_
call sub.MFC42.DLL_CString::Find
mov ebp, eax
sub eax, esi
push eax
lea ecx, [esp + 0x18]
push esi
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [edi + 0x6c]
mov byte [esp + 0x15c], 8
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x14]
mov byte [esp + 0x158], bl
call sub.MFC42.DLL_CString::CString
lea esi, [ebp + 6]
lea ecx, [esp + 0x10]
push esi
push str._DATAHEADER2_
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
push esi
push str._DATAHEADER1_
lea ecx, [esp + 0x18]
je 0x4468ba
call sub.MFC42.DLL_CString::Find
mov ebp, eax
lea eax, [esp + 0x14]
mov edx, ebp
lea ecx, [esp + 0x10]
sub edx, esi
push edx
push esi
push eax
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [edi + 0x78]
mov byte [esp + 0x15c], 9
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x14]
mov byte [esp + 0x158], bl
call sub.MFC42.DLL_CString::CString
lea esi, [ebp + 0xd]
lea ecx, [esp + 0x10]
push esi
push str._DATAHEADER2_
call sub.MFC42.DLL_CString::Find
mov ebp, eax
lea edx, [esp + 0x14]
mov ecx, ebp
sub ecx, esi
push ecx
push esi
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [edi + 0x70]
mov byte [esp + 0x15c], 0xa
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x14]
mov byte [esp + 0x158], bl
call sub.MFC42.DLL_CString::CString
lea esi, [ebp + 0xd]
lea ecx, [esp + 0x10]
push esi
push str._END_
call sub.MFC42.DLL_CString::Find
sub eax, esi
lea ecx, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push esi
push eax
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [edi + 0x74]
mov byte [esp + 0x15c], 0xb
call sub.MFC42.DLL_CString::operator
mov byte [esp + 0x158], bl
lea ecx, [esp + 0x14]
jmp 0x44698c
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
push esi
je 0x446950
push str._DATAHEADER1_
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find
mov ebp, eax
lea edx, [esp + 0x14]
mov ecx, ebp
sub ecx, esi
push ecx
push esi
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [edi + 0x78]
mov byte [esp + 0x15c], 0xc
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x14]
mov byte [esp + 0x158], bl
call sub.MFC42.DLL_CString::CString
lea esi, [ebp + 0xd]
lea ecx, [esp + 0x10]
push esi
push str._END_
call sub.MFC42.DLL_CString::Find
sub eax, esi
lea ecx, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push esi
push eax
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [edi + 0x70]
mov byte [esp + 0x15c], 0xd
call sub.MFC42.DLL_CString::operator
mov byte [esp + 0x158], bl
lea ecx, [esp + 0x14]
jmp 0x44698c
push str._END_
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find
sub eax, esi
lea ecx, [esp + 0x14]
push eax
push esi
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [edi + 0x78]
mov byte [esp + 0x15c], 0xe
call sub.MFC42.DLL_CString::operator
mov byte [esp + 0x158], bl
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 0x28]
mov byte [esp + 0x158], 4
call fcn.00447944
lea ecx, [esp + 0x10]
mov byte [esp + 0x158], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x158], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x158], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x158], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x158], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14c
ret 4