Function at 0x10009fa0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003bf7e
mov eax, dword fs:[0]
push eax
sub esp, 0x188
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 ebx, dword [ebp + 0xc]
test eax, eax
je 0x1000a277
test ebx, ebx
je 0x1000a277
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 0x1000a029
xor edi, edi
jmp 0x1000a25a
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.10009e70
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 0x1000a250
mov ecx, str.version_1.0.0
lea eax, [ebp - 0x20]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1000a0b8
test dl, dl
je 0x1000a0b4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1000a0b8
add eax, 2
add ecx, 2
test dl, dl
jne 0x1000a098
xor eax, eax
jmp 0x1000a0bd
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1000a250
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 0x1005cdd6
push ecx
call fcn.10017974
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 0x1000a23f
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 0x1000a23f
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.10004790
push esi
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.10009e30
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.10004c90
add esp, 0xc
lea ecx, [ebp - 0x50]
mov edi, eax
call fcn.100046e0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.100046e0
test edi, edi
je 0x1000a23f
mov eax, dword [ebp - 0x188]
cmp eax, dword [ebp + 0x10]
jg 0x1000a23f
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.10004790
push esi
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 5
call fcn.10009e30
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.10004ba0
add esp, 0x10
lea ecx, [ebp - 0x50]
mov edi, eax
call fcn.100046e0
lea ecx, [ebp - 0x38]
call fcn.100046e0
test edi, edi
je 0x1000a23f
mov edi, 1
jmp 0x1000a241
xor edi, edi
test esi, esi
je 0x1000a252
push esi
call fcn.1001792e
add esp, 4
jmp 0x1000a252
xor edi, edi
lea ecx, [ebp - 0x78]
call fcn.10009f30
mov eax, dword [ebp - 0x17c]
lea ecx, [ebp - 0x178]
cmp eax, ecx
je 0x1000a273
push eax
call fcn.100231d9
add esp, 4
mov eax, edi
jmp 0x1000a279
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 0xc