Function at 0x100821bf
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2ac
mov eax, dword [0x10086084]
xor eax, esp
mov dword [esp + 0x2a8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [esp + 0x18], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
mov ebx, ecx
push 0x250
mov dword [esp + 0x20], eax
mov edi, esi
lea eax, [esp + 0x64]
mov dword [esp + 0x18], edx
push esi
push eax
call sub.msvcrt.dll_memset
and dword [esp + 0x2c], esi
add esp, 0xc
and dword [esp + 0xc], esi
test ebx, ebx
je 0x100824e5
xor eax, eax
cmp ax, word [ebx]
je 0x100824e5
mov ecx, ebx
call fcn.10080f97
test eax, eax
je 0x10082265
test dword [ebp + 0x10], 1
je 0x10082248
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
inc eax
jmp 0x100824ef
lea edx, [esp + 0xc]
mov ecx, ebx
call fcn.10081015
test eax, eax
je 0x1008234c
cmp dword [esp + 0xc], 0x80000008
jne 0x10082238
mov edx, 0x100043c0
mov ecx, ebx
call fcn.10080125
mov dword [esp + 0x24], eax
test eax, eax
je 0x1008248b
xor edx, edx
mov ecx, eax
call fcn.1008119d
mov edi, eax
test edi, edi
je 0x1008248b
lea ecx, [esp + 0x60]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x1008242e
push 0x38
lea ecx, [esp + 0x2c]
push 0
push ecx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0x28]
mov edx, ebx
push eax
lea ecx, [esp + 0x64]
call fcn.10082091
mov dword [esp + 0xc], eax
cmp eax, 1
jne 0x100823a8
test byte [esp + 0x28], 0x10
je 0x10082387
cmp dword [esp + 0x14], esi
je 0x100823a8
push 0xffffffffffffffff
push dword [esp + 0x58]
push 0xffffffffffffffff
push 0x100051e4
push eax
push 0x409
call dword [sym.imp.KERNEL32.dll_CompareStringW]
dec eax
sub eax, 1
je 0x100823a8
push 0xffffffffffffffff
push dword [esp + 0x58]
push 0xffffffffffffffff
push 0x10008568
push 1
push 0x409
call dword [sym.imp.KERNEL32.dll_CompareStringW]
dec eax
sub eax, 1
je 0x100823a8
push dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x2c]
push dword [esp + 0x1c]
push eax
call dword [0x10087410]
call dword [esp + 0x20]
jmp 0x100823a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov dword [esp + 0x10], eax
call fcn.10080f97
test eax, eax
je 0x10082265
mov esi, dword [esp + 0x10]
push esi
push 0x10011f50
push 0x2000000
push 0x10086e10
call fcn.1008026a
add esp, 0x10
push esi
jmp 0x100824e7
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100823a8
push dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
call dword [0x10087410]
call dword [esp + 0x20]
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x28]
call fcn.10082167
cmp eax, 1
jne 0x100823d4
cmp dword [esp + 0xc], eax
jne 0x10082401
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x100822ba
cmp dword [esp + 0xc], 1
jne 0x10082401
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x100823f0
mov dword [esp + 0x20], 1
jmp 0x10082422
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
push 0x10011ff8
jmp 0x10082410
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
push 0x10012068
push 0x2000000
push 0x10086e10
call fcn.1008026a
add esp, 0x14
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x100824ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
push 0x100121e0
push 0x2000000
push 0x10086e10
call fcn.1008026a
mov ecx, edi
add esp, 0x14
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x10082456
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jb 0x100824ae
push 0x10012258
push 0x3000000
push 0x10086e10
call fcn.1008026a
add esp, 0xc
mov esi, 0xce
jmp 0x100824ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
push 0x10012158
push 0x2000000
push 0x10086e10
call fcn.1008026a
add esp, 0x14
xor ebx, ebx
mov eax, dword [esp + 0x24]
test eax, eax
je 0x100824c5
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
je 0x100824d8
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x20]
jmp 0x100824ef
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x2b4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10083b20
mov esp, ebp
pop ebp
ret 0xc