Function at 0x42f5e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4878e5
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4aeda0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x40]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [ebp], 0x49ee74
mov dword [ebp + 0x58], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [esp + 0x38], ebx
mov eax, dword [ebp]
mov ecx, dword [eax + 4]
mov dword [ecx + ebp], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov edx, dword [ebp]
mov dword [ebp + 4], ebx
mov edi, dword [edx + 4]
add edi, ebp
push ebx
push ebx
mov ecx, edi
mov dword [esp + 0x20], 1
mov dword [edi + 0x24], ebx
mov dword [edi + 4], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], 0x201
mov dword [edi + 0x14], 6
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
call fcn.0040d5b2
push 4
call fcn.0045077b
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x42f6b1
call fcn.0044f58d
mov dword [esi], eax
call fcn.0044f3bb
push ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], eax
call fcn.0044f2df
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jae 0x42f6a6
inc eax
mov dword [ecx + 4], eax
lea ecx, [esp + 0x20]
call fcn.0044f307
jmp 0x42f6b3
xor esi, esi
lea eax, [ebp + 8]
mov dword [edi + 0x28], eax
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
mov dword [edi + 0x24], esi
mov dword [edi + 0x2c], ebx
call fcn.0040cf53
push eax
mov dword [esp + 0x3c], 2
call fcn.0040ce78
mov dword [esp + 0x30], eax
mov byte [esp + 0x3c], 1
mov eax, dword [esp + 0x20]
add esp, 4
cmp eax, ebx
je 0x42f731
mov esi, eax
push ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x28], esi
call fcn.0044f2df
mov eax, dword [esi + 4]
cmp eax, ebx
jbe 0x42f70d
cmp eax, 0xffffffff
jae 0x42f70d
dec eax
mov dword [esi + 4], eax
mov esi, dword [esi + 4]
neg esi
sbb esi, esi
not esi
and esi, dword [esp + 0x24]
lea ecx, [esp + 0x28]
call fcn.0044f307
cmp esi, ebx
je 0x42f731
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
push 0x20
call eax
mov word [edi + 0x30], ax
cmp dword [edi + 0x28], ebx
jne 0x42f759
mov eax, dword [edi + 8]
or eax, 4
or eax, 4
push ebx
push eax
mov ecx, edi
call fcn.0040d5b2
mov dword [edi + 4], ebx
mov dword [esp + 0x38], 3
mov ecx, dword [ebp]
mov edx, dword [ecx + 4]
lea esi, [ebp + 8]
mov dword [edx + ebp], vtable.std::basic_ifstream_wchar_t__struct_std::char_traits_wchar_t__.0
lea ecx, [esi + 4]
mov dword [esp + 0x24], esi
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0044f0e2
push 4
mov byte [esp + 0x3c], 4
call fcn.0045077b
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x42f7d0
call fcn.0044f58d
mov dword [edi], eax
call fcn.0044f3bb
push ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], eax
call fcn.0044f2df
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jae 0x42f7c5
inc eax
mov dword [ecx + 4], eax
lea ecx, [esp + 0x28]
call fcn.0044f307
jmp 0x42f7d2
xor edi, edi
mov dword [esi + 0x38], edi
lea edi, [esi + 0x1c]
mov dword [esi + 0x24], edi
lea edi, [esi + 0x28]
mov dword [esi + 0x30], edi
lea ecx, [esi + 8]
mov dword [esi + 0x10], ecx
lea eax, [esi + 0xc]
lea edx, [esi + 0x18]
mov dword [esi + 0x20], edx
lea edi, [esi + 0x2c]
mov dword [esi + 0x34], edi
mov dword [eax], ebx
mov edi, dword [esi + 0x24]
mov dword [edi], ebx
mov edi, dword [esi + 0x34]
mov dword [edi], ebx
mov edi, dword [esi + 0x10]
mov dword [edi], ebx
mov edi, dword [esi + 0x20]
mov dword [edi], ebx
mov edi, dword [esi + 0x30]
mov dword [edi], ebx
mov dword [esi + 0x10], ecx
lea ecx, [esi + 0x1c]
mov dword [esi + 0x24], ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], edx
mov dword [esi], vtable.std::basic_filebuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x42], bl
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea ecx, [esi + 0x2c]
mov dword [esi + 0x34], ecx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov edx, dword [0x4b335c]
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov eax, dword [esp + 0x44]
push eax
lea esi, [ebp + 8]
mov byte [esp + 0x3c], 5
call fcn.0042fa70
test eax, eax
jne 0x42f896
mov ecx, dword [ebp]
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + ebp + 8]
add ecx, ebp
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x42f88f
or eax, 4
push ebx
push eax
call fcn.0040d5b2
mov eax, ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8