Function at 0x46c820
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520f9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], 0
mov ebx, dword [ebp + 0xc]
lea esi, [edi + 8]
mov eax, ebx
mov dword [ebp - 4], 0
shr eax, 1
lea ecx, [esi + 0x68]
and eax, 0xffffff01
mov dword [ebp - 0x20], esi
mov byte [edi], al
mov dword [ebp - 0x14], eax
mov eax, ebx
shr eax, 8
and eax, 0xffffff01
mov byte [edi + 1], al
mov dword [ebp - 0x18], eax
mov eax, ebx
shr eax, 9
and al, 1
mov byte [edi + 2], al
mov dword [esi], 0x538dd0
mov dword [esi + 0x10], 0x538dd8
call fcn.00439430
mov eax, dword [esi]
push 0
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + esi - 4], eax
mov eax, dword [esi]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov ecx, dword [eax + 4]
lea eax, [esi + 0x18]
add ecx, esi
push eax
call fcn.0046fa80
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 4]
mov dword [esi + eax + 0x10], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [esi + ecx + 0xc], eax
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + esi - 4], eax
mov eax, dword [esi]
mov dword [ebp - 4], 6
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ecx + esi - 4], eax
mov dword [esi + 0x18], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
push 8
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
call fcn.004fa223
add esp, 4
mov dword [ebp + 0xc], eax
test eax, eax
je 0x46c9ae
push 1
mov byte [ebp - 4], 7
call fcn.004f8ab2
mov ecx, dword [ebp + 0xc]
add esp, 4
mov dword [ecx + 4], eax
jmp 0x46c9b0
xor ecx, ecx
mov dword [esi + 0x4c], ecx
lea ecx, [esi + 0x18]
call fcn.0043a3b0
mov dword [esi + 0x18], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
xor eax, eax
cmp byte [edi], al
cmovne esi, eax
mov dword [ebp + 0xc], esi
mov eax, dword [ebp + 0xc]
mov dword [edi + 0xb8], esi
lea esi, [edi + 0xc0]
mov dword [ebp - 0x20], esi
test eax, eax
je 0x46c9f8
add eax, 0x10
mov dword [ebp + 0xc], eax
jmp 0x46c9ff
mov dword [ebp + 0xc], 0x5d2200
lea eax, [ebp - 0x48]
xor edx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], edx
mov ecx, dword [ebp + 0x34]
mov byte [ebp - 4], 9
test ecx, ecx
je 0x46ca22
mov eax, dword [ecx]
lea edx, [ebp - 0x48]
push edx
call dword [eax]
mov edx, eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x14]
mov byte [esi + 8], al
mov eax, ebx
and eax, 8
mov dword [esi], ecx
mov ecx, ebx
shr ecx, 2
and cl, 1
neg eax
mov byte [esi + 9], cl
lea ecx, [esi + 0x20]
sbb eax, eax
and eax, 0xf
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x18]
mov byte [esi + 0x10], al
mov eax, ebx
shr eax, 7
and eax, 1
mov dword [esi + 0x14], eax
mov eax, ebx
shr eax, 4
and al, 1
mov byte [esi + 0x18], al
mov dword [ecx + 0x24], 0
test edx, edx
je 0x46caab
lea eax, [ebp - 0x48]
cmp edx, eax
jne 0x46caa1
mov eax, dword [edx]
push ecx
mov ecx, edx
call dword [eax + 4]
mov ecx, dword [ebp - 0x24]
mov dword [esi + 0x44], eax
test ecx, ecx
je 0x46caab
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x48]
cmp ecx, eax
setne al
push eax
call edx
jmp 0x46caa4
mov dword [ecx + 0x24], edx
mov dword [ebp - 0x24], 0
add esi, 0x48
mov byte [ebp - 4], 0xb
mov dword [ebp + 0xc], esi
push 0xa8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.004fa223
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
lea ecx, [esi + 0xc]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [esi + 0x18], 7
mov dword [esi + 0x1c], 8
mov dword [esi], 0x3f800000
push dword [esi + 4]
mov byte [ebp - 4], 0xd
push 0x10
call fcn.004018e0
mov ecx, dword [ebp - 0x24]
mov dword [edi + 0x128], 0
test ecx, ecx
je 0x46cb39
mov edx, dword [ecx]
lea eax, [ebp - 0x48]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp + 0x34]
shr ebx, 5
not bl
mov dword [edi + 0x134], 0
and bl, 1
mov word [edi + 0x138], 0
mov byte [edi + 0x130], bl
mov byte [edi + 0x13a], 0
mov dword [edi + 0x13c], 0
mov dword [edi + 0x140], 0
mov dword [edi + 0x144], 0
test ecx, ecx
je 0x46cb97
mov edx, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x30