Function at 0x10003490
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1000646b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 3]
push esi
mov dword [esp + 8], ecx
push edi
push 0
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [esp + 0x14]
push 0
push ecx
mov dword [esp + 0x44], 0
call fcn.10003e50
add esp, 8
test al, al
jne 0x10003504
push 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
lea edx, [esp + 0x24]
push str.index.dat
push edx
call fcn.10006170
add esp, 8
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [esp + 0x3c], 1
mov edx, dword [ecx]
lea ecx, [esp + 0x14]
push edx
push 0
push eax
call dword [sym.imp.MSVCP60.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__::append_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.10003dc0
add esp, 8
test al, al
je 0x100035fb
mov dl, byte [esp + 0xb]
push ebp
push 0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2c], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x100092b8
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x2c]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x100035b8
mov edi, dword [esp + 0x2c]
mov ecx, ebp
mov eax, ecx
mov esi, 0x100092b8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x30], ebp
mov byte [ecx + ebp], 0
lea edx, [esp + 0x28]
lea eax, [esp + 0x18]
push edx
push eax
mov byte [esp + 0x48], 2
call fcn.10003cc0
mov esi, eax
mov eax, dword [esp + 0x34]
add esp, 8
test eax, eax
pop ebp
je 0x100035f7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x100035ee
cmp al, 0xff
je 0x100035ee
dec al
mov byte [ecx], al
jmp 0x100035f7
push ecx
call fcn.100061b2
add esp, 4
test esi, esi
jne 0x10003632
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x100036ae
mov al, byte [ecx - 1]
test al, al
je 0x100036a4
cmp al, 0xff
je 0x100036a4
dec al
pop edi
mov byte [ecx - 1], al
xor al, al
pop esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
mov ecx, dword [esp + 0xc]
push esi
push 0x750
add ecx, 4
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
push esi
mov edi, eax
call dword [sym.imp.MSVCRT.dll_fclose]
mov ecx, dword [esp + 0x2c]
add esp, 0x14
cmp edi, 0x750
jne 0x100035ff
test ecx, ecx
je 0x10003691
mov al, byte [ecx - 1]
test al, al
je 0x10003687
cmp al, 0xff
je 0x10003687
dec al
pop edi
mov byte [ecx - 1], al
mov al, 1
pop esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
dec ecx
push ecx
call fcn.100061b2
add esp, 4
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
dec ecx
push ecx
call fcn.100061b2
add esp, 4
mov ecx, dword [esp + 0x34]
pop edi
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret