Function at 0x10054730
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1008035b
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 0x1005478f
lea esi, [ebp + 0x90]
mov dword [ebp], sym.stlport_vc645.dll_const__STL::basic_ofstream_unsigned_short_int__class__STL::char_traits_unsigned_short_int__::vbtable
mov ecx, esi
call sym.stlport_vc645.dll_protected:_void___thiscall__STL::ios_base::constructor_void_
mov word [esi + 0x54], bx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi], vtable._STL::basic_ios_unsigned_short_int__class__STL::char_traits_unsigned_short_int__.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_unsigned_short_int__class__STL::char_traits_unsigned_short_int__.0
mov edx, dword [ebp]
mov ecx, dword [edx + 4]
add ecx, ebp
call sym.stlport_vc645.dll_protected:_void___thiscall__STL::basic_ios_unsigned_short_int__class__STL::char_traits_unsigned_short_int__::init_class__STL::basic_streambuf_unsigned_short_int__class__STL::char_traits_unsigned_short_int____
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_unsigned_short_int__class__STL::char_traits_unsigned_short_int__::constructor_void_
lea ecx, [esi + 0x24]
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 + 0x34], bl
mov byte [esi + 0x35], bl
mov byte [esi + 0x36], bl
mov byte [esi + 0x37], bl
mov byte [esi + 0x38], bl
mov byte [esi + 0x39], bl
mov byte [esi + 0x3a], bl
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], eax
mov dword [esi], vtable._STL::basic_filebuf_unsigned_short_int__class__STL::char_traits_unsigned_short_int__.0
call sym.stlport_vc645.dll_public:_void___thiscall__STL::locale::constructor_void_
push sym.stlport_vc645.dll_class__STL::locale::id__STL::codecvt_unsigned_short_int__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 + 0x70], 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 0x1005485e
lea eax, [esp + 0x10]
mov eax, dword [eax]
mov ecx, dword [esi + 0x70]
mov dword [esi + 0x74], eax
push edi
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x70]
cmp edx, ebx
mov dword [esi + 0x78], eax
setg al
mov byte [esi + 0x34], al
mov edx, dword [ecx]
call dword [edx + 0x14]
lea ecx, [esp + 0x1c]
mov byte [esi + 0x35], 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_unsigned_short_int__class__STL::char_traits_unsigned_short_int__.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_unsigned_short_int__class__STL::char_traits_unsigned_short_int__::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_
xor ecx, ecx
cmp esi, ebx
sete cl
mov dword [edi + 8], ecx
mov ecx, dword [edi + 0x40]
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 edx, dword [ecx]
push 0x20
call dword [edx + 0x28]
mov ecx, dword [esp + 0x38]
mov word [edi + 0x54], ax
mov eax, dword [esp + 0x3c]
or al, 0x10
push eax
push ecx
lea ecx, [esi + 0x24]
call sym.stlport_vc645.dll_public:_bool___thiscall__STL::_Filebuf_base::_M_open_int__int_
neg al
sbb eax, eax
pop edi
test esi, eax
jne 0x10054957
mov edx, dword [ebp]
mov ecx, dword [edx + 4]
mov edx, dword [ecx + ebp + 0x58]
add ecx, ebp
mov eax, dword [ecx + 8]
or al, 4
cmp edx, ebx
jne 0x1005494f
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