Function at 0x1000a2a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003bfee
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [0x10051114]
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 eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x188], ecx
test eax, eax
je 0x1000a559
test ecx, ecx
je 0x1000a559
push 0xfde9
push eax
lea ecx, [ebp - 0x17c]
call fcn.100049a0
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push dword [ebp - 0x17c]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x180], eax
cmp eax, 0xffffffff
jne 0x1000a32f
xor edi, edi
jmp 0x1000a53c
sub esp, 0x28
lea ecx, [ebp - 0x180]
mov eax, esp
mov dword [eax + 4], ecx
lea ecx, [ebp - 0x78]
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__lambda_32bdb6063843e213dfd2df433bac490c___void___.0
mov dword [eax + 0x24], eax
call fcn.10009e70
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x184]
push 0
push eax
push 0xd
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 1
push eax
push dword [ebp - 0x180]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
mov word [ebp - 0x14], 0
mov dword [ebp - 0x184], 0
call edi
test eax, eax
je 0x1000a532
mov ecx, str.version_1.0.0
lea eax, [ebp - 0x20]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1000a3c0
test dl, dl
je 0x1000a3bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1000a3c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x1000a3a0
xor eax, eax
jmp 0x1000a3c5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1000a532
push eax
lea eax, [ebp - 0x184]
xorps xmm0, xmm0
push eax
push 8
lea eax, [ebp - 0x198]
movlpd qword [ebp - 0x198], xmm0
push eax
push dword [ebp - 0x180]
call edi
push dword [ebp - 0x198]
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
call esi
push dword [ebp - 0x194]
mov ebx, eax
call esi
lea ecx, [ebx + 1]
push 0x1005cdd6
push ecx
call fcn.10017974
mov esi, eax
add esp, 8
mov dword [ebp - 0x190], esi
mov byte [ebp - 4], 2
mov byte [esi + ebx], 0
test esi, esi
je 0x1000a521
push 0
lea eax, [ebp - 0x184]
push eax
push ebx
push esi
push dword [ebp - 0x180]
call edi
test eax, eax
je 0x1000a521
push dword [ebp - 0x17c]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x24
push str.46C39CC1_022B_49a9_BD64_AE6C63679C89
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x18c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
call fcn.10004790
push esi
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.10009e30
lea eax, [ebp - 0x18c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.10004c90
add esp, 0xc
lea ecx, [ebp - 0x50]
mov edi, eax
call fcn.100046e0
lea ecx, [ebp - 0x38]
call fcn.100046e0
test edi, edi
je 0x1000a521
lea eax, [ebp - 0x1a0]
push eax
push dword [ebp - 0x180]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ecx, dword [ebp - 0x188]
lea eax, [ebx + 0x15]
cdq
mov dword [ecx], eax
mov eax, dword [ebp - 0x18c]
mov dword [ecx + 4], edx
cdq
mov ecx, eax
mov edi, edx
mov eax, dword [ebp - 0x188]
mov dword [eax + 0xc], edi
mov dword [eax + 8], ecx
mov eax, ebx
cdq
sub ecx, eax
mov eax, dword [ebp - 0x188]
sbb edi, edx
add ecx, dword [ebp - 0x1a0]
adc edi, dword [ebp - 0x19c]
mov dword [eax + 0x14], edi
mov edi, 1
mov dword [eax + 0x10], ecx
jmp 0x1000a523
xor edi, edi
test esi, esi
je 0x1000a534
push esi
call fcn.1001792e
add esp, 4
jmp 0x1000a534
xor edi, edi
lea ecx, [ebp - 0x78]
call fcn.10009f30
mov eax, dword [ebp - 0x17c]
lea ecx, [ebp - 0x178]
cmp eax, ecx
je 0x1000a555
push eax
call fcn.100231d9
add esp, 4
mov eax, edi
jmp 0x1000a55b
xor eax, eax
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.100178b1
mov esp, ebp
pop ebp
ret 8