Function at 0x1006a4e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xffffffe0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10158e0f
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x10
mov eax, 0x1478
call fcn.10128ba0
mov eax, dword [0x101c6474]
xor eax, ebp
mov dword [ebp - 0x24], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebx + 8]
lea ecx, [ebp - 0x1070]
mov dword [ebp - 0x13a4], edi
mov dword [ebp - 0x13d4], 0
push dword [ebx + 0x10]
mov dword [ebp - 0x13b8], edi
push dword [ebx + 0xc]
mov dword [ebp - 0x1070], 0
mov dword [ebp - 0x1060], 0
mov dword [ebp - 0x105c], 0
call fcn.1001bb90
mov dword [ebp - 4], 0
mov dword [ebp - 0x1490], 0x1018738c
mov dword [ebp - 0x1418], 0
mov dword [ebp - 0x13f8], 0
mov dword [ebp - 0x13f4], 0
mov dword [ebp - 0x13f0], 0
push 0
lea eax, [ebp - 0x1480]
mov byte [ebp - 4], 1
xorps xmm0, xmm0
mov dword [ebp - 0x13d4], 2
push eax
lea ecx, [ebp - 0x1420]
mov dword [ebp - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x1424], 0x58
movlpd qword [ebp - 0x1488], xmm0
call fcn.10038fe0
mov eax, dword [ebp - 0x1490]
mov dword [ebp - 4], 3
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1490]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x1494], eax
lea ecx, [ebp - 0x1480]
call fcn.10066b80
mov eax, dword [ebp - 0x1480]
lea ecx, [ebp - 0x1040]
push 0
push 0x1000
push ecx
lea ecx, [ebp - 0x1480]
mov byte [ebp - 4], 4
call dword [eax + 0x30]
cmp dword [ebp - 0x105c], 0x10
lea eax, [ebp - 0x1070]
cmovae eax, dword [ebp - 0x1070]
cmp dword [ebp - 0x1434], 0
jne 0x1006a70a
push 0x40
push 0x25
push eax
call fcn.10127cce
add esp, 0xc
test eax, eax
je 0x1006a70a
push 1
push eax
lea ecx, [ebp - 0x1480]
call fcn.100333a0
mov eax, dword [ebp - 0x144c]
mov esi, dword [eax + 4]
mov ecx, esi
mov dword [ebp - 0x13a4], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x13a8]
mov byte [ebp - 4], 5
push eax
call fcn.1002a140
add esp, 4
lea ecx, [ebp - 0x1480]
push eax
call fcn.10033490
mov byte [ebp - 4], 4
test esi, esi
je 0x1006a6da
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 8]
call eax
mov ecx, eax
test ecx, ecx
je 0x1006a6da
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp - 0x1490]
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, 4
cmp dword [ebp + ecx - 0x1458], edx
cmovne eax, edx
mov dword [ebp + ecx - 0x1484], eax
test dword [ebp + ecx - 0x1480], eax
jne 0x1006ac18
jmp 0x1006a776
mov eax, dword [ebp - 0x1490]
mov ecx, dword [eax + 4]
xor eax, eax
cmp dword [ebp + ecx - 0x1458], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ebp + ecx - 0x1484]
and eax, 0x17
mov dword [ebp + ecx - 0x1484], eax
mov ecx, dword [ebp + ecx - 0x1480]
and ecx, eax
je 0x1006a776
test cl, 4
je 0x1006a74e
mov esi, str.ios_base::badbit_set
jmp 0x1006a75e
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x13a8]
push 1
push eax
call fcn.1003b8f0
add esp, 8
push eax
push esi
jmp 0x1006ac2f
cmp dword [ebp - 0x1434], 0
jne 0x1006a8d0
xorps xmm0, xmm0
lea ecx, [ebp - 0x1058]
push 0x30
movlpd qword [ebp - 0x13a8], xmm0
call fcn.10017a70
movups xmm0, xmmword [str.File_could_not_be_opened_for_reading]
mov ecx, eax
mov dword [ebp - 0x1048], 0x24
mov dword [ebp - 0x1058], ecx
mov dword [ebp - 0x1044], 0x2f
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x101873a4]
movups xmmword [ecx + 0x10], xmm0
mov eax, dword [0x101873b4]
mov dword [ecx + 0x20], eax
mov byte [ecx + 0x24], 0
lea eax, [ebp - 0x1070]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x13b4]
push eax
call fcn.10062da0
add esp, 8
lea ecx, [ebp - 0x10a0]
push eax
lea eax, [ebp - 0x13a8]
push eax
lea eax, [ebp - 0x1058]
push eax
call fcn.10067910
push eax
mov ecx, edi
mov byte [edi + 0x30], 1
call fcn.10067850
lea ecx, [ebp - 0x10a0]
call fcn.1002df90
mov edi, dword [ebp - 0x13b0]
test edi, edi
je 0x1006a84e
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x1006a84e
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x1006a84e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebp - 0x1044]
cmp ecx, 0x10
jb 0x1006a888
mov edx, dword [ebp - 0x1058]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006a87e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006ac4b
push ecx
push edx
call fcn.10128206
add esp, 8
lea ecx, [ebp - 0x1490]
call fcn.10068a30
mov ecx, dword [ebp - 0x105c]
cmp ecx, 0x10
jb 0x1006ab7d
mov edx, dword [ebp - 0x1070]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006ab73
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006ac4b
jmp 0x1006ab73
lea eax, [ebp - 0x13d0]
push eax
lea ecx, [ebp - 0x1490]
call fcn.100768a0
mov ecx, dword [ebp - 0x13d0]
add ecx, dword [ebp - 0x13c8]
mov eax, dword [ebp - 0x13cc]
adc eax, dword [ebp - 0x13c4]
and ecx, eax
cmp ecx, 0xffffffff
jne 0x1006aa17
xorps xmm0, xmm0
lea ecx, [ebp - 0x1058]
push 0x20
movlpd qword [ebp - 0x13a8], xmm0
call fcn.10017a70
movups xmm0, xmmword [str.Could_not_determine_file_size]
mov ecx, eax
mov dword [ebp - 0x1048], 0x1d
mov dword [ebp - 0x1058], ecx
mov dword [ebp - 0x1044], 0x1f
movups xmmword [ecx], xmm0
movq xmm0, qword [0x101873cc]
movq qword [ecx + 0x10], xmm0
mov eax, dword [0x101873d4]
mov dword [ecx + 0x18], eax
mov al, byte [0x101873d8]
mov byte [ecx + 0x1c], al
mov byte [ecx + 0x1d], 0
lea eax, [ebp - 0x1070]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x13b4]
push eax
call fcn.10062da0
add esp, 8
lea ecx, [ebp - 0x10a0]
push eax
lea eax, [ebp - 0x13a8]
push eax
lea eax, [ebp - 0x1058]
push eax
call fcn.10067910
push eax
mov ecx, edi
mov byte [edi + 0x30], 1
call fcn.10067850
lea ecx, [ebp - 0x10a0]
call fcn.1002df90
mov edi, dword [ebp - 0x13b0]
test edi, edi
je 0x1006a9da
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x1006a9da
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x1006a9da
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebp - 0x1044]
cmp ecx, 0x10
jb 0x1006a888
mov edx, dword [ebp - 0x1058]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006a87e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006ac4b
jmp 0x1006a87e
push 0
push 0
push 0
lea ecx, [ebp - 0x1490]
call fcn.10076610
mov ecx, dword [ebp - 0x13d0]
mov esi, ecx
add esi, dword [ebp - 0x13c8]
mov eax, dword [ebp - 0x13cc]
adc eax, dword [ebp - 0x13c4]
test eax, eax
jg 0x1006aba1
jl 0x1006aa58
cmp esi, 0x200000
ja 0x1006aba1
xor eax, eax
xor esi, esi
xor edi, edi
mov dword [ebp - 0x104c], esi
mov dword [ebp - 0x13b0], eax
mov dword [ebp - 0x1048], eax
mov dword [ebp - 0x1044], edi
mov eax, dword [ebp - 0x13c8]
mov byte [ebp - 4], 8
lea edx, [eax + ecx]
mov dword [ebp - 0x13a4], edx
test edx, edx
mov edx, dword [ebp - 0x13cc]
je 0x1006aad5
lea eax, [ebp - 0x13a9]
push eax
push dword [ebp - 0x13a4]
lea ecx, [ebp - 0x104c]
call fcn.10061dd0
mov eax, dword [ebp - 0x1048]
mov edx, dword [ebp - 0x13cc]
mov ecx, dword [ebp - 0x13d0]
mov edi, dword [ebp - 0x1044]
mov esi, dword [ebp - 0x104c]
mov dword [ebp - 0x13b0], eax
mov eax, dword [ebp - 0x13c8]
add ecx, eax
adc edx, dword [ebp - 0x13c4]
push edx
push ecx
push esi
lea ecx, [ebp - 0x1490]
call fcn.10075a00
mov eax, dword [ebp - 0x13b0]
lea ecx, [ebp - 0x1070]
push ecx
sub eax, esi
push eax
push esi
push dword [ebp - 0x13b8]
call fcn.1006b2c0
add esp, 0x10
test esi, esi
je 0x1006ab38
sub edi, esi
mov eax, esi
cmp edi, 0x1000
jb 0x1006ab2e
mov esi, dword [eax - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006ac4b
push edi
push esi
call fcn.10128206
add esp, 8
lea ecx, [ebp - 0x1490]
call fcn.10068a30
mov ecx, dword [ebp - 0x105c]
cmp ecx, 0x10
jb 0x1006ab7d
mov edx, dword [ebp - 0x1070]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1006ab73
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006ac4b
push ecx
push edx
call fcn.10128206
add esp, 8
mov eax, dword [ebp - 0x13b8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.10128533
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea eax, [ebp - 0x1070]
push eax
lea eax, [ebp - 0x1490]
push eax
lea ecx, [ebp - 0x13a0]
call fcn.10060380
push eax
push edi
mov byte [ebp - 4], 9
call fcn.1006a330
add esp, 8
cmp byte [ebp - 0x10a8], 0
je 0x1006abdc
lea ecx, [ebp - 0x10d8]
call fcn.1002df90
mov edi, dword [ebp - 0x10dc]
test edi, edi
je 0x1006a888
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x1006a888
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x1006a888
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x1006a888
lea eax, [ebp - 0x13a8]
push 1
push eax
call fcn.1003b8f0
add esp, 8
push eax
push str.ios_base::badbit_set
lea ecx, [ebp - 0x1054]
call fcn.1002c5a0
push 0x101ba5bc
lea eax, [ebp - 0x1054]
push eax
call fcn.1012a64c
call fcn.1012e26f
int3