Function at 0x66b070
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7495db
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x857060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xd8], edx
mov ebx, ecx
mov dword [ebp - 0xdc], ebx
mov eax, dword [ebp + 8]
xor edi, edi
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xf4], eax
mov eax, ebx
jb 0x66b0ca
mov eax, dword [ebx]
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x66b0f6
mov edi, 4
mov eax, edi
jmp 0x66b53f
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
mov ecx, 4
push esi
cmove edi, ecx
mov dword [ebp - 0xfc], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xd8]
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [eax], esi
mov dword [eax + 4], ecx
test edi, edi
je 0x66b134
mov eax, edi
jmp 0x66b53f
test ecx, ecx
ja 0x66b2f2
jb 0x66b142
test esi, esi
jne 0x66b14c
mov eax, 4
jmp 0x66b53f
test ecx, ecx
ja 0x66b2f2
jb 0x66b15e
cmp esi, 0x100000
jae 0x66b174
mov dword [ebp - 0xd8], esi
mov dword [ebp - 0xd4], esi
mov esi, 1
jmp 0x66b382
test ecx, ecx
ja 0x66b2f2
jb 0x66b18a
cmp esi, 0xa00000
jae 0x66b233
mov eax, esi
mov dword [ebp - 0xd8], 0x19000
mov edx, 0xe147ae15
mov dword [ebp - 0xd4], 0x1000
mul edx
mov ebx, 0x47ae147a
mov dword [ebp - 0xe8], eax
mov edi, edx
mov eax, esi
mul ebx
mov ebx, eax
mov dword [ebp - 0xec], edx
mov eax, ecx
mov ecx, 0xe147ae15
mul ecx
mov ecx, eax
mov dword [ebp - 0x104], edx
mov eax, dword [ebp - 0x14]
mov edx, 0x47ae147a
mul edx
add ecx, edi
mov dword [ebp - 0xe4], edx
mov edx, dword [ebp - 0x104]
adc edx, 0
mov dword [ebp - 0xf0], eax
add ebx, ecx
mov ecx, dword [ebp - 0xec]
mov dword [ebp - 0x108], ebx
adc ecx, 0
xor eax, eax
add edx, ecx
mov ecx, dword [ebp - 0xf0]
adc eax, eax
add ecx, edx
mov edx, dword [ebp - 0xe4]
adc edx, eax
mov eax, dword [ebp - 0x14]
sub esi, ecx
sbb eax, edx
shrd esi, eax, 1
shr eax, 1
add esi, ecx
adc eax, edx
shrd esi, eax, 0x10
jmp 0x66b37b
test ecx, ecx
ja 0x66b2f2
jb 0x66b249
cmp esi, 0x6400000
jae 0x66b2f2
mov eax, esi
mov dword [ebp - 0xd8], 0xfa000
mov edx, 0x1a9fbe77
mov dword [ebp - 0xd4], 0x1000
mul edx
mov ebx, 0x624dd2f
mov dword [ebp - 0xe8], eax
mov edi, edx
mov eax, esi
mul ebx
mov ebx, eax
mov dword [ebp - 0xf0], edx
mov eax, ecx
mov ecx, 0x1a9fbe77
mul ecx
mov ecx, eax
mov dword [ebp - 0xe4], edx
mov eax, dword [ebp - 0x14]
mov edx, 0x624dd2f
mul edx
add ecx, edi
mov dword [ebp - 0x104], edx
mov edx, dword [ebp - 0xe4]
adc edx, 0
mov dword [ebp - 0xec], eax
add ebx, ecx
mov ecx, dword [ebp - 0xf0]
mov dword [ebp - 0xe8], ebx
adc ecx, 0
xor eax, eax
add edx, ecx
mov ecx, dword [ebp - 0xec]
adc eax, eax
add ecx, edx
mov edx, dword [ebp - 0x104]
adc edx, eax
mov eax, dword [ebp - 0x14]
sub esi, ecx
sbb eax, edx
shrd esi, eax, 1
shr eax, 1
add esi, ecx
adc eax, edx
shrd esi, eax, 0x13
jmp 0x66b37b
mov eax, esi
mov dword [ebp - 0xd8], 0x9c4000
mov edx, 0x3886594b
mov dword [ebp - 0xd4], 0x1000
mul edx
mov ebx, 0x346dc5d6
mov dword [ebp - 0xe8], eax
mov edi, edx
mov eax, esi
mul ebx
mov ebx, eax
mov dword [ebp - 0xf0], edx
mov eax, ecx
mov ecx, 0x3886594b
mul ecx
mov ecx, eax
mov dword [ebp - 0xe4], edx
mov eax, dword [ebp - 0x14]
mov edx, 0x346dc5d6
mul edx
add ecx, edi
mov dword [ebp - 0xec], edx
mov esi, eax
mov edx, dword [ebp - 0xe4]
adc edx, 0
add ebx, ecx
mov ecx, dword [ebp - 0xf0]
adc ecx, 0
mov dword [ebp - 0xe8], ebx
xor eax, eax
add edx, ecx
mov ecx, dword [ebp - 0xec]
adc eax, eax
add esi, edx
adc ecx, eax
shrd esi, ecx, 0x15
mov ebx, dword [ebp - 0xdc]
inc esi
mov edi, dword [ebp - 0xf4]
mov ecx, esi
imul ecx, dword [ebp - 0xd4]
mov eax, ecx
cdq
mov dword [edi], eax
lea eax, [ecx + 1]
mov dword [edi + 4], edx
push eax
call fcn.006d0f4b
mov ecx, dword [ebp - 0xf8]
add esp, 4
mov dword [ecx], eax
mov ecx, dword [edi]
inc ecx
push ecx
push 0
push eax
call fcn.006e9470
add esp, 0xc
lea eax, [ebp - 0xd0]
push 0xb8
push 0
push eax
call fcn.006e9470
add esp, 0xc
cmp dword [ebx + 0x14], 8
jb 0x66b3da
mov ebx, dword [ebx]
push 1
push 0x40
push 0x20
push ebx
lea ecx, [ebp - 0xd0]
call fcn.004c9420
xor edi, edi
mov dword [ebp - 4], 0
test esi, esi
jle 0x66b48a
mov eax, dword [ebp - 0xd4]
xor ebx, ebx
cdq
mov dword [ebp - 0xe4], eax
xor eax, eax
mov dword [ebp - 0xf4], edx
mov dword [ebp - 0xdc], eax
nop word [eax + eax]
push 0
cdq
lea ecx, [ebp - 0xd0]
push edx
push eax
call fcn.00501d90
mov eax, dword [ebp - 0xf8]
lea ecx, [ebp - 0xd0]
push dword [ebp - 0xf4]
push dword [ebp - 0xe4]
mov eax, dword [eax]
add eax, ebx
push eax
call fcn.00501e90
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax + 4]
mov eax, dword [ebp + eax - 0xc4]
shr eax, 2
test al, 1
jne 0x66b55b
mov eax, dword [ebp - 0xdc]
inc edi
add eax, dword [ebp - 0xd8]
add ebx, dword [ebp - 0xd4]
mov dword [ebp - 0xdc], eax
cmp edi, esi
jl 0x66b420
mov esi, dword [ebp - 0xfc]
lea ecx, [ebp - 0xc0]
call fcn.00449b70
test eax, eax
jne 0x66b4ca
mov eax, dword [ebp - 0xd0]
lea ecx, [ebp - 0xd0]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00429ca0
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0xd4], eax
lea ecx, [ebp - 0xc0]
call fcn.00447dd0
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xd0]
mov edx, dword [eax + 4]
lea ecx, [edx - 0x18]
mov dword [ebp + edx - 0xd4], ecx
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - 0x60], vtable.std::ios_base.0
call fcn.006c0c7d
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
mov esi, 4
jmp 0x66b490