Function at 0x109fc89
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x898
mov eax, dword [0x10cd598]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x20]
or dword [ebp - 0x888], 0xffffffff
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
xor esi, esi
mov dword [ebp - 0x87c], ecx
mov ecx, dword [ebp + 0x14]
or dword [ecx], 0xffffffff
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x890], ecx
mov dword [edi], esi
xor ecx, ecx
push 0x5c
mov dword [ebx], esi
push eax
mov dword [ebp - 0x898], edx
mov dword [ebp - 0x884], esi
mov dword [ebp - 0x88c], esi
mov dword [ebp - 0x880], esi
mov dword [ebp - 0x878], esi
mov dword [ebp - 0x874], esi
mov dword [edx], esi
mov word [ebp - 0x61c], cx
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
cmp eax, esi
je 0x109fd59
lea ecx, [ebp - 0x878]
push ecx
add eax, 2
push eax
call fcn.01089f35
mov dword [ebp - 0x870], eax
cmp eax, esi
je 0x109fd32
push eax
push 0x5000197
jmp 0x10a009b
lea eax, [ebp - 0x874]
push eax
push dword [ebp - 0x878]
call fcn.0108d84e
mov dword [ebp - 0x870], eax
cmp eax, esi
je 0x109fd59
push eax
push 0x5030197
jmp 0x10a009b
mov eax, dword [ebp - 0x87c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x109fd62
sub eax, edx
sar eax, 1
add eax, 4
mov esi, 0x208
cmp eax, esi
jb 0x109fd98
mov eax, 0x8007006f
push eax
push 0x5090197
push dword [ebp - 0x87c]
mov dword [ebp - 0x870], eax
jmp 0x10a00bf
push dword [ebp - 0x87c]
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.0102d982
push 0x101e564
push esi
lea eax, [ebp - 0x61c]
push eax
call fcn.0102d9bc
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x888], eax
cmp eax, 0xffffffff
jne 0x109fdf2
mov eax, 0x80070002
push eax
mov dword [ebp - 0x870], eax
push 0x5120197
jmp 0x10a009b
mov esi, 0x8007010b
mov dword [ebp - 0x870], esi
test byte [ebp - 0x86c], 0x10
jne 0x109ffbd
lea eax, [ebp - 0x840]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x109fe13
sub eax, edx
sar eax, 1
mov ecx, 0x104
cmp eax, ecx
jae 0x109ffeb
lea eax, [ebp - 0x840]
push eax
push ecx
lea eax, [ebp - 0x20c]
push eax
call fcn.0102d982
lea eax, [ebp - 0x20c]
push 0x2e
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x109fffb
xor ecx, ecx
mov word [eax], cx
add eax, 2
push 0x101e5b6
push eax
mov dword [ebp - 0x894], eax
call fcn.0108c7c5
test eax, eax
jne 0x109ff15
push 3
lea eax, [ebp - 0x20c]
push 0x101e5ac
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x10a0006
lea esi, [ebp - 0x206]
cmp ax, word [ebp - 0x206]
je 0x109fec6
movzx eax, word [esi]
push eax
call dword [sym.imp.msvcrt.dll_iswxdigit]
pop ecx
test eax, eax
je 0x10a0011
inc esi
inc esi
xor eax, eax
cmp ax, word [esi]
jne 0x109feaa
push 0x10
lea eax, [ebp - 0x206]
push 0
push eax
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
cmp eax, dword [edi]
jbe 0x109fee0
mov dword [edi], eax
mov ecx, dword [ebp - 0x890]
cmp eax, dword [ecx]
jae 0x109feec
mov dword [ecx], eax
push dword [ebp - 0x84c]
push dword [ebp - 0x850]
call fcn.0109d1ac
mov ecx, dword [ebp - 0x898]
add dword [ecx], eax
inc dword [ebp - 0x880]
mov esi, 0x8007010b
jmp 0x109ffbd
push 0x101391e
push dword [ebp - 0x894]
call fcn.0108c7c5
test eax, eax
jne 0x109ff76
cmp dword [ebp - 0x884], eax
jne 0x10a0020
cmp dword [ebp - 0x874], eax
je 0x109ff57
push dword [ebp - 0x874]
lea eax, [ebp - 0x20c]
push eax
call fcn.0108c78f
test eax, eax
jne 0x10a0028
push dword [ebp - 0x84c]
push dword [ebp - 0x850]
call fcn.0109d1ac
add dword [ebx], eax
mov dword [ebp - 0x884], 1
jmp 0x109ffbd
push 0x101e5a2
push dword [ebp - 0x894]
call fcn.0108c7c5
test eax, eax
jne 0x10a00b2
cmp dword [ebp - 0x88c], eax
jne 0x10a0041
push 0x101e570
lea eax, [ebp - 0x840]
push eax
call fcn.0108c7c5
test eax, eax
jne 0x10a0049
mov dword [ebp - 0x88c], 1
lea eax, [ebp - 0x86c]
push eax
push dword [ebp - 0x888]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x109fdfd
cmp dword [ebp - 0x880], eax
jne 0x10a0051
push esi
push 0x5710197
jmp 0x10a009b
mov eax, 0x8007006f
push eax
push 0x5230197
jmp 0x109fd87
push esi
push 0x52a0197
jmp 0x10a009b
push esi
push 0x5330197
jmp 0x10a00b8
push 0x8007010b
push 0x5390197
jmp 0x10a00b8
push esi
push 0x54f0197
jmp 0x10a009b
push esi
push 0x5540197
push dword [ebp - 0x874]
call fcn.01089421
push esi
push 0x5550197
jmp 0x10a00b8
push esi
push 0x55f0197
jmp 0x10a009b
push esi
push 0x5630197
jmp 0x10a00b8
test dword [ebp + 0xc], 1
jne 0x10a0072
cmp dword [ebp - 0x884], eax
je 0x10a006a
cmp dword [ebp - 0x88c], eax
jne 0x10a0082
push esi
push 0x5770197
jmp 0x10a009b
cmp dword [ebp - 0x884], eax
jne 0x10a00aa
cmp dword [ebp - 0x88c], eax
jne 0x10a00aa
mov ecx, dword [edi]
mov edx, dword [ebp - 0x890]
sub ecx, dword [edx]
inc ecx
cmp ecx, dword [ebp - 0x880]
je 0x10a00a2
push esi
push 0x5840197
call fcn.010893e6
jmp 0x10a00c4
mov dword [ebp - 0x870], eax
jmp 0x10a00c4
push esi
push 0x57e0197
jmp 0x10a009b
push esi
push 0x5690197
lea eax, [ebp - 0x840]
push eax
call fcn.01089421
cmp dword [ebp - 0x878], 0
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x10a00db
push dword [ebp - 0x878]
call esi
cmp dword [ebp - 0x874], 0
je 0x10a00ec
push dword [ebp - 0x874]
call esi
cmp dword [ebp - 0x888], 0xffffffff
pop edi
pop esi
pop ebx
je 0x10a0104
push dword [ebp - 0x888]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x870]
xor ecx, ebp
call fcn.01074bd5
leave
ret 0x1c