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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x280
mov eax, dword [0x420004]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x278], eax
push 0x24c
lea eax, [ebp - 0x258]
mov dword [ebp - 0x260], edx
mov esi, ecx
mov dword [ebp - 0x27c], edi
push edi
push eax
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x25c], edi
call sub.msvcrt.dll_memset
mov ecx, esi
mov dword [ebp - 0x280], edi
add esp, 0xc
or dword [ebp - 0x268], 0xffffffff
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x40ebf8
sub ecx, edx
sar ecx, 1
lea edi, [ecx + 0x106]
lea eax, [edi + edi]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x274], eax
test eax, eax
jne 0x40ec34
push 8
pop ebx
mov edi, eax
jmp 0x40efe9
mov ecx, dword [ebp - 0x260]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x40ec3f
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 0x106]
mov dword [ebp - 0x270], eax
add eax, eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x26c], esi
test esi, esi
jne 0x40ec82
push 8
pop ebx
xor edi, edi
jmp 0x40efa8
push dword [ebp - 0x264]
push 0x404b5c
push edi
mov edi, dword [ebp - 0x274]
push edi
call fcn.0040df11
mov ecx, edi
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x27c]
jne 0x40eca2
push dword [ebp - 0x260]
sub ecx, edx
sar ecx, 1
push 0x404b5c
push dword [ebp - 0x270]
lea eax, [edi + ecx*2]
push esi
mov dword [ebp - 0x264], eax
call fcn.0040df11
mov ecx, esi
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x27c]
jne 0x40ecdd
sub ecx, edx
sar ecx, 1
lea eax, [esi + ecx*2]
mov dword [ebp - 0x270], eax
mov eax, dword [ebp - 0x278]
test eax, eax
jne 0x40ed0e
mov eax, 0x404b64
mov dword [ebp - 0x278], eax
mov ecx, dword [ebp - 0x264]
mov edx, 0x105
push eax
call fcn.0040de92
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x268], eax
cmp eax, 0xffffffff
je 0x40ed67
mov ecx, dword [ebp - 0x260]
call fcn.00411c75
mov edi, eax
test edi, edi
jne 0x40ed67
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push esi
push 0x404b68
push 4
call fcn.0040fadc
add esp, 0x10
jmp 0x40efa8
cmp dword [ebp + 0x14], 0
je 0x40ed89
mov ecx, dword [ebp - 0x260]
xor edx, edx
push 0x404398
call fcn.0040fde5
mov edi, eax
test edi, edi
je 0x40efa0
mov ecx, dword [ebp - 0x260]
mov edx, 0x80
call fcn.0040f6f1
mov edi, eax
test edi, edi
je 0x40efa0
mov ebx, dword [ebp - 0x274]
mov edi, dword [ebp - 0x264]
lea eax, [ebp - 0x230]
push eax
mov edx, 0x105
mov ecx, edi
call fcn.0040de92
mov ecx, dword [ebp - 0x270]
lea eax, [ebp - 0x230]
push eax
mov edx, 0x105
call fcn.0040de92
test byte [ebp - 0x25c], 0x10
je 0x40ee96
cmp dword [ebp + 0x20], 0
je 0x40ef51
mov ecx, 0x404bbc
lea eax, [ebp - 0x230]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40ee23
test dx, dx
je 0x40ee1d
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40ee23
add eax, 4
add ecx, 4
test dx, dx
jne 0x40edfb
xor edi, edi
mov eax, edi
jmp 0x40ee2a
sbb eax, eax
or eax, 1
xor edi, edi
test eax, eax
je 0x40ef51
mov ecx, 0x404bc0
lea eax, [ebp - 0x230]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40ee63
test dx, dx
je 0x40ee5f
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40ee63
add eax, 4
add ecx, 4
test dx, dx
jne 0x40ee3d
mov eax, edi
jmp 0x40ee68
sbb eax, eax
or eax, 1
test eax, eax
je 0x40ef51
push dword [ebp + 0x20]
mov edx, esi
mov ecx, ebx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x278]
call fcn.0040eb94
jmp 0x40ef4b
cmp dword [ebp + 0x18], 0
je 0x40eeab
mov ecx, edi
call fcn.0040f61d
test eax, eax
je 0x40ef51
cmp dword [ebp + 0x10], 0
je 0x40eed4
push 0x403f30
xor edx, edx
mov ecx, esi
call fcn.0040fde5
mov edi, eax
test edi, edi
jne 0x40eed4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40ef6e
cmp dword [ebp + 0x1c], 0
jne 0x40eeea
push dword [ebp + 0xc]
mov edx, esi
mov ecx, ebx
call fcn.0040f18f
test eax, eax
je 0x40ef19
call fcn.0040d4ed
xor ecx, ecx
mov esi, eax
inc ecx
call fcn.0040da8a
mov edx, dword [ebp - 0x26c]
mov ecx, ebx
call fcn.0040f00a
mov ecx, esi
mov edi, eax
call fcn.0040da8a
mov esi, dword [ebp - 0x26c]
test edi, edi
je 0x40ef6e
mov ecx, esi
call fcn.0040f5ac
test eax, eax
je 0x40ef51
mov edx, 0x80
mov ecx, esi
call fcn.0040f6f1
mov edi, eax
test edi, edi
je 0x40ef6e
cmp dword [ebp + 0x10], 0
je 0x40ef51
xor edx, edx
mov ecx, esi
push 0x403f30
inc edx
call fcn.0040fde5
mov edi, eax
test edi, edi
je 0x40ef6e
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
test edi, edi
jne 0x40eda9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0x280]
cmp eax, 0x12
jne 0x40efa0
xor edi, edi
inc edi
cmp dword [ebp + 0x14], ebx
je 0x40efa8
mov ecx, dword [ebp - 0x260]
xor edx, edx
push 0x404398
inc edx
call fcn.0040fde5
mov edi, eax
test edi, edi
jne 0x40efa8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push dword [ebp - 0x274]
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
je 0x40efd3
push esi
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x268]
cmp eax, 0xffffffff
je 0x40efe5
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
jne 0x40eff0
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ef80
mov esp, ebp
pop ebp
ret 0x1c