Function at 0x100164f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006a29e
mov eax, dword fs:[0]
push eax
sub esp, 0x188
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 ebx, dword [ebp + 0xc]
test eax, eax
je 0x100167c7
test ebx, ebx
je 0x100167c7
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 0x10016579
xor edi, edi
jmp 0x100167aa
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_c3a1494a09efa4a36e199b1bb79774da___void___.0
mov dword [eax + 0x24], eax
call fcn.100163c0
mov esi, 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 esi
test eax, eax
je 0x100167a0
mov ecx, str.version_1.0.0
lea eax, [ebp - 0x20]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10016608
test dl, dl
je 0x10016604
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10016608
add eax, 2
add ecx, 2
test dl, dl
jne 0x100165e8
xor eax, eax
jmp 0x1001660d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100167a0
push eax
lea eax, [ebp - 0x184]
xorps xmm0, xmm0
push eax
push 8
lea eax, [ebp - 0x194]
movlpd qword [ebp - 0x194], xmm0
push eax
push dword [ebp - 0x180]
call esi
push dword [ebp - 0x194]
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
call esi
push dword [ebp - 0x190]
mov edi, eax
call esi
lea ecx, [edi + 1]
push 0x1008d350
push ecx
call fcn.10026ab7
mov esi, eax
add esp, 8
mov dword [ebp - 0x18c], esi
mov byte [ebp - 4], 2
mov byte [esi + edi], 0
test esi, esi
je 0x1001678f
push 0
lea eax, [ebp - 0x184]
push eax
push edi
push esi
push dword [ebp - 0x180]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001678f
push dword [ebp - 0x17c]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push str._vip
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
push 0x24
push str.46C39CC1_022B_49a9_BD64_AE6C63679C89
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x188], 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 - 0x188]
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]
mov byte [ebp - 4], 2
call fcn.10004ef0
test edi, edi
je 0x1001678f
mov eax, dword [ebp - 0x188]
cmp eax, dword [ebp + 0x10]
jg 0x1001678f
push 0x24
push str.46C39CC1_022B_49a9_BD64_AE6C63679C89
lea ecx, [ebp - 0x38]
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], 5
call fcn.10016380
push dword [ebp - 0x188]
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 6
push ebx
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.10005350
add esp, 0x10
lea ecx, [ebp - 0x50]
mov edi, eax
call fcn.10004ef0
lea ecx, [ebp - 0x38]
call fcn.10004ef0
test edi, edi
je 0x1001678f
mov edi, 1
jmp 0x10016791
xor edi, edi
test esi, esi
je 0x100167a2
push esi
call fcn.1002653e
add esp, 4
jmp 0x100167a2
xor edi, edi
lea ecx, [ebp - 0x78]
call fcn.10016480
mov eax, dword [ebp - 0x17c]
lea ecx, [ebp - 0x178]
cmp eax, ecx
je 0x100167c3
push eax
call fcn.10046fa0
add esp, 4
mov eax, edi
jmp 0x100167c9
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 0xc