Function at 0x1003051
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x920
mov eax, dword [0x1006050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
or dword [ebp - 0x8c4], 0xffffffff
mov dword [ebp - 0x8d0], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x8c8], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x8d4], eax
lea eax, [ebp - 0x8dc]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x8cc], ebx
push ebx
mov dword [ebp - 0x8c0], 1
call fcn.01001bcc
mov dword [ebp - 0x8d8], eax
test eax, eax
je 0x10034ec
push 0x1001504
push dword [ebp - 0x8dc]
push eax
call fcn.01001cf3
test eax, eax
jge 0x10030db
and dword [ebp - 0x8c0], 0
jmp 0x10034c6
push esi
lea eax, [ebp - 0x8bc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x8c4], eax
cmp eax, 0xffffffff
jne 0x100314a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x10034c5
call esi
cmp eax, 3
je 0x10034c5
mov eax, dword [section..data]
cmp eax, section..data
je 0x100313e
test byte [eax + 0x1c], 4
je 0x100313e
call esi
push eax
mov eax, dword [section..data]
push ebx
push 0x1001250
push 0x37
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010018a2
and dword [ebp - 0x8c0], 0
jmp 0x10034c5
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
call edi
push 0x10014f8
mov esi, eax
call edi
add esi, eax
lea eax, [ebp - 0x890]
push eax
call edi
lea eax, [eax + esi + 1]
cmp eax, dword [ebp + 0xc]
jae 0x1003498
lea eax, [ebp - 0x890]
push eax
push dword [ebp - 0x8dc]
push dword [ebp - 0x8d8]
call fcn.01001cf3
test eax, eax
jl 0x10034b5
test byte [ebp - 0x8bc], 0x10
je 0x10032a4
push 0x10014f4
lea eax, [ebp - 0x890]
push eax
call fcn.010016ae
test eax, eax
jne 0x1003498
push 0x10014ec
lea eax, [ebp - 0x890]
push eax
call fcn.010016ae
test eax, eax
jne 0x1003498
test dword [ebp - 0x8bc], 0x400
je 0x1003212
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003498
test byte [eax + 0x1c], 4
je 0x1003498
push ebx
push 0x1001250
push 0x38
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100176e
jmp 0x1003498
mov esi, dword [ebp - 0x8d4]
test esi, esi
jne 0x1003275
push dword [ebp - 0x8d4]
push dword [ebp - 0x8c8]
push dword [ebp - 0x8d0]
push dword [ebp + 0xc]
push ebx
call fcn.01003051
test eax, eax
jne 0x1003498
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003498
test byte [eax + 0x1c], 8
je 0x1003498
push ebx
push 0x1001250
push 0x3a
jmp 0x1003202
push ebx
push esi
call fcn.010016ae
test eax, eax
jne 0x100327d
push esi
call edi
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x1003263
jmp 0x100321c
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003498
test byte [eax + 0x1c], 8
je 0x1003498
push ebx
push 0x1001250
push 0x39
jmp 0x1003202
and dword [ebp - 0x8e4], 0
and dword [ebp - 0x8e0], 0
mov edi, dword [ebp - 0x89c]
add dword [0x1006158], edi
mov esi, dword [ebp - 0x8a0]
adc dword [0x100615c], esi
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003301
test byte [eax + 0x1c], 8
je 0x1003301
lea ecx, [ebp - 0x890]
push ecx
push dword [0x100615c]
push dword [0x1006158]
push 0x1001250
push 0x3b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010016fb
cmp dword [ebp - 0x8c8], 0
je 0x1003498
lea eax, [ebp - 0x890]
xor ebx, ebx
push eax
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 6
jl 0x1003354
push 6
lea eax, [ebp - 0x890]
push eax
push 6
push 0x10014dc
push ebx
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x1003354
xor ebx, ebx
cmp dword [0x100614c], ebx
setne bl
test ebx, ebx
je 0x1003492
cmp dword [0x10060f0], 0
je 0x1003374
cmp dword [ebp - 0x8a0], 0
jne 0x1003374
cmp dword [ebp - 0x89c], 0x800
ja 0x1003374
xor ebx, ebx
test ebx, ebx
je 0x1003492
xor ebx, ebx
cmp esi, ebx
ja 0x1003397
jb 0x100338c
cmp edi, 0x400
ja 0x1003397
xor edi, edi
inc edi
mov dword [ebp - 0x8e0], ebx
jmp 0x10033a4
shrd edi, esi, 0xa
shr esi, 0xa
mov dword [ebp - 0x8e0], esi
push edi
push 0x1006070
lea eax, [ebp - 0x54]
push 0x28
push eax
call fcn.01001dbe
add esp, 0x10
test eax, eax
jl 0x10034be
mov esi, dword [ebp - 0x8d0]
push 3
pop edi
push 0x30c
lea eax, [ebp - 0x66c]
push eax
push esi
push dword [ebp - 0x8cc]
mov dword [ebp - 0x920], 0xd
mov dword [ebp - 0x91c], ebx
mov dword [ebp - 0x918], ebx
mov dword [ebp - 0x914], ebx
mov dword [ebp - 0x910], edi
call fcn.0100281a
test eax, eax
je 0x1003415
lea eax, [ebp - 0x66c]
mov dword [ebp - 0x90c], eax
jmp 0x100341b
mov dword [ebp - 0x90c], esi
mov eax, dword [ebp - 0x89c]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x900], eax
lea eax, [ebp - 0x920]
push eax
push ebx
push 0x104d
push dword [ebp - 0x8c8]
call esi
mov dword [ebp - 0x91c], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x90c], eax
mov eax, dword [ebp - 0x89c]
mov dword [ebp - 0x900], eax
lea eax, [ebp - 0x920]
push eax
push ebx
push 0x104c
push dword [ebp - 0x8c8]
mov dword [ebp - 0x920], 9
mov dword [ebp - 0x918], 1
mov dword [ebp - 0x914], ebx
mov dword [ebp - 0x910], edi
call esi
mov ebx, dword [ebp - 0x8cc]
lea eax, [ebp - 0x8bc]
push eax
push dword [ebp - 0x8c4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100314b
jmp 0x10034c4
and dword [ebp - 0x8c0], 0
jmp 0x10034c4
mov dword [ebp - 0x8c0], ebx
pop edi
pop esi
mov ecx, dword [ebp - 0x8d8]
xor eax, eax
cmp dword [ebp - 0x8c4], 0xffffffff
mov word [ecx], ax
je 0x10034e6
push dword [ebp - 0x8c4]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x8c0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.01004890
leave
ret 0x14