Function at 0x107d7f1
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x11d05b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push edi
mov dword [ebp - 0x25c], ebx
cmp dword [esi + 0x22c], ebx
jbe 0x107da12
mov edi, dword [esi + 0x210]
push ebx
lea ecx, [esi + 0x228]
call fcn.0107bf15
add eax, edi
cmp eax, 0x104
jae 0x107da23
push ebx
lea ecx, [esi + 0x228]
call fcn.0107beec
push eax
mov eax, 0x104
sub eax, edi
push eax
lea eax, [esi + edi*2 + 8]
push eax
call fcn.0107c2e0
lea edi, [esi + 0x228]
push ebx
mov ecx, edi
call fcn.0107bf15
add dword [esi + 0x210], eax
mov ecx, esi
call fcn.0107bda7
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x254]
push eax
lea eax, [esi + 8]
push eax
mov dword [ebp - 0x260], edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x258], eax
cmp eax, 0xffffffff
jne 0x107d8ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x25c], eax
mov ecx, esi
call fcn.0107bda7
sub eax, dword [ebp - 0x264]
push ebx
sbb edx, dword [ebp - 0x260]
add dword [esi + 0x220], eax
mov ecx, edi
adc dword [esi + 0x224], edx
call fcn.0107bf15
sub dword [esi + 0x210], eax
mov eax, dword [esi + 0x210]
xor ecx, ecx
cmp dword [ebp - 0x258], 0xffffffff
mov word [esi + eax*2 + 8], cx
jne 0x107d925
cmp dword [ebp - 0x25c], 2
jne 0x107da39
push ebx
mov ecx, edi
call fcn.0107bf15
push eax
push ebx
lea ecx, [esi + 0x228]
call fcn.0107beec
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
jmp 0x107da05
push ebx
mov ecx, edi
call fcn.0107bf15
push eax
push ebx
lea ecx, [esi + 0x228]
call fcn.0107beec
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
test byte [ebp - 0x254], 0x10
jne 0x107d97d
push ebx
lea eax, [ebp - 0x228]
push eax
mov ecx, esi
call fcn.0107cf4e
test al, al
je 0x107d97d
mov edi, dword [esi]
push ebx
lea ecx, [esi + 0x228]
call fcn.0107beec
push eax
lea eax, [ebp - 0x254]
push eax
mov ecx, esi
call dword [edi + 0x20]
test al, al
je 0x107d9de
mov ecx, esi
call fcn.0107bda7
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x258]
mov dword [ebp - 0x260], edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
test edi, edi
jne 0x107d9b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x25c], eax
mov ecx, esi
call fcn.0107bda7
sub eax, dword [ebp - 0x264]
sbb edx, dword [ebp - 0x260]
add dword [esi + 0x220], eax
adc dword [esi + 0x224], edx
test edi, edi
jne 0x107d942
jmp 0x107d9e9
push 0x4c7
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x25c], 0x12
jne 0x107da4d
inc ebx
cmp ebx, dword [esi + 0x22c]
jb 0x107d81f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010aa5e1
leave
ret
mov eax, dword [esi]
push 0x18
mov ecx, esi
call dword [eax + 4]
push 0x18
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x18
pop eax
jmp 0x107da14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 4]
mov eax, edi
jmp 0x107da14
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x25c]
jmp 0x107da14