Function at 0x4a2c90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52ff02
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5ba11c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], 0
mov dword [edi], 0x5862b8
mov dword [edi + 0x70], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], 0
mov eax, dword [edi]
mov dword [ebp - 0x14], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
mov dword [ebp - 0x18], esi
call fcn.00455520
mov eax, dword [esi + 0x30]
lea ebx, [edi + 0x10]
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], 0
mov dword [ebp - 4], 2
mov esi, dword [eax + 4]
mov ecx, esi
mov dword [ebp - 0x1c], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 3
push eax
call fcn.00473c50
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
call dword [edx + 0x30]
movzx eax, ax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 4
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 8]
test eax, eax
je 0x4a2d78
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
cmp dword [ecx + 0x38], 0
mov word [ecx + 0x40], ax
jne 0x4a2d9a
mov eax, dword [ecx + 0xc]
or eax, 4
push 0
push eax
call fcn.004554a0
mov dword [ebp - 4], 5
mov eax, dword [edi]
push 8
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ifstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + edi - 4], eax
mov dword [ebx], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004eb06d
mov esi, eax
push 1
mov byte [ebp - 4], 6
call fcn.004d16e6
mov dword [esi + 4], eax
lea ecx, [edi + 0x10]
mov dword [ecx + 0x34], esi
lea edi, [ecx + 0x14]
mov dword [ecx + 0x1c], edi
lea ebx, [ecx + 4]
mov edi, dword [ebp - 0x10]
lea esi, [ecx + 0x18]
mov dword [ecx + 0xc], ebx
lea edx, [ecx + 0x24]
mov dword [ecx + 0x20], esi
lea eax, [ecx + 8]
mov dword [ecx + 0x2c], edx
add ecx, 0x28
mov dword [edi + 0x40], ecx
mov dword [eax], 0
mov eax, edi
mov eax, dword [eax + 0x30]
mov dword [eax], 0
mov eax, edi
mov eax, dword [eax + 0x40]
mov dword [eax], 0
mov eax, edi
mov eax, dword [eax + 0x1c]
mov dword [eax], 0
mov eax, edi
mov eax, dword [eax + 0x2c]
mov dword [eax], 0
mov eax, edi
mov eax, dword [eax + 0x3c]
mov dword [eax], 0
mov dword [edi + 0x1c], ebx
lea ebx, [edi + 0x10]
mov dword [edi + 0x10], vtable.std::basic_filebuf_wchar_t__struct_std::char_traits_wchar_t__.0
lea eax, [ebx + 8]
mov dword [ebx + 0x10], eax
mov byte [edi + 0x58], 0
mov byte [edi + 0x4e], 0
lea edi, [ebx + 0x14]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], esi
mov dword [ebx + 0x2c], edx
mov dword [ebx + 0x30], ecx
mov dword [eax], 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, dword [0x5c4ab4]
mov dword [ebx + 0x40], eax
mov eax, dword [0x5c4ab8]
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x38], 0
push 0x40
mov byte [ebp - 4], 7
push 1
push dword [ebp + 8]
call fcn.004d3929
add esp, 0x14
test eax, eax
je 0x4a2f53
push 1
push eax
mov ecx, ebx
call fcn.004a1810
mov eax, dword [ebx + 0x34]
mov byte [ebp - 4], 8
mov esi, dword [eax + 4]
mov ecx, esi
mov dword [ebp - 0x1c], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 9
push eax
call fcn.004a1c90
mov edi, eax
add esp, 4
mov ecx, edi
mov edx, dword [edi]
mov edx, dword [edx + 0xc]
call edx
test al, al
je 0x4a2f19
mov dword [ebx + 0x38], 0
jmp 0x4a2f23
mov ecx, ebx
mov dword [ebx + 0x38], edi
call fcn.00471010
mov byte [ebp - 4], 0xa
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 8]
test eax, eax
je 0x4a2f3c
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [ebp - 0x10]
push 0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
xor eax, eax
add ecx, ebx
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.004554a0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10