Function at 0x407bf8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 8], 0
je 0x407c2a
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], 0x4df6c4
call sym._fwrite
cmp dword [ebp + 0x10], 0
je 0x407c44
mov eax, dword [ebp + 0x10]
mov dword [esp], 0x4df6c4
mov ecx, eax
call dbg.TiXmlString::operator+=(char const*)
sub esp, 4
mov eax, dword [ebp - 0xc]
add eax, 0x2c
mov ecx, eax
call dbg.TiXmlString::empty() const
xor eax, 1
test al, al
je 0x407cc6
cmp dword [ebp + 8], 0
je 0x407c82
mov eax, dword [ebp - 0xc]
add eax, 0x2c
mov ecx, eax
call dbg.TiXmlString::c_str() const
mov dword [esp + 8], eax
mov dword [esp + 4], str.version__s_
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fprintf
cmp dword [ebp + 0x10], 0
je 0x407cc6
mov eax, dword [ebp + 0x10]
mov dword [esp], str.version_
mov ecx, eax
call dbg.TiXmlString::operator+=(char const*)
sub esp, 4
mov eax, dword [ebp - 0xc]
lea edx, [eax + 0x2c]
mov eax, dword [ebp + 0x10]
mov dword [esp], edx
mov ecx, eax
call dbg.TiXmlString::operator+=(TiXmlString const&)
sub esp, 4
mov eax, dword [ebp + 0x10]
mov dword [esp], 0x4df6e3
mov ecx, eax
call dbg.TiXmlString::operator+=(char const*)
sub esp, 4
mov eax, dword [ebp - 0xc]
add eax, 0x30
mov ecx, eax
call dbg.TiXmlString::empty() const
xor eax, 1
test al, al
je 0x407d48
cmp dword [ebp + 8], 0
je 0x407d04
mov eax, dword [ebp - 0xc]
add eax, 0x30
mov ecx, eax
call dbg.TiXmlString::c_str() const
mov dword [esp + 8], eax
mov dword [esp + 4], str.encoding__s_
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fprintf
cmp dword [ebp + 0x10], 0
je 0x407d48
mov eax, dword [ebp + 0x10]
mov dword [esp], str.encoding_
mov ecx, eax
call dbg.TiXmlString::operator+=(char const*)
sub esp, 4
mov eax, dword [ebp - 0xc]
lea edx, [eax + 0x30]
mov eax, dword [ebp + 0x10]
mov dword [esp], edx
mov ecx, eax
call dbg.TiXmlString::operator+=(TiXmlString const&)
sub esp, 4
mov eax, dword [ebp + 0x10]
mov dword [esp], 0x4df6e3
mov ecx, eax
call dbg.TiXmlString::operator+=(char const*)
sub esp, 4
mov eax, dword [ebp - 0xc]
add eax, 0x34
mov ecx, eax
call dbg.TiXmlString::empty() const
xor eax, 1
test al, al
je 0x407dca
cmp dword [ebp + 8], 0
je 0x407d86
mov eax, dword [ebp - 0xc]
add eax, 0x34
mov ecx, eax
call dbg.TiXmlString::c_str() const
mov dword [esp + 8], eax
mov dword [esp + 4], str.standalone__s_
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fprintf
cmp dword [ebp + 0x10], 0
je 0x407dca
mov eax, dword [ebp + 0x10]
mov dword [esp], str.standalone_
mov ecx, eax
call dbg.TiXmlString::operator+=(char const*)
sub esp, 4
mov eax, dword [ebp - 0xc]
lea edx, [eax + 0x34]
mov eax, dword [ebp + 0x10]
mov dword [esp], edx
mov ecx, eax
call dbg.TiXmlString::operator+=(TiXmlString const&)
sub esp, 4
mov eax, dword [ebp + 0x10]
mov dword [esp], 0x4df6e3
mov ecx, eax
call dbg.TiXmlString::operator+=(char const*)
sub esp, 4
cmp dword [ebp + 8], 0
je 0x407df3
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x4df71e
call sym._fwrite
cmp dword [ebp + 0x10], 0
je 0x407e0d
mov eax, dword [ebp + 0x10]
mov dword [esp], 0x4df71e
mov ecx, eax
call dbg.TiXmlString::operator+=(char const*)
sub esp, 4
nop
leave
ret 0xc