Function at 0x413230
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4338ef
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 0x44254c
lea ecx, [esp + 0xbc]
mov byte [esp + 0x15c], 1
call fcn.00410830
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.00412b90
cmp eax, ebp
mov dword [esp + 0x20], eax
je 0x41371f
push str.File
lea ecx, [esp + 0xbc]
call fcn.0040fba0
push 0x43a60c
lea ecx, [esp + 0xbc]
mov edi, eax
call fcn.0040fba0
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 0x4133bc
lea eax, [esp + 0x68]
push 0x44330c
push eax
call fcn.0040ec50
add esp, 8
cmp eax, ebp
mov dword [esp + 0x18], eax
je 0x41371f
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 0x41371f
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 0x413701
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 [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 ebx
lea ecx, [esp + 0x30]
call dword [0x439774]
push 0x43a5f8
lea ecx, [esp + 0x30]
call dword [0x439774]
push str.__Fragment_
lea ecx, [esp + 0x84]
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__]
mov eax, dword [esp + 0x30]
mov ebx, 0x10
cmp dword [esp + 0x44], ebx
jae 0x41348d
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 0x413701
cmp dword [esp + 0x98], ebx
mov eax, dword [esp + 0x84]
jae 0x4134bb
lea eax, [esp + 0x84]
push eax
push esi
call edi
add esp, 8
test eax, eax
mov dword [esp + 0x28], eax
je 0x413701
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 fcn.00417e46
add esp, 0x10
cmp ebx, dword [esp + 0x28]
mov esi, edi
jae 0x4135c0
mov edx, esi
sub edx, edi
cmp edx, ebp
jg 0x4136fd
mov eax, dword [esp + 0x168]
push eax
push 1
push str._Param
push ebx
call fcn.00411430
add esp, 0x10
test al, al
jne 0x413535
mov cl, byte [ebx]
mov byte [esi], cl
add ebx, 1
add esi, 1
jmp 0x4135b2
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 0x41355c
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0xbc]
call fcn.0040fba0
mov edi, eax
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x413570
sub eax, edx
push eax
push edi
push esi
call fcn.00417e40
mov eax, edi
add esp, 0xc
lea edx, [eax + 1]
jmp 0x413590
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x413590
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 0x413501
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 fcn.00417e40
mov edx, dword [esp + 0x28]
mov eax, edi
sub eax, dword [ebp]
push ebx
add eax, dword [esp + 0x34]
push edx
push eax
call fcn.00417e40
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 fcn.00417e40
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.004108a0
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 0x41370e
push ebp
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41371f
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 0x413755
push eax
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
mov dword [esi], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x413767
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.004108a0
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 0x4136e2