Function at 0x464e50
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x593018
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x18]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax]
xor ebx, ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], ebx
call fcn.00491320
cmp edi, ebx
mov byte [esp + 0x30], 1
je 0x464e9a
lea ebp, [edi + 4]
mov dword [esp + 0x1c], ebp
jmp 0x464ea0
mov dword [esp + 0x1c], ebx
mov ebp, ebx
mov ecx, dword [ebp]
mov esi, 0x639dc4
cmp ecx, ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], esi
je 0x464ebf
call fcn.004014e2
mov dword [esp + 0x24], eax
mov esi, eax
push esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x639dc4
push edx
mov byte [esp + 0x38], 3
call edi
add esp, 8
test eax, eax
jne 0x464f4c
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString
mov al, byte [esi]
mov byte [esp + 0x30], 1
test al, al
je 0x4650cd
mov ebp, dword [ebp]
cmp ebp, ebx
je 0x4650cd
mov eax, dword [ebp + 4]
lea esi, [ebp + 4]
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call dword [eax + 0x18]
mov eax, dword [eax]
push 0x639dc4
push eax
call edi
add esp, 8
lea ecx, [esp + 0x38]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4650cd
jmp 0x4650bb
mov eax, dword [esp + 0x10]
push 0x6279b4
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x464fc5
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString
mov al, byte [esi]
mov byte [esp + 0x30], 1
test al, al
je 0x4650cd
mov ebp, dword [ebp]
test ebp, ebp
je 0x4650cd
mov edx, dword [ebp + 4]
lea esi, [ebp + 4]
lea eax, [esp + 0x38]
mov ecx, esi
push eax
call dword [edx + 0x18]
mov eax, dword [eax]
push 0x639dc4
push eax
call edi
add esp, 8
lea ecx, [esp + 0x38]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4650cd
jmp 0x4650bb
mov esi, dword [esp + 0x38]
push 0x629fd4
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x5c]
mov eax, dword [esp + 0x18]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x5c]
mov edx, dword [esi]
push 0x629fd0
mov ecx, esi
call dword [edx + 0x5c]
push 0x40000
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 4
mov dword [esp + 0x38], ebp
mov al, byte [ebx + 0xc]
mov byte [esp + 0x30], 4
test al, 0x10
jne 0x46504a
push ebx
push 0x3ffff
push 1
push ebp
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
lea ecx, [esp + 0x14]
push eax
push ebp
call fcn.00491340
mov edi, eax
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x5c]
push edi
call dword [sym.imp.MSVCRT.dll_free]
mov al, byte [ebx + 0xc]
add esp, 4
test al, 0x10
je 0x46500c
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
mov edx, dword [esi]
push 0x629fcc
mov ecx, esi
call dword [edx + 0x5c]
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x24]
mov byte [esp + 0x30], 1
cmp byte [eax], 0
je 0x4650cd
mov ecx, dword [esp + 0x1c]
mov ebp, dword [ecx]
test ebp, ebp
je 0x4650cd
mov edx, dword [ebp + 4]
lea esi, [ebp + 4]
lea eax, [esp + 0x38]
mov ecx, esi
push eax
call dword [edx + 0x18]
mov eax, dword [eax]
push 0x639dc4
push eax
call edi
add esp, 8
lea ecx, [esp + 0x38]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4650cd
mov ebp, dword [ebp]
mov edx, dword [esi]
push 0
push 0x8010
push ebp
mov ecx, esi
call dword [edx + 0x28]
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 0
call fcn.00491330
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4