Function at 0x40601c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x1c], ecx
cmp dword [ebp + 8], 0
jne 0x406047
mov dword [esp + 8], 0x323
mov dword [esp + 4], str.tinyxml_tinyxml.cpp
mov dword [esp], str.cfile
call sym.__assert
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
jge 0x40607f
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 4
mov dword [esp + 4], 1
mov dword [esp], str.
call sym._fwrite
add dword [ebp - 0xc], 1
jmp 0x40604e
mov eax, dword [ebp - 0x1c]
add eax, 0x20
mov ecx, eax
call dbg.TiXmlString::c_str() const
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4df649
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fprintf
mov eax, dword [ebp - 0x1c]
add eax, 0x2c
mov ecx, eax
call dbg.TiXmlAttributeSet::First() const
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4060fc
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], 0x20
call sym._fputc
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
add eax, 8
mov edx, dword [eax]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 4], ecx
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
mov ecx, eax
call edx
sub esp, 8
mov eax, dword [ebp - 0x10]
mov ecx, eax
call dbg.TiXmlAttribute::Next() const
mov dword [ebp - 0x10], eax
jmp 0x4060b3
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x40612e
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 3
mov dword [esp + 4], 1
mov dword [esp], 0x4df64d
call sym._fwrite
jmp 0x4062c0
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x1c]
cmp edx, eax
jne 0x406160
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx + 0x18]
mov edx, dword [edx]
add edx, 0x38
mov edx, dword [edx]
mov ecx, eax
call edx
test eax, eax
je 0x406160
mov eax, 1
jmp 0x406165
mov eax, 0
test al, al
je 0x4061cf
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], 0x3e
call sym._fputc
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x18]
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x18]
mov eax, dword [eax]
add eax, 8
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [esp + 4], edx
mov edx, dword [ebp + 8]
mov dword [esp], edx
call eax
sub esp, 8
mov eax, dword [ebp - 0x1c]
add eax, 0x20
mov ecx, eax
call dbg.TiXmlString::c_str() const
mov dword [esp + 8], eax
mov dword [esp + 4], str.___s_
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fprintf
jmp 0x4062c0
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], 0x3e
call sym._fputc
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x406251
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
add eax, 0x38
mov edx, dword [eax]
mov eax, dword [ebp - 0x14]
mov ecx, eax
call edx
test eax, eax
sete al
test al, al
je 0x40621e
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sym._fputc
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
mov edx, dword [edx]
add edx, 8
mov edx, dword [edx]
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [esp + 4], ecx
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
mov ecx, eax
call edx
sub esp, 8
mov eax, dword [ebp - 0x14]
mov ecx, eax
call dbg.TiXmlNode::NextSibling()
mov dword [ebp - 0x14], eax
jmp 0x4061eb
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sym._fputc
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
jge 0x40629c
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 4
mov dword [esp + 4], 1
mov dword [esp], str.
call sym._fwrite
add dword [ebp - 0xc], 1
jmp 0x40626b
mov eax, dword [ebp - 0x1c]
add eax, 0x20
mov ecx, eax
call dbg.TiXmlString::c_str() const
mov dword [esp + 8], eax
mov dword [esp + 4], str.___s_
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fprintf
nop
leave
ret 8