Function at 0x466620
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4bb131
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebp
push esi
push edi
mov eax, dword [0xc18374]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x80]
test ebp, ebp
jne 0x466699
lea eax, [esp + 0x14]
push str.pp_buf_is_null.
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], str.FileUtils::LoadFile
mov dword [esp + 0x24], str....._flashtoolUtilityFileUtils.cpp
mov dword [esp + 0x28], 0x215
call fcn.0040b750
add esp, 8
lea eax, [ebp + 1]
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x68
ret
mov ecx, dword [esp + 0x88]
mov esi, dword [esp + 0x84]
mov edi, dword [esp + 0x7c]
push ecx
push esi
push edi
call fcn.00466160
add esp, 0xc
test eax, eax
jne 0x466834
push 0x4e01e0
lea ecx, [esp + 0x54]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push edi
lea ecx, [esp + 0x38]
mov dword [esp + 0x78], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x8c]
call fcn.004653e0
lea ecx, [esp + 0x34]
mov byte [esp + 0x74], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x50]
mov byte [esp + 0x74], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov edi, dword [esi]
push edi
call dword [sym.imp.MSVCR90.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x466793
lea edx, [esp + 0x14]
push str.buf_malloc_fails.
push edx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], str.FileUtils::LoadFile
mov dword [esp + 0x24], str....._flashtoolUtilityFileUtils.cpp
mov dword [esp + 0x28], 0x222
call fcn.0040b750
mov esi, dword [esp + 0x88]
add esp, 8
cmp dword [esi], 0
je 0x46677b
mov eax, dword [esi]
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov dword [esi], 0
mov eax, 5
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x68
ret
mov ecx, dword [esp + 0x10]
push ecx
push edi
push 1
push esi
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
cmp eax, edi
je 0x466811
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.MSVCR90.dll_feof]
add esp, 4
test eax, eax
jne 0x466811
lea eax, [esp + 0x24]
push str.fread_error.
push eax
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], str.FileUtils::LoadFile
mov dword [esp + 0x34], str....._flashtoolUtilityFileUtils.cpp
mov dword [esp + 0x38], 0x229
call fcn.0040b750
add esp, 8
lea ecx, [esp + 0x80]
call fcn.00465440
mov eax, 1
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x68
ret
mov dword [ebp], esi
mov esi, dword [esp + 0x80]
cmp dword [esi], 0
je 0x466832
mov ecx, dword [esi]
push ecx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov dword [esi], 0
xor eax, eax
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x68
ret