Function at 0x10101620
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10184ea0
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x101e42fc]
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 - 0xe0], edx
mov ebx, ecx
mov dword [ebp - 0xe4], ebx
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xd4], 0
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0xf0], eax
mov eax, ebx
jb 0x10101684
mov eax, dword [ebx]
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x101016b0
mov edi, 4
mov eax, edi
jmp 0x10101bbe
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 - 0xf8], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xe0]
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [eax], esi
mov dword [eax + 4], ecx
test edi, edi
je 0x101016ee
mov eax, edi
jmp 0x10101bbe
test ecx, ecx
ja 0x101018ac
jb 0x101016fc
test esi, esi
jne 0x10101706
mov eax, 4
jmp 0x10101bbe
test ecx, ecx
ja 0x101018ac
jb 0x10101718
cmp esi, 0x100000
jae 0x1010172e
mov dword [ebp - 0xe0], esi
mov dword [ebp - 0xdc], esi
mov esi, 1
jmp 0x1010193c
test ecx, ecx
ja 0x101018ac
jb 0x10101744
cmp esi, 0xa00000
jae 0x101017ed
mov eax, esi
mov dword [ebp - 0xe0], 0x19000
mov edx, 0xe147ae15
mov dword [ebp - 0xdc], 0x1000
mul edx
mov ebx, 0x47ae147a
mov dword [ebp - 0xd8], eax
mov edi, edx
mov eax, esi
mul ebx
mov ebx, eax
mov dword [ebp - 0xe8], edx
mov eax, ecx
mov ecx, 0xe147ae15
mul ecx
mov ecx, eax
mov dword [ebp - 0xfc], edx
mov eax, dword [ebp - 0x14]
mov edx, 0x47ae147a
mul edx
add ecx, edi
mov dword [ebp - 0xd4], edx
mov edx, dword [ebp - 0xfc]
adc edx, 0
mov dword [ebp - 0xec], eax
add ebx, ecx
mov ecx, dword [ebp - 0xe8]
mov dword [ebp - 0x100], 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 - 0xd4]
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 0x10101935
test ecx, ecx
ja 0x101018ac
jb 0x10101803
cmp esi, 0x6400000
jae 0x101018ac
mov eax, esi
mov dword [ebp - 0xe0], 0xfa000
mov edx, 0x1a9fbe77
mov dword [ebp - 0xdc], 0x1000
mul edx
mov ebx, 0x624dd2f
mov dword [ebp - 0xd8], eax
mov edi, edx
mov eax, esi
mul ebx
mov ebx, eax
mov dword [ebp - 0xec], edx
mov eax, ecx
mov ecx, 0x1a9fbe77
mul ecx
mov ecx, eax
mov dword [ebp - 0xd4], edx
mov eax, dword [ebp - 0x14]
mov edx, 0x624dd2f
mul edx
add ecx, edi
mov dword [ebp - 0xfc], edx
mov edx, dword [ebp - 0xd4]
adc edx, 0
mov dword [ebp - 0xe8], eax
add ebx, ecx
mov ecx, dword [ebp - 0xec]
mov dword [ebp - 0xd8], ebx
adc ecx, 0
xor eax, eax
add edx, ecx
mov ecx, dword [ebp - 0xe8]
adc eax, eax
add ecx, edx
mov edx, dword [ebp - 0xfc]
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 0x10101935
mov eax, esi
mov dword [ebp - 0xe0], 0x9c4000
mov edx, 0x3886594b
mov dword [ebp - 0xdc], 0x1000
mul edx
mov ebx, 0x346dc5d6
mov dword [ebp - 0xd8], eax
mov edi, edx
mov eax, esi
mul ebx
mov ebx, eax
mov dword [ebp - 0xec], edx
mov eax, ecx
mov ecx, 0x3886594b
mul ecx
mov ecx, eax
mov dword [ebp - 0xd4], edx
mov eax, dword [ebp - 0x14]
mov edx, 0x346dc5d6
mul edx
add ecx, edi
mov dword [ebp - 0xe8], edx
mov esi, eax
mov edx, dword [ebp - 0xd4]
adc edx, 0
add ebx, ecx
mov ecx, dword [ebp - 0xec]
adc ecx, 0
mov dword [ebp - 0xd8], ebx
xor eax, eax
add edx, ecx
mov ecx, dword [ebp - 0xe8]
adc eax, eax
add esi, edx
adc ecx, eax
shrd esi, ecx, 0x15
mov ebx, dword [ebp - 0xe4]
inc esi
mov edi, dword [ebp - 0xf0]
mov ecx, esi
imul ecx, dword [ebp - 0xdc]
mov eax, ecx
cdq
mov dword [edi], eax
lea eax, [ecx + 1]
mov dword [edi + 4], edx
push eax
call fcn.1014d543
mov ecx, dword [ebp - 0xf4]
add esp, 4
mov dword [ecx], eax
mov ecx, dword [edi]
inc ecx
push ecx
push 0
push eax
call fcn.10150b00
add esp, 0xc
lea eax, [ebp - 0xd0]
push 0xb8
push 0
push eax
call fcn.10150b00
add esp, 0xc
cmp dword [ebx + 0x14], 8
jb 0x10101994
mov ebx, dword [ebx]
mov dword [ebp - 0xd0], 0x101ca114
mov dword [ebp - 4], 0
lea eax, [ebp - 0xc0]
push 0
xorps xmm0, xmm0
mov dword [ebp - 0xd4], 1
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x64], 0x58
movlpd qword [ebp - 0xc8], xmm0
call fcn.100e8c60
mov dword [ebp - 4], 2
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.100e8b90
push 0
push 0
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xc0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
call fcn.101055d0
push 0x40
push 0x21
push ebx
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 3
call fcn.101057b0
test eax, eax
jne 0x10101a6e
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.100e5250
xor edi, edi
mov dword [ebp - 4], 4
test esi, esi
jle 0x10101b09
mov eax, dword [ebp - 0xdc]
xor ebx, ebx
cdq
mov dword [ebp - 0xd4], eax
xor eax, eax
mov dword [ebp - 0xf0], edx
mov dword [ebp - 0xe4], eax
nop dword [eax]
push ecx
cdq
lea ecx, [ebp - 0xd0]
push edx
push eax
call fcn.10104050
mov eax, dword [ebp - 0xf4]
lea ecx, [ebp - 0xd0]
push dword [ebp - 0xf0]
push dword [ebp - 0xd4]
mov eax, dword [eax]
add eax, ebx
push eax
call fcn.10104150
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax + 4]
mov eax, dword [ebp + eax - 0xc4]
shr eax, 2
test al, 1
jne 0x10101bda
mov eax, dword [ebp - 0xe4]
inc edi
add eax, dword [ebp - 0xe0]
add ebx, dword [ebp - 0xdc]
mov dword [ebp - 0xe4], eax
cmp edi, esi
jl 0x10101aa0
mov esi, dword [ebp - 0xf8]
lea ecx, [ebp - 0xc0]
call fcn.101056e0
test eax, eax
jne 0x10101b49
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.100e5250
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.101038a0
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], 5
push eax
mov dword [ebp - 0x60], vtable.std::ios_base.0
call fcn.1014bf6e
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.1014d1d5
mov esp, ebp
pop ebp
ret
mov esi, 4
jmp 0x10101b0f