Function at 0x10089d10
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x100a747c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4b0
mov al, byte [esp + 3]
push esi
mov esi, ecx
push edi
push 0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], esi
mov byte [esp + 0x2c], 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_]
mov edi, 0x10140890
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x10140890
lea ecx, [esp + 0x30]
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__::assign_char_const___unsigned_int_]
mov ecx, dword [esp + 0x4cc]
push 0
push 1
push ecx
mov ecx, esi
mov dword [esp + 0x4cc], 0
call fcn.1008a3d0
test eax, eax
jne 0x10089da4
push 1
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c4], 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_]
jmp 0x1008a3ab
mov edi, dword [esp + 0x4c8]
push ebx
mov bl, byte [esp + 0xf]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [edi]
lea edx, [esp + 0x58]
push 0
push edx
lea eax, [esp + 0xc8]
push 0x400
push eax
push ecx
call ebp
test eax, eax
je 0x10089e36
mov esi, dword [esp + 0x58]
test esi, esi
je 0x10089e36
push 0
lea ecx, [esp + 0x24]
mov byte [esp + 0x24], bl
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 edx, [esp + 0xc0]
push esi
push edx
lea ecx, [esp + 0x28]
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__::assign_char_const___unsigned_int_]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea edx, [esp + 0x20]
mov byte [esp + 0x4c8], 1
mov ecx, dword [eax]
push ecx
push 0
push edx
lea ecx, [esp + 0x3c]
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 + 0x24]
mov byte [esp + 0x4cc], 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_]
jmp 0x10089db7
mov eax, dword [esp + 0x38]
xor esi, esi
test eax, eax
mov dword [esp + 0x50], eax
jle 0x1008a34e
push 1
lea eax, [esp + 0x17]
push esi
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1f], 0x2d
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
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 ebp, eax
cmp dword [ecx], ebp
je 0x1008a34e
lea eax, [ebp + 1]
push 1
lea edx, [esp + 0x17]
push eax
push edx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1f], 0x2d
mov dword [esp + 0x28], eax
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
mov ebx, eax
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp dword [eax], ebx
je 0x1008a34e
lea eax, [ebx + 1]
push 1
lea ecx, [esp + 0x17]
push eax
push ecx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1f], 0x2d
mov dword [esp + 0x54], eax
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edi, eax
cmp dword [edx], edi
je 0x1008a34e
lea eax, [edi + 1]
push 1
mov dword [esp + 0x48], eax
push eax
lea eax, [esp + 0x1b]
lea ecx, [esp + 0x38]
push eax
mov byte [esp + 0x1f], 0x2d
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
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 esi, eax
cmp dword [ecx], esi
je 0x1008a34e
lea eax, [esi + 1]
push 1
lea edx, [esp + 0x17]
push eax
push edx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x4c], eax
mov byte [esp + 0x1f], 0x2d
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
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 dword [esp + 0x54], eax
cmp dword [ecx], eax
je 0x1008a34e
cmp ebp, 2
jl 0x1008a340
mov edx, dword [esp + 0x50]
add edx, 0xfffffffd
cmp eax, edx
jg 0x1008a34e
mov ecx, ebx
sub ecx, ebp
cmp ecx, 3
jne 0x1008a340
mov edx, edi
sub edx, ebx
cmp edx, ecx
jne 0x1008a340
mov ecx, esi
sub ecx, edi
cmp ecx, 3
jne 0x1008a340
sub eax, esi
cmp eax, ecx
jne 0x1008a340
mov dl, byte [esp + 0x13]
xor edi, edi
push edi
lea ecx, [esp + 0x24]
mov byte [esp + 0x24], 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_]
add ebp, 0xfffffffe
push 2
lea eax, [esp + 0x74]
push ebp
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4d4], 2
mov dword [esp + 0x20], edi
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__::substr_unsigned_int__unsigned_int_]
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 + 0x4c8], 3
mov edx, dword [ecx]
lea ecx, [esp + 0x20]
push edx
push edi
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__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [esp + 0x74]
mov byte [esp + 0x4cc], 2
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 eax, dword [esp + 0x24]
cmp eax, edi
jne 0x10089fe4
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov esi, dword [sym.imp.MSVCRT.dll_strtoul]
mov ecx, eax
add eax, 2
push 0x10
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push ecx
call esi
mov ecx, dword [esp + 0x28]
add esp, 0xc
lea edx, [esp + 0x90]
mov dword [esp + 0x5c], eax
push 2
push ecx
push edx
lea ecx, [esp + 0x3c]
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__::substr_unsigned_int__unsigned_int_]
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 + 0x4c8], 4
mov edx, dword [ecx]
lea ecx, [esp + 0x20]
push edx
push edi
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__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [esp + 0x94]
mov byte [esp + 0x4cc], 2
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 eax, dword [esp + 0x24]
cmp eax, edi
jne 0x1008a05e
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, eax
add eax, 2
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 0x10
push eax
push ecx
call esi
mov ecx, dword [esp + 0x54]
add esp, 0xc
lea edx, [esp + 0xb0]
mov dword [esp + 0x1c], eax
push 2
push ecx
push edx
lea ecx, [esp + 0x3c]
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__::substr_unsigned_int__unsigned_int_]
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 + 0x4c8], 5
mov edx, dword [ecx]
lea ecx, [esp + 0x20]
push edx
push edi
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__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [esp + 0xb4]
mov byte [esp + 0x4cc], 2
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 eax, dword [esp + 0x24]
cmp eax, edi
jne 0x1008a0d2
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, eax
add eax, 2
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 0x10
push eax
push ecx
call esi
mov ecx, dword [esp + 0x50]
add esp, 0xc
lea edx, [esp + 0x80]
mov dword [esp + 0x48], eax
push 2
push ecx
push edx
lea ecx, [esp + 0x3c]
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__::substr_unsigned_int__unsigned_int_]
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 + 0x4c8], 6
mov edx, dword [ecx]
lea ecx, [esp + 0x20]
push edx
push edi
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__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [esp + 0x84]
mov byte [esp + 0x4cc], 2
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 eax, dword [esp + 0x24]
cmp eax, edi
jne 0x1008a146
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, eax
add eax, 2
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 0x10
push eax
push ecx
call esi
mov ecx, dword [esp + 0x4c]
add esp, 0xc
lea edx, [esp + 0xa0]
mov dword [esp + 0x44], eax
push 2
push ecx
push edx
lea ecx, [esp + 0x3c]
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__::substr_unsigned_int__unsigned_int_]
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 + 0x4c8], 7
mov edx, dword [ecx]
lea ecx, [esp + 0x20]
push edx
push edi
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__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [esp + 0xa4]
mov byte [esp + 0x4cc], 2
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 eax, dword [esp + 0x24]
cmp eax, edi
jne 0x1008a1ba
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, eax
add eax, 2
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 0x10
push eax
push ecx
call esi
mov ecx, dword [esp + 0x60]
add esp, 0xc
inc ecx
lea edx, [esp + 0x60]
push 2
push ecx
push edx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x4c], 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__::substr_unsigned_int__unsigned_int_]
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 + 0x4c8], 8
mov edx, dword [ecx]
lea ecx, [esp + 0x20]
push edx
push edi
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__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [esp + 0x64]
mov byte [esp + 0x4c8], 2
cmp eax, edi
je 0x1008a235
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x1008a22c
cmp al, 0xff
je 0x1008a22c
dec al
mov byte [ecx], al
jmp 0x1008a235
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x24]
mov dword [esp + 0x64], edi
cmp eax, edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
jne 0x1008a24e
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, eax
add eax, 2
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 0x10
push eax
push ecx
call esi
push 8
mov ebx, eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
xor ecx, ecx
mov dword [esp + 0x28], eax
mov dword [eax], ecx
push 0xc
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x2c]
mov al, byte [esp + 0x70]
mov byte [edx], al
mov ecx, dword [esp + 0x2c]
mov dl, byte [esp + 0x30]
mov byte [ecx + 1], dl
mov eax, dword [esp + 0x2c]
mov cl, byte [esp + 0x5c]
mov byte [eax + 2], cl
mov edx, dword [esp + 0x2c]
mov al, byte [esp + 0x58]
mov byte [edx + 3], al
mov ecx, dword [esp + 0x2c]
mov dl, byte [esp + 0x54]
mov byte [ecx + 4], dl
mov eax, dword [esp + 0x2c]
mov byte [eax + 5], bl
mov ebx, dword [esp + 0x60]
mov esi, dword [ebx + 0x10]
mov edi, dword [esi + 4]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
xor ebp, ebp
add esp, 0x14
cmp esi, ebp
mov ecx, esi
jne 0x1008a2d0
mov ecx, eax
cmp edi, ebp
mov dword [eax], ecx
jne 0x1008a2d8
mov edi, eax
mov dword [eax + 4], edi
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
lea ecx, [esp + 0x18]
add eax, 8
push ecx
push eax
call fcn.1008a460
mov ecx, dword [ebx + 0x14]
mov edx, dword [esp + 0x5c]
add esp, 8
inc ecx
mov dword [ebx + 0x14], ecx
mov ecx, dword [esp + 0x24]
cmp ecx, ebp
mov dword [esp + 0x18], ebp
lea esi, [edx + 3]
mov byte [esp + 0x4c8], 0
je 0x1008a332
mov al, byte [ecx - 1]
test al, al
je 0x1008a328
cmp al, 0xff
je 0x1008a328
dec al
mov byte [ecx - 1], al
jmp 0x1008a332
dec ecx
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
jmp 0x1008a344
mov esi, dword [esp + 0x1c]
cmp esi, dword [esp + 0x50]
jl 0x10089e48
mov eax, dword [esp + 0x4c]
pop ebp
pop ebx
mov ecx, dword [eax + 0x14]
test ecx, ecx
mov ecx, dword [esp + 0x2c]
je 0x1008a38b
test ecx, ecx
je 0x1008a384
mov al, byte [ecx - 1]
test al, al
je 0x1008a37a
cmp al, 0xff
je 0x1008a37a
dec al
mov byte [ecx - 1], al
mov eax, 1
jmp 0x1008a3ad
dec ecx
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 1
jmp 0x1008a3ad
test ecx, ecx
je 0x1008a3ab
mov al, byte [ecx - 1]
test al, al
je 0x1008a3a1
cmp al, 0xff
je 0x1008a3a1
dec al
mov byte [ecx - 1], al
jmp 0x1008a3ab
dec ecx
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x4b8]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x4bc
ret 8