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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006a2fe
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [0x100891f4]
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 0x10016aa9
test ecx, ecx
je 0x10016aa9
push 0xfde9
push eax
lea ecx, [ebp - 0x17c]
call fcn.10005150
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 0x1001687f
xor edi, edi
jmp 0x10016a8c
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.100163c0
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 0x10016a82
mov ecx, str.version_1.0.0
lea eax, [ebp - 0x20]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10016910
test dl, dl
je 0x1001690c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10016910
add eax, 2
add ecx, 2
test dl, dl
jne 0x100168f0
xor eax, eax
jmp 0x10016915
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10016a82
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 0x1008d350
push ecx
call fcn.10026ab7
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 0x10016a71
push 0
lea eax, [ebp - 0x184]
push eax
push ebx
push esi
push dword [ebp - 0x180]
call edi
test eax, eax
je 0x10016a71
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.10004f40
push esi
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.10016380
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.10005440
add esp, 0xc
lea ecx, [ebp - 0x50]
mov edi, eax
call fcn.10004ef0
lea ecx, [ebp - 0x38]
call fcn.10004ef0
test edi, edi
je 0x10016a71
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 0x10016a73
xor edi, edi
test esi, esi
je 0x10016a84
push esi
call fcn.1002653e
add esp, 4
jmp 0x10016a84
xor edi, edi
lea ecx, [ebp - 0x78]
call fcn.10016480
mov eax, dword [ebp - 0x17c]
lea ecx, [ebp - 0x178]
cmp eax, ecx
je 0x10016aa5
push eax
call fcn.10046fa0
add esp, 4
mov eax, edi
jmp 0x10016aab
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.100264cc
mov esp, ebp
pop ebp
ret 8