Function at 0x4555f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4745f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7f8
mov eax, dword [0x49c1c8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x800], ecx
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
mov ecx, dword [ebp - 0x800]
add ecx, 0x5c
call fcn.004029a0
mov ecx, dword [ebp - 0x800]
cmp dword [ecx], 0
je 0x455682
mov edx, dword [ebp - 0x800]
mov eax, dword [edx]
mov dword [ebp - 0x7f8], eax
mov ecx, dword [ebp - 0x7f8]
mov dword [ebp - 0x7f4], ecx
cmp dword [ebp - 0x7f4], 0
je 0x455678
push 1
mov ecx, dword [ebp - 0x7f4]
call fcn.004171b0
mov dword [ebp - 0x804], eax
jmp 0x455682
mov dword [ebp - 0x804], 0
mov edx, dword [ebp - 0x800]
mov dword [edx + 0x28], 0
mov ecx, dword [ebp - 0x800]
add ecx, 0x2c
call fcn.00439540
mov ecx, dword [ebp - 0x800]
add ecx, 0x3c
call fcn.00439540
mov ecx, dword [ebp - 0x800]
add ecx, 0x4c
call fcn.00439540
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp + 8]
call fcn.00405020
push eax
call dword [0x49c238]
mov ecx, dword [ebp - 0x800]
mov dword [ecx + 0x24], eax
mov edx, dword [ebp - 0x800]
cmp dword [edx + 0x24], 0xffffffff
jne 0x45571d
mov eax, dword [ebp - 0x800]
mov dword [eax + 0x24], 0
mov byte [ebp - 0x7f9], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402980
mov al, byte [ebp - 0x7f9]
jmp 0x4558c0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x800]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x455769
mov eax, dword [ebp - 0x800]
mov ecx, dword [eax + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x7fa], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402980
mov al, byte [ebp - 0x7fa]
jmp 0x4558c0
push 0
call sub.xmlparse.dll_XML_ParserCreate
add esp, 4
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x800]
mov dword [edx + 0x28], 0
mov eax, dword [ebp - 0x800]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.xmlparse.dll_XML_SetUserData
add esp, 8
push 0x4555d0
push 0x4543c0
mov edx, dword [ebp - 0x10]
push edx
call sub.xmlparse.dll_XML_SetElementHandler
add esp, 0xc
mov dword [ebp - 0x7f0], 0
push 0
lea eax, [ebp - 0x7f0]
push eax
push 0x7d0
lea ecx, [ebp - 0x7e4]
push ecx
mov edx, dword [ebp - 0x800]
mov eax, dword [edx + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x7ec], eax
cmp dword [ebp - 0x7ec], 0
jne 0x45580a
push str.File_read_failed
push str.bool___thiscall_Model::LoadAux_class_ATL::CStringT_unsigned_short_class_ATL::StrTraitATL_unsigned_short_class_ATL::ChTraitsCRT_unsigned_short______
push 0x22f
push 0x488710
push 0
mov ecx, 0x49d444
call fcn.00441760
cmp dword [ebp - 0x7f0], 0x7d0
sbb ecx, ecx
neg ecx
mov dword [ebp - 0x7e8], ecx
mov edx, dword [ebp - 0x7e8]
push edx
mov eax, dword [ebp - 0x7f0]
push eax
lea ecx, [ebp - 0x7e4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.xmlparse.dll_XML_Parse
add esp, 0x10
test eax, eax
jne 0x455871
mov eax, dword [ebp - 0x800]
mov ecx, dword [eax + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x7fb], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402980
mov al, byte [ebp - 0x7fb]
jmp 0x4558c0
cmp dword [ebp - 0x7e8], 0
je 0x4557ac
mov edx, dword [ebp - 0x10]
push edx
call sub.xmlparse.dll_XML_ParserFree
add esp, 4
mov eax, dword [ebp - 0x800]
mov ecx, dword [eax + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x800]
call fcn.00453f90
mov byte [ebp - 0x7fc], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402980
mov al, byte [ebp - 0x7fc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0046faad
mov esp, ebp
pop ebp
ret 4