Function at 0x408450
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x463bea
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
mov eax, dword [0x4a32a0]
push ebx
push ebp
push esi
mov ebx, ecx
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x148], eax
call dword [0x46e148]
push str.BossRan_
lea eax, [esp + 0x18]
push 0x4b3a44
xor ebp, ebp
push eax
mov dword [esp + 0x160], ebp
call fcn.00401590
push 0x4b3a54
push eax
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x16c], 1
call fcn.00402b10
add esp, 0x18
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x158], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x14]
mov byte [esp + 0x154], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0x46f7e8
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
mov edi, eax
add esp, 8
cmp edi, ebp
je 0x4086a6
lea ecx, [esp + 0x60]
call fcn.004071a0
mov esi, dword [sym.imp.MSVCR71.dll_fread]
push edi
push 1
lea edx, [esp + 0x68]
push 0xe8
push edx
call esi
add esp, 0x10
cmp eax, 1
push edi
je 0x408548
call dword [sym.imp.MSVCR71.dll_fclose]
push str._ERROR_LoadDownList_File_Game_Version_Read_Failed_
jmp 0x40869e
mov eax, dword [esp + 0x124]
push 1
lea ecx, [esp + 0x68]
push 0xe8
push ecx
mov dword [ebx + 0x78], eax
call esi
add esp, 0x10
cmp eax, 1
je 0x408579
push edi
call dword [sym.imp.MSVCR71.dll_fclose]
push str._ERROR_LoadDownList_File_Size_Read_Failed_
jmp 0x40869e
mov eax, dword [esp + 0x120]
test eax, eax
jle 0x408654
jmp 0x408590
push 0xe8
call sub.MFC71.DLL_operator_new_1
add esp, 4
test eax, eax
je 0x4085ac
mov ecx, eax
call fcn.004071a0
mov esi, eax
jmp 0x4085ae
xor esi, esi
push edi
push 1
push 0xe8
push esi
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x408692
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea edx, [esp + 0x60]
push edx
call fcn.00407340
add esp, 0x24
mov esi, eax
push esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x158], 3
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x3c], eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [ebx + 0xac]
mov byte [esp + 0x15c], 4
call fcn.00408230
lea ecx, [esp + 0x20]
mov byte [esp + 0x154], 3
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x40]
mov byte [esp + 0x154], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [esp + 0x120]
inc ebp
cmp ebp, eax
jl 0x408590
push edi
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, 1
mov ecx, dword [esp + 0x14c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x148]
call fcn.00450c39
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x148
ret
push edi
call dword [sym.imp.MSVCR71.dll_fclose]
push str._ERROR_LoadDownList_File_Read_Failed_
call fcn.00417130
add esp, 8
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
jmp 0x40866d