Function at 0x10002fe0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x25c
push ebx
push esi
mov esi, dword [esp + 0x268]
push edi
mov ebx, ecx
mov edi, 0x2800
push esi
mov dword [esp + 0x24], ebx
mov dword [ebx + 0x1c], 0
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [eax + esi - 1]
mov eax, 0x100d1070
cmp cl, 0x5c
jne 0x10003020
mov eax, 0x100dcf98
mov cl, 0x73
push eax
mov byte [esp + 0x15], cl
mov byte [esp + 0x17], cl
mov cl, 0x2a
lea eax, [esp + 0x14]
mov byte [esp + 0x18], cl
mov byte [esp + 0x1a], cl
push esi
lea ecx, [esp + 0x16c]
mov dl, 0x25
push eax
push ecx
mov byte [esp + 0x20], dl
mov byte [esp + 0x22], dl
mov byte [esp + 0x25], 0x2e
mov byte [esp + 0x27], 0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0x24]
lea eax, [esp + 0x164]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x1000309b
lea ecx, [esp + 0xf]
push 1
push ecx
mov ecx, ebx
mov byte [esp + 0x17], 0x16
call fcn.10008050
pop edi
pop esi
pop ebx
add esp, 0x25c
ret 4
push ebp
push 0x2800
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
mov ebp, 1
mov byte [ebx], 0x16
jmp 0x100030b9
mov edi, dword [esp + 0x1c]
lea edx, [edi - 0x208]
cmp ebp, edx
jbe 0x100030d9
add edi, 0x208
push 0x42
push edi
push ebx
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ebx, eax
mov edi, 0x100d106c
lea esi, [esp + 0x54]
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x1000310a
test al, al
je 0x10003106
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x1000310a
add esi, 2
add edi, 2
test al, al
jne 0x100030e2
xor eax, eax
jmp 0x1000310f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100031a9
mov edi, 0x100d1068
lea esi, [esp + 0x54]
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x10003148
test al, al
je 0x10003144
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x10003148
add esi, 2
add edi, 2
test al, al
jne 0x10003120
xor eax, eax
jmp 0x1000314d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100031a9
mov al, byte [esp + 0x28]
lea ecx, [esp + 0x54]
and al, 0x10
push ecx
mov byte [ebx + ebp], al
inc ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
lea esi, [esp + 0x54]
mov edx, ecx
lea edi, [ebx + ebp]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add ebp, eax
and ecx, 3
inc ebp
rep movsb byte es:[edi], byte [esi]
mov byte [ebx + ebp - 1], 0
mov eax, dword [esp + 0x44]
mov dword [ebx + ebp], eax
mov ecx, dword [esp + 0x48]
mov dword [ebx + ebp + 4], ecx
mov edx, dword [esp + 0x3c]
add ebp, 8
mov dword [ebx + ebp], edx
mov eax, dword [esp + 0x40]
mov dword [ebx + ebp + 4], eax
add ebp, 8
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100030b5
mov ecx, dword [esp + 0x24]
push ebp
push ebx
call fcn.10008050
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x25c
ret 4