Function at 0x10017fd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101955f0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10200e34]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x10018013
mov ecx, esi
mov esi, dword [esi + 0x28]
push 1
mov eax, dword [ecx]
call dword [eax]
test esi, esi
jne 0x10018004
mov edx, dword [ebp + 8]
mov ecx, edx
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 8], 0xffffffff
mov dword [ebx + 4], 0xffffffff
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10018037
sub ecx, esi
push ecx
push edx
lea ecx, [ebx + 0x20]
call sym.SDTool32.dll_public:_class_TiXmlString____thiscall_TiXmlString::assign_char_const___unsigned_int_
mov eax, dword [ebx + 0x20]
add eax, 8
push 0x101dbb94
push eax
call fcn.10176c44
mov edi, eax
add esp, 8
mov dword [ebp - 0x18], edi
test edi, edi
je 0x1001831b
push 2
push 0
push edi
call fcn.101717e4
push edi
call fcn.101772e7
push 0
push 0
push edi
mov dword [ebp - 0x10], eax
call fcn.101717e4
mov eax, dword [ebp - 0x10]
add esp, 0x1c
test eax, eax
jne 0x100180a0
push edi
call fcn.10172006
add esp, 4
jmp 0x10018358
mov esi, sym.SDTool32.dll_struct_TiXmlString::Rep_TiXmlString::nullrep_
mov dword [ebp + 8], esi
mov dword [ebp - 4], 0
cmp eax, dword [0x1020ae6c]
jbe 0x10018113
mov dword [ebp - 0x14], esi
add eax, 0xf
mov byte [ebp - 4], 1
mov edi, dword [sym.SDTool32.dll_struct_TiXmlString::Rep_TiXmlString::nullrep_]
xor ecx, ecx
shr eax, 2
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1001c253
mov esi, eax
mov eax, dword [ebp - 0x10]
mov dword [esi], edi
mov byte [edi + esi + 8], 0
mov dword [esi + 4], eax
lea eax, [esi + 8]
push dword [sym.SDTool32.dll_struct_TiXmlString::Rep_TiXmlString::nullrep_]
push 0x1020ae70
push eax
call fcn.10169b40
mov edi, dword [ebp - 0x18]
add esp, 0x10
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], esi
mov byte [ebp - 4], 0
inc eax
push eax
call fcn.1001c253
mov ecx, eax
mov eax, dword [ebp - 0x10]
push edi
push 1
push eax
push ecx
mov dword [ebp - 0x18], ecx
mov byte [ecx], 0
call fcn.10171cc2
add esp, 0x14
cmp eax, 1
je 0x10018188
cmp byte [ebx + 0x2c], 0
jne 0x10018178
mov byte [ebx + 0x2c], 1
mov dword [ebx + 0x30], 2
mov edx, dword [str.Failed_to_open_file]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp + 0xc], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10018156
sub ecx, dword [ebp + 0xc]
push ecx
push edx
lea ecx, [ebx + 0x34]
call sym.SDTool32.dll_public:_class_TiXmlString____thiscall_TiXmlString::assign_char_const___unsigned_int_
mov dword [ebx + 0x40], 0xffffffff
mov dword [ebx + 0x3c], 0xffffffff
push edi
call fcn.10172006
add esp, 4
xor bl, bl
jmp 0x100182f4
push edi
call fcn.10172006
mov edx, dword [ebp - 0x18]
add esp, 4
mov eax, dword [ebp - 0x10]
mov ecx, edx
mov dword [ebp - 0x14], ecx
mov edi, edx
mov byte [edx + eax], 0
mov al, byte [edx]
test al, al
je 0x1001828e
nop dword [eax]
cmp al, 0xa
jne 0x10018200
mov ebx, dword [esi]
mov eax, edi
mov edx, dword [esi + 4]
sub eax, ecx
inc eax
add ebx, eax
mov dword [ebp - 0x10], eax
cmp ebx, edx
jbe 0x100181dc
lea eax, [edx + ebx]
push eax
lea ecx, [ebp + 8]
call sym.SDTool32.dll_public:_void___thiscall_TiXmlString::reserve_unsigned_int_
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push eax
mov eax, dword [esi]
add eax, 8
push ecx
add eax, esi
push eax
call fcn.1016a0c0
add esp, 0xc
mov dword [esi], ebx
inc edi
mov byte [ebx + esi + 8], 0
mov ecx, edi
mov dword [ebp - 0x14], ecx
jmp 0x10018281
cmp al, 0xd
jne 0x10018280
mov ebx, edi
sub ebx, ecx
test ebx, ebx
jle 0x10018247
mov eax, dword [esi]
mov edx, dword [esi + 4]
add eax, ebx
mov dword [ebp - 0x10], eax
cmp eax, edx
jbe 0x1001822b
add eax, edx
lea ecx, [ebp + 8]
push eax
call sym.SDTool32.dll_public:_void___thiscall_TiXmlString::reserve_unsigned_int_
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov eax, dword [esi]
push ebx
add eax, 8
push ecx
add eax, esi
push eax
call fcn.1016a0c0
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov dword [esi], eax
mov byte [eax + esi + 8], 0
mov ebx, dword [esi]
mov eax, dword [esi + 4]
inc ebx
cmp ebx, eax
jbe 0x1001825f
add eax, ebx
lea ecx, [ebp + 8]
push eax
call sym.SDTool32.dll_public:_void___thiscall_TiXmlString::reserve_unsigned_int_
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov byte [eax + esi + 8], 0xa
xor eax, eax
mov dword [esi], ebx
mov byte [ebx + esi + 8], 0
cmp byte [edi + 1], 0xa
sete al
inc eax
add edi, eax
mov ecx, edi
mov dword [ebp - 0x14], ecx
jmp 0x10018281
inc edi
mov al, byte [edi]
test al, al
jne 0x100181b0
mov ebx, dword [ebp - 0x1c]
sub edi, ecx
je 0x100182cd
mov eax, dword [esi]
mov edx, dword [esi + 4]
add eax, edi
mov dword [ebp - 0x1c], eax
cmp eax, edx
jbe 0x100182b1
add eax, edx
lea ecx, [ebp + 8]
push eax
call sym.SDTool32.dll_public:_void___thiscall_TiXmlString::reserve_unsigned_int_
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov eax, dword [esi]
push edi
add eax, 8
push ecx
add eax, esi
push eax
call fcn.1016a0c0
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov dword [esi], eax
mov byte [eax + esi + 8], 0
push dword [ebp - 0x18]
call fcn.1001c24e
mov edx, dword [ebx]
lea eax, [esi + 8]
add esp, 4
mov ecx, ebx
push dword [ebp + 0xc]
push 0
push eax
call dword [edx + 8]
cmp byte [ebx + 0x2c], 0
je 0x100182f2
xor bl, bl
jmp 0x100182f4
mov bl, 1
cmp esi, sym.SDTool32.dll_struct_TiXmlString::Rep_TiXmlString::nullrep_
je 0x10018305
push esi
call fcn.1001c24e
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp byte [ebx + 0x2c], 0
jne 0x10018358
mov byte [ebx + 0x2c], 1
mov dword [ebx + 0x30], 2
mov edx, dword [str.Failed_to_open_file]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10018337
sub ecx, esi
push ecx
push edx
lea ecx, [ebx + 0x34]
call sym.SDTool32.dll_public:_class_TiXmlString____thiscall_TiXmlString::assign_char_const___unsigned_int_
mov dword [ebx + 0x40], 0xffffffff
mov dword [ebx + 0x3c], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8