Function at 0x101f56f
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [reloc.msvcrt.dll___p__fmode]
and dword [ebp - reloc.msvcrt.dll___p__fmode], 0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - reloc.msvcrt.dll___p__fmode], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - reloc.msvcrt.dll___p__fmode], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - reloc.msvcrt.dll___p__fmode], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - reloc.msvcrt.dll___p__fmode], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - reloc.msvcrt.dll___p__fmode], eax
mov eax, dword [ebp + 0x20]
push esi
mov dword [ebp - reloc.msvcrt.dll___p__fmode], eax
mov eax, dword [ebp + 0x24]
push edi
push 0x610
mov dword [ebp - reloc.msvcrt.dll___p__fmode], eax
call fcn.01032298
test eax, eax
pop ecx
je 0x101f5d5
mov ecx, eax
call fcn.0101da3c
mov esi, eax
jmp 0x101f5d7
xor esi, esi
test esi, esi
jne 0x101f5ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - reloc.msvcrt.dll___p__fmode], eax
jmp 0x101f7bd
xor eax, eax
mov ecx, 0x184
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, reloc.msvcrt.dll___p__fmode
mov dword [esi + reloc.msvcrt.dll___p__fmode], eax
mov dword [eax], eax
lea eax, reloc.msvcrt.dll___p__fmode
mov dword [esi + reloc.msvcrt.dll___p__fmode], eax
mov dword [eax], eax
lea eax, [esi + 0x90]
lea ecx, reloc.msvcrt.dll___p__fmode
mov dword [esi + 0x94], eax
mov dword [eax], eax
call fcn.01036937
test eax, eax
je 0x101f7a9
lea ecx, reloc.msvcrt.dll___p__fmode
call fcn.01036937
test eax, eax
je 0x101f7a9
push 0x1040274
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push dword [ebp - 0x214]
mov dword [esi + 0x18], eax
call fcn.01035adb
xor edi, edi
cmp dword [ebp - reloc.msvcrt.dll___p__fmode], edi
mov dword [esi + 0x34], eax
je 0x101f675
cmp eax, edi
je 0x101f7b5
push ebx
mov dword [esi + 0x1c], 0x20
call fcn.01035adb
cmp ebx, edi
mov dword [esi + 0xf4], eax
je 0x101f694
cmp eax, edi
je 0x101f7b5
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x101f6b3
mov dword [ebp - reloc.msvcrt.dll___p__fmode], reloc.ADVAPI32.dll_SetThreadToken
jmp 0x101f7b5
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov ebx, eax
push ebx
call fcn.01035a36
cmp eax, edi
mov dword [esi + 0xf8], eax
jne 0x101f6e0
mov dword [ebp - reloc.msvcrt.dll___p__fmode], 8
jmp 0x101f7b5
push dword [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x101f7b5
push dword [ebp - 0x21c]
lea eax, [esi + 0x38]
push eax
call fcn.0101d969
test eax, eax
je 0x101f7a9
push 1
mov ecx, esi
call fcn.0101e64b
push dword [ebp - 0x220]
lea eax, [esi + 0x9c]
push eax
call fcn.0103621f
test eax, eax
je 0x101f7a9
mov ebx, dword [ebp - reloc.msvcrt.dll___p__fmode]
push ebx
lea eax, [esi + 0x78]
push eax
call fcn.0101d9b1
test eax, eax
je 0x101f7a9
cmp dword [ebp - reloc.msvcrt.dll___p__fmode], edi
je 0x101f771
push 1
push 1
lea eax, reloc.msvcrt.dll___p__fmode
push eax
push dword [ebp - 0x214]
call fcn.01034e1a
cmp eax, edi
je 0x101f7a9
mov ecx, dword [ebp - reloc.msvcrt.dll___p__fmode]
push eax
mov dword [esi + 0x30], ecx
call fcn.01034e0e
mov eax, dword [esi + 0x74]
cmp eax, edi
je 0x101f77b
mov dword [esi + 0x30], eax
cmp ebx, edi
je 0x101f787
cmp dword [ebx + 8], edi
je 0x101f787
inc dword [esi + 0x30]
cmp dword [ebp - reloc.msvcrt.dll___p__fmode], edi
je 0x101f7f7
cmp dword [ebx + 8], edi
jne 0x101f7da
push dword [ebp - 0x214]
call fcn.0102881a
cmp eax, edi
mov dword [esi + 0xec], eax
jne 0x101f7f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - reloc.msvcrt.dll___p__fmode], eax
push 1
push esi
call fcn.0101efc2
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01031d91
leave
ret 0x24
push dword [ebp - 0x224]
push dword [ebp - 0x220]
push ebx
push dword [esi + 0x30]
push dword [ebp - 0x214]
call fcn.0101d80d
jmp 0x101f79f
lea ebx, reloc.msvcrt.dll___p__fmode
push ebx
mov dword [esi + 0xf0], edi
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [ebp - reloc.msvcrt.dll___p__fmode]
mov eax, dword [eax + 4]
cmp eax, 1
jne 0x101f832
lea edi, [esi + 0x10]
push edi
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
jne 0x101f87f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x101f87f
cmp eax, 2
jne 0x101f872
lea eax, reloc.msvcrt.dll___p__fmode
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, reloc.msvcrt.dll___p__fmode
push eax
call fcn.0101d6c5
test eax, eax
je 0x101f7a9
lea edi, [esi + 0x10]
push edi
lea eax, reloc.msvcrt.dll___p__fmode
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
jne 0x101f87f
jmp 0x101f7a9
mov eax, dword [ebx]
lea edi, [esi + 0x10]
mov dword [edi], eax
mov eax, dword [ebx + 4]
mov dword [edi + 4], eax
mov eax, dword [edi]
mov dword [esi + reloc.msvcrt.dll___p__fmode], eax
mov eax, dword [edi + 4]
mov edi, 0x104030c
push edi
mov dword [esi + reloc.msvcrt.dll___p__fmode], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
cmp dword [ebp + 0x28], ebx
je 0x101f8f9
push 0x104
lea eax, reloc.msvcrt.dll___p__fmode
push eax
push 0x20
call fcn.01029224
cmp eax, ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
jne 0x101f8c4
cmp edx, ebx
je 0x101f8e1
lea eax, reloc.msvcrt.dll___p__fmode
push eax
call fcn.01035adb
cmp eax, ebx
mov dword [esi + 0x2c], eax
je 0x101f8e1
push esi
call fcn.0101e1c0
test eax, eax
jne 0x101f8f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [ebp - reloc.msvcrt.dll___p__fmode], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x101f7b5
mov ecx, dword [ebp - reloc.msvcrt.dll___p__fmode]
mov eax, dword [ecx + 4]
mov dword [esi], ecx
mov dword [esi + 4], eax
mov dword [eax], esi
push 0x1040300
mov dword [ecx + 4], esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push dword [0x1040274]
call fcn.01033044
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x101f7cb