Function at 0x40d390
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5963af
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x60dfd4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], 0
mov dword [esi], 0x5eaa24
mov dword [esi + 0x50], vtable.std::basic_ios_unsigned_short_int__struct_std::char_traits_unsigned_short_int__.0
mov dword [ebp - 4], 0
mov eax, dword [esi]
push 0
push 0
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + esi - 4], eax
mov eax, dword [esi]
mov ebx, dword [eax + 4]
add ebx, esi
mov ecx, ebx
mov dword [ebx + 0x30], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0x201
mov dword [ebx + 0x18], 6
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
call fcn.00406580
push 8
call fcn.0041d1b5
mov edi, eax
add esp, 4
test edi, edi
je 0x40d47c
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 2
call fcn.0056cdb4
add esp, 4
mov dword [edi + 4], eax
jmp 0x40d47e
xor edi, edi
lea eax, [esi + 4]
mov dword [ebx + 0x30], edi
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], 0
mov edi, dword [edi + 4]
mov dword [ebp - 0x1c], edi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x5a72d4]
mov ecx, edi
call esi
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 3
push eax
call fcn.0040cfa0
mov edi, eax
add esp, 4
mov ecx, dword [edi]
push 0x20
mov esi, dword [ecx + 0x30]
mov ecx, esi
call dword [0x5a72d4]
mov ecx, edi
call esi
movzx edi, ax
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x40d507
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x5a72d4]
mov ecx, edi
call esi
mov edi, eax
test edi, edi
je 0x40d507
mov ecx, dword [edi]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x5a72d4]
mov ecx, edi
call esi
cmp dword [ebx + 0x38], 0
mov eax, dword [ebp - 0x14]
mov word [ebx + 0x40], ax
jne 0x40d524
mov eax, dword [ebx + 0xc]
mov ecx, ebx
push 0
or eax, 4
push eax
call fcn.00406580
mov dword [ebp - 4], 4
mov esi, dword [ebp - 0x18]
lea ebx, [esi + 4]
push 8
mov dword [ebp - 0x14], ebx
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_ostringstream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + esi - 4], eax
mov dword [ebx], vtable.std::basic_streambuf_unsigned_short_int__struct_std::char_traits_unsigned_short_int__.0
call fcn.0041d1b5
mov edi, eax
add esp, 4
test edi, edi
je 0x40d57c
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov byte [ebp - 4], 5
call fcn.0056cdb4
add esp, 4
mov dword [edi + 4], eax
jmp 0x40d57e
xor edi, edi
lea eax, [ebx + 4]
mov dword [ebx + 0x34], edi
mov dword [ebx + 0xc], eax
lea ecx, [ebx + 8]
lea eax, [ebx + 0x14]
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x1c], eax
lea eax, [ebx + 0x18]
mov dword [ebx + 0x20], eax
lea eax, [ebx + 0x24]
mov dword [ebx + 0x2c], eax
lea eax, [ebx + 0x28]
mov dword [ebx + 0x30], eax
mov dword [ecx], 0
mov eax, dword [ebx + 0x20]
mov dword [eax], 0
mov eax, dword [ebx + 0x30]
mov dword [eax], 0
mov eax, dword [ebx + 0xc]
mov dword [eax], 0
mov eax, dword [ebx + 0x1c]
mov dword [eax], 0
mov eax, dword [ebx + 0x2c]
mov dword [eax], 0
mov eax, esi
mov dword [ebx], vtable.std::basic_stringbuf_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__.0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8