Function at 0x10007860
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016d628
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x101cfe2c]
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 ecx, dword [ebp + 0xc]
mov dword [ebp - 0x264], ecx
lea eax, [ebp - 0x260]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea edi, [esi + 1]
cmp eax, 0xffffffff
je 0x100078c2
test byte [ebp - 0x260], 0x10
cmovne esi, edi
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
je 0x1000791c
push str.THis_is_a_folder_n
call fcn.10007b80
add esp, 4
xor bl, bl
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x100078fe
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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.101481ae
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
sub edi, dword [eax - 4]
mov ecx, dword [eax - 8]
or ecx, edi
jge 0x10007936
push 0
lea ecx, [ebp + 8]
call fcn.10007680
mov eax, dword [ebp + 8]
push 0x1017bc8c
push eax
call fcn.1014df5e
mov ebx, eax
add esp, 8
mov dword [ebp - 0x27c], ebx
test ebx, ebx
je 0x100078da
push 2
push 0
push ebx
call fcn.1014e631
push ebx
call fcn.1014ec4c
push ebx
mov dword [ebp - 0x274], eax
call fcn.1014eed5
mov eax, dword [ebp - 0x264]
add esp, 0x14
mov edx, dword [ebp + 8]
mov edi, dword [eax]
lea esi, [edx - 0x10]
sub edi, 0x10
cmp esi, edi
je 0x10007a23
cmp dword [edi + 0xc], 0
jl 0x10007a12
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x10007a12
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x100079b1
cmp ecx, dword [esi]
jne 0x100079b1
lock inc dword [eax]
jmp 0x100079ec
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov edx, eax
mov dword [ebp - 0x268], edx
test edx, edx
je 0x10007b07
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
lea eax, [esi + 0x10]
mov ecx, dword [esi + 4]
inc ecx
push ecx
push eax
push ecx
lea eax, [edx + 0x10]
push eax
call fcn.10007570
mov esi, dword [ebp - 0x268]
add esp, 0x10
or eax, 0xffffffff
lea ecx, [edi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10007a03
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x264]
lea eax, [esi + 0x10]
mov dword [ecx], eax
mov eax, ecx
jmp 0x10007a23
push dword [edx - 0xc]
mov ecx, eax
push edx
call fcn.10007720
mov eax, dword [ebp - 0x264]
mov esi, dword [ebp - 0x274]
xor edi, edi
mov dword [eax + 4], esi
add eax, 0xc
push eax
push esi
mov ecx, eax
mov dword [ebp - 0x26c], edi
mov dword [ebp - 0x268], edi
mov dword [ebp - 0x270], eax
call fcn.100073f0
mov eax, dword [ebp - 0x270]
push ebx
push esi
push 1
push dword [eax]
call fcn.1014e24e
add esp, 0x10
mov dword [ebp - 0x280], eax
xor edx, edx
xor ecx, ecx
cmp esi, 2
jl 0x10007acc
mov dx, word [ebp - 0x268]
lea eax, [esi - 1]
mov si, word [ebp - 0x26c]
mov dword [ebp - 0x278], eax
mov eax, dword [ebp - 0x270]
mov ebx, dword [ebp - 0x278]
mov edi, dword [eax]
movzx eax, byte [edi + ecx]
add si, ax
movzx eax, byte [edi + ecx + 1]
add ecx, 2
add dx, ax
cmp ecx, ebx
jl 0x10007a94
mov ebx, dword [ebp - 0x27c]
mov word [ebp - 0x26c], si
mov edi, dword [ebp - 0x26c]
mov esi, dword [ebp - 0x274]
mov word [ebp - 0x268], dx
xor edx, edx
cmp ecx, esi
jge 0x10007adc
mov eax, dword [ebp - 0x270]
mov eax, dword [eax]
movzx edx, byte [eax + ecx]
mov eax, dword [ebp - 0x268]
mov ecx, dword [ebp - 0x264]
add eax, edi
add edx, eax
push ebx
mov word [ecx + 8], dx
call fcn.1014dfec
add esp, 4
cmp dword [ebp - 0x280], esi
sete bl
jmp 0x100078dc
call fcn.10007850
int3