Function at 0x4f3890
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3bb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xdc
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], edi
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], ebx
push 0x76d6c0
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4f3b73
lea edx, [ebp - 0xe4]
push eax
push 4
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov eax, dword [ebp - 0xe4]
cmp eax, 0xe
je 0x4f393e
push esp
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 8
add esp, 0xfffffff0
lea ecx, [esp + 8]
mov eax, dword [ebp + 8]
mov dword [esp], 0x25
mov edx, dword [eax]
mov dword [esp + 4], 0x78fa40
mov dword [ecx], edx
call fcn.005041f0
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
lea edx, [ebp - 0xe0]
mov eax, dword [ebp - 0x1c]
push eax
push 0xe
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov byte [ebp - 0xd2], 0
lea esi, [ebp - 0xe0]
mov edi, 0x78fa60
mov ecx, 0xe
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4f397b
jae 0x4f397a
mov eax, 0xfffffffe
inc eax
test eax, eax
je 0x4f39cd
push esp
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 8
add esp, 0xfffffff0
lea ecx, [esp + 8]
mov eax, dword [ebp + 8]
mov dword [esp], 0x25
mov edx, dword [eax]
mov dword [esp + 4], 0x78fa40
mov dword [ecx], edx
call fcn.005041f0
add esp, 0x10
xor eax, eax
mov ebx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push esp
mov eax, dword [ebp - 0x1c]
push 0
push 0x1e
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0x10
lea edx, [ebp - 0xe4]
mov eax, dword [ebp - 0x1c]
push eax
push 4
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
xor eax, eax
mov edx, dword [ebp - 0xe4]
cmp edx, 1
mov dword [ebp - 0x18], eax
ja 0x4f3ad8
push esp
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 8
xor eax, eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
push 0x2e
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, 0xffffffff
je 0x4f3a79
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp + 8]
push 3
push eax
call sub.MFC42.DLL_CString::Right
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x2c]
push 0x78fa80
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x4f3a5c
mov bl, 1
jmp 0x4f3a5e
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4f3a79
mov eax, 1
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
je 0x4f3ab1
mov eax, dword [ebp + 8]
mov ebx, dword [eax]
mov edx, dword [ebp - 0x1c]
push esp
mov ecx, dword [ebp - 0x18]
push edx
push ecx
push ebx
call fcn.00423d10
add esp, 0x10
mov ebx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov eax, 1
mov ebx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0xd0]
mov eax, dword [ebp - 0x1c]
push 0
push eax
call fcn.004d7a00
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xd0]
lea ecx, [ebp - 0xd0]
call dword [eax + 0xc0]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xe8], eax
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x70]
call sub.MFC42.DLL_CListBox::CListBox
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd0]
call sub.MFC42.DLL_CDialog::CDialog
jmp 0x4f3a0b
add esp, 0xfffffff0
lea ecx, [esp + 8]
mov eax, dword [ebp + 8]
mov dword [esp], 6
mov edx, dword [eax]
mov dword [esp + 4], 0x7749c0
mov dword [ecx], edx
call fcn.005041f0
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4