Function at 0x45f520
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x58d6f8
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.0048b9f0
cmp edi, ebx
mov byte [esp + 0x30], 1
je 0x45f56a
lea ebp, [edi + 4]
mov dword [esp + 0x1c], ebp
jmp 0x45f570
mov dword [esp + 0x1c], ebx
mov ebp, ebx
mov ecx, dword [ebp]
mov esi, 0x633dc4
cmp ecx, ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], esi
je 0x45f58f
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 0x633dc4
push edx
mov byte [esp + 0x38], 3
call edi
add esp, 8
test eax, eax
jne 0x45f61c
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 0x45f79d
mov ebp, dword [ebp]
cmp ebp, ebx
je 0x45f79d
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 0x633dc4
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 0x45f79d
jmp 0x45f78b
mov eax, dword [esp + 0x10]
push 0x6219b4
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x45f695
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 0x45f79d
mov ebp, dword [ebp]
test ebp, ebp
je 0x45f79d
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 0x633dc4
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 0x45f79d
jmp 0x45f78b
mov esi, dword [esp + 0x38]
push 0x623fd4
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 0x623fd0
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 0x45f71a
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.0048ba10
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 0x45f6dc
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
mov edx, dword [esi]
push 0x623fcc
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 0x45f79d
mov ecx, dword [esp + 0x1c]
mov ebp, dword [ecx]
test ebp, ebp
je 0x45f79d
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 0x633dc4
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 0x45f79d
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.0048ba00
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