Function at 0x40a9a0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4162ef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x164]
mov eax, dword [edi]
mov esi, ecx
xor ebp, ebp
lea ecx, [esp + 0x64]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0x9c]
mov dword [esp + 0x158], ebp
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
push 0x41b6d8
lea ecx, [esp + 0xbc]
mov byte [esp + 0x15c], 1
call fcn.00407fc0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x158], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0x80]
mov byte [esp + 0x158], 3
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 ecx, dword [esp + 0x168]
mov edx, dword [edi]
push ecx
push ebp
push edx
lea ecx, [esp + 0xc4]
mov byte [esp + 0x164], 4
call fcn.0040a300
cmp eax, ebp
mov dword [esp + 0x20], eax
je 0x40ae8f
push str.File
lea ecx, [esp + 0xbc]
call fcn.00407470
push 0x418f3c
lea ecx, [esp + 0xbc]
mov edi, eax
call fcn.00407470
mov ebx, eax
mov eax, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov eax, dword [eax]
push 1
push eax
lea ecx, [esp + 0x18]
add esi, 0x20
push ecx
mov ecx, esi
mov byte [esp + 0x1c], 0x5c
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::rfind_char_const___unsigned_int__unsigned_int_const]
add eax, 1
push eax
push ebp
lea edx, [esp + 0x50]
push edx
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [esp + 0xa0]
mov byte [esp + 0x15c], 5
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x48]
mov byte [esp + 0x158], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push edi
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.MSVCP80.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0xc
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x15c], 6
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x48]
mov byte [esp + 0x158], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp dword [esp + 0x7c], 0x10
mov eax, dword [esp + 0x68]
jae 0x40ab2c
lea eax, [esp + 0x68]
push 0x41b858
push eax
call fcn.00406670
add esp, 8
cmp eax, ebp
mov dword [esp + 0x18], eax
je 0x40ae8f
mov edi, dword [sym.imp.MSVCR80.dll_fseek]
push 2
push ebp
mov ebp, eax
push ebp
call edi
push ebp
call dword [sym.imp.MSVCR80.dll_ftell]
push 0
push 0
push ebp
mov esi, eax
call edi
add esp, 0x1c
test esi, esi
jle 0x40ae8f
lea edx, [esi + 1]
push edx
call sub.MFC80U.DLL_Ordinal_265
mov edi, dword [esp + 0x1c]
push edi
push 1
mov ebp, eax
push esi
push ebp
mov dword [esp + 0x38], ebp
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x14
cmp eax, 1
jne 0x40ae71
push edi
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
push str._Fragment_FID_
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], 0
mov byte [esi + ebp], 0
call dword [0x41842c]
push ebx
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push 0x418f28
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push str.__Fragment_
lea ecx, [esp + 0x84]
call dword [0x41842c]
mov eax, dword [esp + 0x30]
mov ebx, 0x10
cmp dword [esp + 0x44], ebx
jae 0x40abfd
lea eax, [esp + 0x30]
mov edi, dword [sym.imp.MSVCR80.dll_strstr]
push eax
push ebp
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x40ae71
cmp dword [esp + 0x98], ebx
mov eax, dword [esp + 0x84]
jae 0x40ac2b
lea eax, [esp + 0x84]
push eax
push esi
call edi
add esp, 8
test eax, eax
mov dword [esp + 0x28], eax
je 0x40ae71
mov ecx, dword [esp + 0x40]
lea ebx, [ecx + esi]
sub eax, ebx
lea ebp, [eax + 0x400]
push ebp
call sub.MFC80U.DLL_Ordinal_265
push ebp
mov edi, eax
push 0
push edi
mov dword [esp + 0x24], edi
call sub.MSVCR80.dll_memset
add esp, 0x10
cmp ebx, dword [esp + 0x28]
mov esi, edi
jae 0x40ad30
mov edx, esi
sub edx, edi
cmp edx, ebp
jg 0x40ae6d
mov eax, dword [esp + 0x168]
push eax
push 1
push str._Param
push ebx
call fcn.00408ba0
add esp, 0x10
test al, al
jne 0x40aca5
mov cl, byte [ebx]
mov byte [esi], cl
add ebx, 1
add esi, 1
jmp 0x40ad22
push 6
add ebx, 1
push ebx
lea ecx, [esp + 0x50]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___unsigned_int_]
cmp dword [esp + 0x60], 0x10
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x158], 7
jae 0x40accc
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0xbc]
call fcn.00407470
mov edi, eax
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40ace0
sub eax, edx
push eax
push edi
push esi
call sub.MSVCR80.dll_memcpy
mov eax, edi
add esp, 0xc
lea edx, [eax + 1]
jmp 0x40ad00
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40ad00
sub eax, edx
lea ecx, [esp + 0x48]
add esi, eax
add ebx, 7
mov byte [esp + 0x158], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x14]
jb 0x40ac71
mov ecx, dword [esp + 0x24]
sub esi, edi
push ecx
mov ebx, esi
call sub.MFC80U.DLL_Ordinal_266
mov edx, dword [esp + 0x170]
mov esi, dword [edx]
sub esi, dword [esp + 0x24]
add esi, ebx
add esi, dword [esp + 0x20]
lea eax, [esi + 1]
push eax
call sub.MFC80U.DLL_Ordinal_265
mov ebp, dword [esp + 0x168]
mov ecx, dword [esp + 0x24]
mov edi, eax
mov eax, dword [ebp]
sub ecx, eax
push ecx
push eax
push edi
call sub.MSVCR80.dll_memcpy
mov edx, dword [esp + 0x28]
mov eax, edi
sub eax, dword [ebp]
push ebx
add eax, dword [esp + 0x34]
push edx
push eax
call sub.MSVCR80.dll_memcpy
mov eax, dword [ebp]
mov edx, dword [esp + 0x18c]
mov ecx, eax
sub ecx, dword [esp + 0x40]
add ecx, dword [edx]
mov edx, edi
sub edx, eax
push ecx
mov ecx, dword [esp + 0x44]
add edx, ebx
add edx, dword [esp + 0x40]
push ecx
push edx
call sub.MSVCR80.dll_memcpy
mov byte [edi + esi], 0
mov eax, dword [ebp]
push eax
call sub.MFC80U.DLL_Ordinal_266
mov eax, dword [esp + 0x44]
push eax
call sub.MFC80U.DLL_Ordinal_266
mov edx, dword [esp + 0x198]
mov eax, dword [esp + 0x1a0]
mov ecx, edi
sub ecx, dword [ebp]
add esp, 0x34
add ecx, ebx
add ecx, dword [esp + 0x1c]
mov byte [esp + 0x158], 3
mov dword [edx], ecx
mov dword [ebp], edi
lea ecx, [esp + 0x80]
mov dword [eax], esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x158], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xb8]
mov byte [esp + 0x158], 1
call fcn.00408030
lea ecx, [esp + 0x9c]
mov byte [esp + 0x158], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x64]
mov dword [esp + 0x158], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, 1
mov ecx, dword [esp + 0x150]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14c
ret 0x10
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x40ae7e
push ebp
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40ae8f
push eax
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
mov edx, dword [esp + 0x16c]
mov eax, dword [esp + 0x164]
mov esi, dword [esp + 0x160]
mov dword [edx], 0
mov dword [eax], 0
mov eax, dword [esi]
test eax, eax
je 0x40aec5
push eax
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
mov dword [esi], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40aed7
push eax
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
lea ecx, [esp + 0x80]
mov byte [esp + 0x158], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x158], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xb8]
mov byte [esp + 0x158], 1
call fcn.00408030
lea ecx, [esp + 0x9c]
mov byte [esp + 0x158], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x64]
mov dword [esp + 0x158], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor al, al
jmp 0x40ae52