Function at 0x403e50
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41166d
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x41a428]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x30], ebx
mov ecx, dword [esi]
push eax
push ecx
call fcn.0040fff0
add esp, 8
cmp dword [ebp - 0x44], 0x54474152
je 0x40406c
push 5
push 0x80
call fcn.0040f5b0
mov ecx, eax
call fcn.0040e470
test al, al
je 0x404064
mov edx, dword [sym.imp.MSVCP100.dll_const_std::basic_ios_char__struct_std::char_traits_char__::vftable]
mov dword [ebp - 0xe0], 0x413510
mov dword [ebp - 0x90], edx
push ebx
push ebx
lea eax, [ebp - 0xdc]
mov esi, 1
push eax
lea ecx, [ebp - 0xe0]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], esi
call dword [sym.imp.MSVCP100.dll_public:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov ecx, dword [ebp - 0xe0]
mov edx, dword [ecx + 4]
mov edi, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
lea ecx, [ebp - 0xdc]
mov dword [ebp - 4], esi
mov dword [ebp + edx - 0xe0], edi
call dword [sym.imp.MSVCP100.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov esi, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0xdc], esi
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x9c], 4
push str._nPlease_rebuild_it_using_the_latest_TerraGear_HGT_tools.
lea eax, [ebp - 0xe0]
push str._nThe_.arr_file_is_not_in_the_correct_binary_format.
push eax
mov dword [ebp - 4], 3
call fcn.00401160
add esp, 8
push eax
call fcn.00401160
add esp, 8
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0xe0]
call fcn.00403ac0
push eax
push 0xb2
push str.........TerraGear_srcLibArray_array.cxx
push 5
push 0x80
mov byte [ebp - 4], 4
call fcn.0040f5b0
mov ecx, eax
call fcn.0040e840
cmp dword [ebp - 0x18], 0x10
jb 0x403f9d
mov edx, dword [ebp - 0x2c]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0xe0]
mov edx, dword [ecx + 4]
lea eax, [ebp - 0x90]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x30], eax
mov dword [ebp + edx - 0xe0], edi
lea eax, [ebp - 0xdc]
mov dword [ebp - 4], 5
mov dword [ebp - 0x48], eax
mov dword [ebp - 0xdc], esi
test byte [ebp - 0x9c], 1
mov byte [ebp - 4], 6
je 0x403ff7
mov ecx, dword [ebp - 0xcc]
mov eax, dword [ecx]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
push ebx
push ebx
push ebx
lea ecx, [ebp - 0xdc]
call dword [sym.imp.MSVCP100.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char___char___char__]
mov edx, dword [ebp - 0xc8]
mov dword [edx], ebx
mov eax, dword [ebp - 0xb8]
mov dword [eax], ebx
mov ecx, dword [ebp - 0xa8]
mov dword [ecx], ebx
and dword [ebp - 0x9c], 0xfffffffe
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0xa0], ebx
mov byte [ebp - 4], 5
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
mov edx, dword [ebp - 0xe0]
mov ecx, dword [sym.imp.MSVCP100.dll_const_std::basic_ostream_char__struct_std::char_traits_char__::vftable]
mov eax, dword [edx + 4]
mov dword [ebp + eax - 0xe0], ecx
lea ecx, [ebp - 0x90]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
push 1
call dword [sym.imp.MSVCR100.dll_exit]
mov eax, dword [esi]
lea edx, [ebp - 0x40]
push edx
push eax
call fcn.0040fff0
mov edx, dword [esi]
lea ecx, [ebp - 0x3c]
push ecx
push edx
call fcn.0040fff0
fild dword [ebp - 0x40]
mov eax, dword [esi]
lea edi, [esi + 0x18]
fstp qword [esi + 8]
push edi
fild dword [ebp - 0x3c]
push eax
fstp qword [esi + 0x10]
call fcn.0040fff0
mov edx, dword [esi]
lea ecx, [ebp - 0x34]
push ecx
push edx
call fcn.0040fff0
mov eax, dword [esi]
lea ebx, [esi + 0x1c]
push ebx
push eax
call fcn.0040fff0
mov edx, dword [esi]
lea ecx, [ebp - 0x38]
push ecx
push edx
call fcn.0040fff0
fild dword [ebp - 0x34]
mov eax, dword [edi]
imul eax, dword [ebx]
fstp qword [esi + 0x20]
fild dword [ebp - 0x38]
fstp qword [esi + 0x28]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041072c
mov ecx, dword [esi]
push eax
mov dword [esi + 0x30], eax
mov eax, dword [edi]
imul eax, dword [ebx]
push eax
push ecx
call fcn.00410020
add esp, 0x40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410820
mov esp, ebp
pop ebp
ret