Function at 0x4026b0
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x190
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esi + 0x1c]
lea edi, [esi + 0x14]
test eax, eax
je 0x40271b
push 0x408470
lea eax, [esp + 0x18]
push edi
push eax
mov ecx, 0x408448
call fcn.00402f30
lea ecx, [esp + 0x20]
push eax
push ecx
call sub.MFC42.DLL_operator_1
lea edx, [esp + 0x34]
push eax
push edx
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
jmp 0x402751
mov eax, dword [esi + 0x18]
push 0x408474
push edi
lea ecx, [esp + 0x20]
push eax
push ecx
call sub.MFC42.DLL_operator_1
lea edx, [esp + 0x18]
push eax
push edx
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, dword [esi]
push 0
push 0x20
push ecx
mov ecx, esi
call dword [eax + 0x28]
test eax, eax
jne 0x402782
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x190
ret
mov edx, dword [esi]
lea eax, [esp + 0x34]
push 0x30
push eax
mov ecx, esi
call dword [edx + 0x3c]
cmp eax, 0x30
je 0x40279e
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x54]
jmp 0x4027ae
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x54]
cmp word [esp + 0x34], 0x4944
je 0x4027c6
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
mov eax, 2
pop ebx
add esp, 0x190
ret
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
push 0x104
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [edi]
lea edx, [esp + 0x2c]
mov ebx, dword [sym.imp.KERNEL32.dll_SearchPathA]
push edx
push eax
mov eax, dword [0x408468]
push 0x104
push eax
push ecx
push 0
call ebx
mov esi, eax
test esi, esi
jne 0x402822
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
mov eax, 3
pop ebx
add esp, 0x190
ret
cmp esi, 0x104
jbe 0x402854
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
push esi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [0x408468]
lea ecx, [esp + 0x2c]
push ecx
push eax
mov eax, dword [edi]
push esi
push edx
push eax
push 0
call ebx
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0x1c]
call fcn.00405a3a
mov ecx, dword [esp + 0x10]
push 0
push 0x20
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x40295f
lea edx, [esp + 0x64]
push 0x40
push edx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::Read
cmp eax, 0x40
jne 0x40295f
cmp word [esp + 0x64], 0x5a4d
push 0
jne 0x4028b9
mov eax, dword [esp + 0xa4]
lea ecx, [esp + 0x20]
push eax
call sub.MFC42.DLL_CFile::Seek
jmp 0x4028c6
mov edx, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x24]
call dword [edx + 0x30]
lea eax, [esp + 0xa4]
push 0xf8
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::Read
cmp eax, 0xf8
jne 0x40295f
cmp dword [esp + 0xa4], 0x4550
jne 0x40295f
mov ecx, dword [esp + 0xfc]
mov eax, dword [esp + 0x40]
cmp ecx, eax
je 0x402938
mov edx, dword [esp + 0xac]
mov eax, dword [esp + 0x3c]
cmp edx, eax
je 0x402938
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
mov eax, 5
pop ebx
add esp, 0x190
ret
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x190
ret
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
mov eax, 4
pop ebx
add esp, 0x190
ret