Function at 0x100520c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1007fddb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebx
push ebp
xor ebx, ebx
mov ebp, ecx
cmp eax, ebx
push esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0xc], ebx
je 0x1005211e
lea esi, [ebp + 0xb8]
mov dword [ebp], sym.stlport_vc645.dll_const__STL::basic_ofstream_char__class__STL::char_traits_char__::vbtable
mov ecx, esi
call sym.stlport_vc645.dll_protected:_void___thiscall__STL::ios_base::constructor_void_
mov byte [esi + 0x54], bl
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi], vtable._STL::basic_ios_char__class__STL::char_traits_char__.0
mov dword [esp + 0xc], 1
mov dword [esp + 0x2c], ebx
mov eax, dword [ebp]
push ebx
mov ecx, dword [eax + 4]
mov dword [ecx + ebp], vtable._STL::basic_ostream_char__class__STL::char_traits_char__.0
mov edx, dword [ebp]
mov ecx, dword [edx + 4]
add ecx, ebp
call sym.stlport_vc645.dll_protected:_void___thiscall__STL::basic_ios_char__class__STL::char_traits_char__::init_class__STL::basic_streambuf_char__class__STL::char_traits_char____
lea esi, [ebp + 4]
mov dword [esp + 0x2c], 2
mov ecx, esi
mov dword [esp + 0x20], esi
call sym.stlport_vc645.dll_protected:_void___thiscall__STL::basic_streambuf_char__class__STL::char_traits_char__::constructor_void_
lea ecx, [esi + 0x54]
mov byte [esp + 0x2c], 3
call sym.stlport_vc645.dll_public:_void___thiscall__STL::_Filebuf_base::constructor_void_
mov eax, 1
lea ecx, [esp + 0x18]
mov byte [esi + 0x64], bl
mov byte [esi + 0x65], bl
mov byte [esi + 0x66], bl
mov byte [esi + 0x67], bl
mov byte [esi + 0x68], bl
mov byte [esi + 0x69], bl
mov byte [esi + 0x6a], bl
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], eax
mov dword [esi + 0xa8], eax
mov dword [esi], vtable._STL::basic_filebuf_char__class__STL::char_traits_char__.0
call sym.stlport_vc645.dll_public:_void___thiscall__STL::locale::constructor_void_
push sym.stlport_vc645.dll_class__STL::locale::id__STL::codecvt_char__char__int_::id
mov ecx, eax
mov byte [esp + 0x30], 4
call sym.stlport_vc645.dll_public:_class__STL::locale::facet____thiscall__STL::locale::_M_use_facet_class__STL::locale::id_const__const
mov dword [esi + 0xa0], eax
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x10]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
cmp eax, 1
mov dword [esp + 0x3c], 1
lea eax, [esp + 0x3c]
jl 0x10052211
lea eax, [esp + 0x10]
mov eax, dword [eax]
mov ecx, dword [esi + 0xa0]
mov dword [esi + 0xa4], eax
push edi
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0xa0]
cmp edx, ebx
mov dword [esi + 0xa8], eax
setg al
mov byte [esi + 0x64], al
mov edx, dword [ecx]
call dword [edx + 0x14]
lea ecx, [esp + 0x1c]
mov byte [esi + 0x65], al
mov byte [esp + 0x30], 3
call sym.stlport_vc645.dll_public:_void___thiscall__STL::locale::destructor_void_
mov eax, dword [ebp]
push ebx
mov byte [esp + 0x34], 5
mov ecx, dword [eax + 4]
mov dword [ecx + ebp], vtable._STL::basic_ofstream_char__class__STL::char_traits_char__.0
mov edx, dword [ebp]
mov edi, dword [edx + 4]
mov dword [edi + ebp + 0x58], esi
add edi, ebp
mov ecx, edi
call sym.stlport_vc645.dll_public:_void___thiscall__STL::basic_ios_char__class__STL::char_traits_char__::clear_int_
lea ecx, [esp + 0x18]
call sym.stlport_vc645.dll_public:_void___thiscall__STL::locale::constructor_void_
push eax
lea eax, [esp + 0x44]
push eax
mov ecx, edi
mov byte [esp + 0x38], 6
call sym.stlport_vc645.dll_public:_class__STL::locale___thiscall__STL::basic_ios_char__class__STL::char_traits_char__::imbue_class__STL::locale_const__
lea ecx, [esp + 0x40]
call sym.stlport_vc645.dll_public:_void___thiscall__STL::locale::destructor_void_
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 5
call sym.stlport_vc645.dll_public:_void___thiscall__STL::locale::destructor_void_
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
xor ecx, ecx
cmp esi, ebx
sete cl
or edx, 0x10
mov dword [edi + 8], ecx
push edx
push eax
lea ecx, [esi + 0x54]
mov dword [edi + 0x5c], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 4], 0x1008
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x18], 6
mov byte [edi + 0x54], 0x20
call sym.stlport_vc645.dll_public:_bool___thiscall__STL::_Filebuf_base::_M_open_char_const___int_
neg al
sbb eax, eax
pop edi
test esi, eax
jne 0x1005230c
mov ecx, dword [ebp]
mov ecx, dword [ecx + 4]
add ecx, ebp
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0x58]
or al, 4
cmp edx, ebx
jne 0x10052304
or al, 1
mov dword [ecx + 8], eax
call sym.stlport_vc645.dll_protected:_void___thiscall__STL::ios_base::_M_check_exception_mask_void_
mov ecx, dword [esp + 0x24]
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc