Function at 0x45b860
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ce1e1
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x51501c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 0
mov dword [ebp + 8], ecx
lea ebx, [ebp + 0xc]
mov ecx, ebx
mov dword [ebp], 0x4f9090
mov dword [ebp + 4], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov byte [esp + 0x1c], 1
lea edi, [ebp + 0x28]
lea esi, [ebp + 0x30]
lea ecx, [ebp + 0x3c]
mov dword [edi], 0xffffffff
mov dword [ebp + 0x2c], 0
mov dword [esi], 0xffffffff
mov dword [ebp + 0x34], 0
mov dword [ebp + 0x38], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
cmp dword [esp + 0x38], 1
mov byte [esp + 0x1c], 2
mov byte [ebp + 0x58], 0
mov dword [0x53b820], 4
mov dword [0x53b824], 0x4f8e50
mov edx, 0x4f0f9c
je 0x45b913
mov edx, 0x4f8b24
mov eax, dword [esp + 0x34]
cmp dword [eax + 0x18], 0x10
jb 0x45b922
mov ecx, dword [eax + 4]
jmp 0x45b925
lea ecx, [eax + 4]
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0x18], 0x10
jb 0x45b934
mov eax, dword [eax + 4]
jmp 0x45b937
add eax, 4
push edx
mov edx, dword [esp + 0x34]
push ecx
push edx
push eax
push 0x4f8b2c
call fcn.0045eb40
mov eax, dword [esp + 0x50]
add esp, 0x14
push 0x4f8b48
mov dword [eax], 0
mov dword [0x53b820], 4
mov dword [0x53b824], 0x4f8e50
call fcn.0045eb40
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + 0x1c]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
add esp, 4
push esi
push ebx
push eax
mov eax, dword [esp + 0x3c]
push edx
push eax
push ecx
lea edx, [ebp + 0x2c]
mov ecx, edi
call int.004c3fe0
mov esi, dword [esp + 0x54]
add esp, 0x18
test eax, eax
mov dword [esi], eax
jge 0x45b9c9
push 0x4f8ba0
mov dword [0x53b820], 1
mov dword [0x53b824], 0x4f8e50
call fcn.0045eb40
add esp, 4
jmp 0x45b9cd
mov byte [ebp + 0x58], 0
cmp dword [esi], 0
jl 0x45baed
cmp dword [ebx + 0x18], 0x10
jb 0x45b9e1
mov esi, dword [ebx + 4]
jmp 0x45b9e4
lea esi, [ebx + 4]
mov edi, 0x4d868c
lea ecx, [ebp + 0x34]
call fcn.004ab790
test eax, eax
je 0x45ba02
push 0x4f8e50
call fcn.0045ecd0
add esp, 4
test eax, eax
mov edi, dword [esp + 0x3c]
mov dword [edi], eax
jge 0x45ba52
cmp dword [ebx + 0x18], 0x10
mov dword [0x53b820], 1
mov dword [0x53b824], 0x4f8e50
jb 0x45ba3c
mov ebx, dword [ebx + 4]
push ebx
push 0x4f8e94
call fcn.0045eb40
add esp, 8
jmp 0x45baed
add ebx, 4
push ebx
push 0x4f8e94
call fcn.0045eb40
add esp, 8
jmp 0x45baed
mov edx, dword [ebp + 0x28]
mov eax, dword [ebp + 0x34]
push 0
push edx
push eax
call dword [sym.imp.MSVCR80.dll_fseek]
add esp, 0xc
test eax, eax
je 0x45ba76
push 0x4f8e50
call fcn.0045ecd0
add esp, 4
test eax, eax
mov dword [edi], eax
jge 0x45ba83
push 0x4f8eb4
jmp 0x45bad1
cmp dword [ebp + 8], 0
jne 0x45baed
mov ecx, dword [ebp + 0x2c]
push 0
push ecx
lea esi, [ebp + 0x3c]
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_int__char_]
cmp dword [esi + 0x18], 0x10
jb 0x45baa5
mov esi, dword [esi + 4]
jmp 0x45baa8
add esi, 4
mov edx, dword [ebp + 0x34]
mov eax, dword [ebp + 0x2c]
push edx
push eax
push 1
push esi
call dword [sym.imp.MSVCR80.dll_fread]
sub eax, dword [ebp + 0x2c]
add esp, 0x10
neg eax
sbb eax, eax
and eax, 0x80004005
mov dword [edi], eax
jge 0x45baed
push 0x4f8ee0
mov dword [0x53b820], 1
mov dword [0x53b824], 0x4f8e50
call fcn.0045eb40
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x1c