Function at 0x423490
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ff08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7f8
mov eax, dword [0x453540]
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, 0xc0
call fcn.00401160
mov ecx, dword [ebp - 0x800]
cmp dword [ecx], 0
je 0x423525
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 0x42351b
push 1
mov ecx, dword [ebp - 0x7f4]
call fcn.004186a0
mov dword [ebp - 0x804], eax
jmp 0x423525
mov dword [ebp - 0x804], 0
mov edx, dword [ebp - 0x800]
mov dword [edx + 0x2c], 0
mov ecx, dword [ebp - 0x800]
add ecx, 0x30
call fcn.00418710
mov ecx, dword [ebp - 0x800]
add ecx, 0x40
call fcn.00418710
mov ecx, dword [ebp - 0x800]
add ecx, 0x50
call fcn.00418710
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea ecx, [ebp + 8]
call fcn.00409aa0
push eax
call dword [0x453f80]
mov ecx, dword [ebp - 0x800]
mov dword [ecx + 0x28], eax
mov edx, dword [ebp - 0x800]
cmp dword [edx + 0x28], 0xffffffff
jne 0x4235c0
mov eax, dword [ebp - 0x800]
mov dword [eax + 0x28], 0
mov byte [ebp - 0x7f9], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004030a0
mov al, byte [ebp - 0x7f9]
jmp 0x423763
push 0
push 0
push 0
mov ecx, dword [ebp - 0x800]
mov edx, dword [ecx + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x42360c
mov eax, dword [ebp - 0x800]
mov ecx, dword [eax + 0x28]
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.004030a0
mov al, byte [ebp - 0x7fa]
jmp 0x423763
push 0
call sub.xmlparse.dll_XML_ParserCreate
add esp, 4
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x800]
mov dword [edx + 0x2c], 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 0x423470
push 0x422340
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 + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x7ec], eax
cmp dword [ebp - 0x7ec], 0
jne 0x4236ad
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 0x23b
push 0x44aeb8
push 0
mov ecx, 0x454488
call fcn.004192c0
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 0x423714
mov eax, dword [ebp - 0x800]
mov ecx, dword [eax + 0x28]
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.004030a0
mov al, byte [ebp - 0x7fb]
jmp 0x423763
cmp dword [ebp - 0x7e8], 0
je 0x42364f
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 + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x800]
call fcn.00421e80
mov byte [ebp - 0x7fc], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004030a0
mov al, byte [ebp - 0x7fc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0042bcf0
mov esp, ebp
pop ebp
ret 4