Function at 0x10103d6
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x101908c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x278], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x264], eax
mov eax, dword [ebp + 0x14]
xor ebx, ebx
push 0x24c
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x250]
push ebx
push eax
mov dword [ebp - 0x280], esi
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x254], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x26c], ebx
mov dword [ebp - 0x270], ebx
cmp esi, ebx
je 0x1010759
xor eax, eax
cmp ax, word [esi]
je 0x1010759
push esi
call fcn.0100fbbb
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x101049f
test dword [ebp + 0x18], 1
je 0x1010482
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
inc eax
jmp 0x1010763
lea eax, [ebp - 0x270]
push eax
push esi
call fcn.0100fc2d
test eax, eax
je 0x101050f
cmp dword [ebp - 0x270], 0x80000008
jne 0x1010473
push 0x1001d84
push esi
call fcn.01010b11
mov dword [ebp - 0x27c], eax
cmp eax, ebx
je 0x10106f0
push ebx
push eax
call fcn.0100f533
mov dword [ebp - 0x258], eax
cmp eax, ebx
je 0x10106f0
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x274], eax
cmp eax, 0xffffffff
je 0x101068c
push 0x34
lea eax, [ebp - 0x2b4]
push ebx
push eax
mov dword [ebp - 0x2b8], ebx
call sub.msvcrt.dll_memset
mov ebx, dword [sym.imp.KERNEL32.dll_CompareStringW]
add esp, 0xc
jmp 0x1010553
call edi
push esi
mov dword [ebp - 0x25c], eax
call fcn.0100fbbb
test eax, eax
je 0x101049f
push dword [ebp - 0x25c]
push 0x1004f80
push 0x2000000
push 0x1019504
call fcn.0100dc59
add esp, 0x10
push dword [ebp - 0x25c]
jmp 0x101075b
mov esi, dword [ebp - 0x280]
push esi
lea eax, [ebp - 0x2b8]
lea ecx, [ebp - 0x254]
call fcn.01010302
mov dword [ebp - 0x25c], eax
cmp eax, 1
jne 0x10105f7
test byte [ebp - 0x2b8], 0x10
je 0x10105d5
cmp dword [ebp - 0x278], 0
je 0x10105f7
push 0xffffffffffffffff
push dword [ebp - 0x28c]
mov esi, 0x409
push 0xffffffffffffffff
push 0x1004f7c
push eax
push esi
call ebx
dec eax
dec eax
je 0x10105f7
push 0xffffffffffffffff
push dword [ebp - 0x28c]
push 0xffffffffffffffff
push 0x1004f74
push 1
push esi
call ebx
dec eax
dec eax
je 0x10105f7
push dword [ebp - 0x268]
lea eax, [ebp - 0x2b8]
push dword [ebp - 0x264]
push eax
call dword [ebp - 0x278]
jmp 0x10105f1
cmp dword [ebp - 0x264], 0
je 0x10105f7
push dword [ebp - 0x268]
lea eax, [ebp - 0x2b8]
push eax
call dword [ebp - 0x264]
mov dword [ebp - 0x25c], eax
lea esi, [ebp - 0x2b8]
call fcn.010101e4
xor esi, esi
inc esi
cmp eax, esi
jne 0x101062c
cmp dword [ebp - 0x25c], esi
jne 0x1010653
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, esi
je 0x101054d
cmp dword [ebp - 0x25c], esi
jne 0x1010653
call edi
cmp eax, 0x12
jne 0x1010643
mov dword [ebp - 0x26c], esi
jmp 0x1010679
call edi
push eax
push dword [ebp - 0x258]
push 0x1004f08
jmp 0x1010661
call edi
push eax
push dword [ebp - 0x258]
push 0x1004e18
push 0x2000000
push 0x1019504
mov dword [ebp - 0x260], eax
call fcn.0100dc59
add esp, 0x14
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ebx, ebx
jmp 0x1010711
call edi
push eax
push dword [ebp - 0x258]
mov esi, 0x1019504
push 0x1004da0
push 0x2000000
push esi
mov dword [ebp - 0x260], eax
call fcn.0100dc59
mov eax, dword [ebp - 0x258]
add esp, 0x14
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x10106bc
sub eax, edx
sar eax, 1
cmp eax, 0x104
jb 0x1010711
push 0x1004d38
push 0x3000000
push esi
call fcn.0100dc59
add esp, 0xc
mov dword [ebp - 0x260], 0xce
jmp 0x1010711
call edi
push eax
push esi
push 0x1004cb0
push 0x2000000
push 0x1019504
mov dword [ebp - 0x260], eax
call fcn.0100dc59
add esp, 0x14
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp dword [ebp - 0x27c], ebx
je 0x1010731
push dword [ebp - 0x27c]
push ebx
call edi
push eax
call esi
cmp dword [ebp - 0x258], ebx
je 0x1010745
push dword [ebp - 0x258]
push ebx
call edi
push eax
call esi
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x26c]
jmp 0x1010763
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100d691
leave
ret 0x14