Function at 0x100634b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [0x101b9014]
xor eax, ebp
mov dword [esp + 0xa8], eax
test edi, edi
je 0x100634f2
cmp byte [edi + 0xb], 0
js 0x100634e6
mov byte [edi], 0
mov byte [edi + 0xb], 0
jmp 0x100634f2
mov eax, dword [edi]
mov byte [eax], 0
mov dword [edi + 4], 0
mov ecx, esi
call fcn.10062e80
test al, al
jne 0x10063524
push 0x1019d788
push esi
call fcn.1007f000
add esp, 8
test eax, eax
je 0x10063524
mov ebx, eax
test edi, edi
je 0x10063537
cmp byte [edi + 0xb], 0
js 0x1006352b
mov byte [edi], 0
mov byte [edi + 0xb], 0
jmp 0x10063537
xor ebx, ebx
jmp 0x10063743
mov eax, dword [edi]
mov byte [eax], 0
mov dword [edi + 4], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
push 0
push 0
push ebx
call fcn.10160ffa
add esp, 0xc
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x90], xmm0
movdqa xmmword [esp + 0x80], xmm0
movdqa xmmword [esp + 0x70], xmm0
movdqa xmmword [esp + 0x60], xmm0
lea esi, [esp + 0x20]
push 0x48
push str....._base_files_file_util.cc
push str.ReadStreamToSpanWithMaxSize
push esi
call fcn.10065960
add esp, 0x10
lea ecx, [esp + 0x60]
push 0
push 0
push esi
call fcn.100bcee0
test byte [0x101bacd0], 0x19
jne 0x10063766
mov edi, dword [ebp + 0x10]
pxor xmm0, xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
mov dword [esp + 0x50], 0
push ebx
call fcn.10158acd
add esp, 4
push eax
call fcn.1015927a
add esp, 4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x10063609
mov eax, dword [esp + 0x44]
xor ecx, ecx
mov edx, eax
neg edx
sbb ecx, dword [esp + 0x40]
mov esi, 0xffff
cmovl esi, eax
jmp 0x1006360e
mov esi, 0xffff
cmp esi, edi
cmovae esi, edi
inc esi
lea edi, [esp + 0x10]
mov ecx, edi
push 0
push esi
call fcn.10056770
cmp byte [esp + 0x1b], 0
jns 0x1006362d
mov edi, dword [esp + 0x10]
mov dword [esp + 8], ebx
push ebx
push esi
push 1
push edi
call fcn.10160df7
add esp, 0x10
test eax, eax
je 0x100636ad
xor edi, edi
jmp 0x10063668
add edi, ebx
push dword [esp + 8]
push esi
push 1
push edi
call fcn.10160df7
add esp, 0x10
mov edi, ebx
test eax, eax
je 0x100636af
mov ecx, dword [ebp + 0x10]
sub ecx, edi
cmp ecx, eax
jb 0x100636c6
mov ebx, eax
add ebx, edi
push dword [esp + 8]
call fcn.1016098e
add esp, 4
test eax, eax
jne 0x100636af
test edi, edi
mov eax, 0x10000
cmove esi, eax
lea eax, [esi + ebx]
lea edi, [esp + 0x10]
mov ecx, edi
push 0
push eax
call fcn.10056770
cmp byte [esp + 0x1b], 0
jns 0x10063650
mov edi, dword [esp + 0x10]
jmp 0x10063650
xor ebx, ebx
push dword [esp + 8]
call fcn.101609ba
add esp, 4
test eax, eax
sete al
mov dword [esp + 0xc], eax
jmp 0x100636d1
mov dword [esp + 0xc], 0
mov ebx, dword [ebp + 0x10]
lea ecx, [esp + 0x10]
push 0
push ebx
call fcn.10056770
test byte [0x101bacd0], 0x19
mov edi, dword [ebp + 0xc]
jne 0x1006379e
lea ecx, [esp + 0x60]
call fcn.100bd410
test edi, edi
mov ebx, dword [esp + 8]
je 0x1006375b
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov eax, dword [edi + 8]
mov esi, dword [esp + 0x18]
mov dword [edi + 8], esi
movq xmm0, qword [esp + 0x10]
movq qword [edi], xmm0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
shr eax, 0x18
test al, al
jns 0x10063736
push dword [esp + 0x10]
call fcn.10145bd4
add esp, 4
push ebx
call fcn.10160839
add esp, 4
mov ebx, dword [esp + 0xc]
mov ecx, dword [esp + 0xa8]
xor ecx, ebp
call fcn.101465a3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx eax, byte [esp + 0x1b]
test al, al
jns 0x10063736
jmp 0x1006372a
mov dword [esp + 0x54], esi
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
sub esp, 8
movq xmm0, qword [esp + 0x60]
movq qword [esp], xmm0
lea edx, [esp + 0x5c]
mov ecx, str.ScopedBlockingCall
call fcn.10079ed0
add esp, 8
jmp 0x100635b2
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
sub esp, 0x18
movq xmm0, qword [esp + 0x38]
movq qword [esp + 0x10], xmm0
mov dword [esp + 0xc], 0x10178420
mov dword [esp + 8], 0x1019dfb6
mov dword [esp + 4], 0x101bacd0
mov dword [esp], 0x45
call fcn.1003beb0
add esp, 0x18
jmp 0x100636ed