Function at 0x403104
Capabilities:
Enumerate files on windows

Disassembly:
push 0x294
mov eax, 0x42feaa
call fcn.0041bae6
mov dword [ebp - 0x26c], edx
mov esi, ecx
mov dword [ebp - 0x274], esi
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x264], ebx
lea eax, [ebp + 0x10]
mov dword [ebp - 4], 1
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x268]
call fcn.0041245e
pop ecx
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4031ee
call fcn.00412501
cmp eax, 0x80070002
jne 0x4031b1
and dword [esi], ebx
and dword [esi + 4], ebx
call fcn.00412bcd
push eax
lea ecx, [esi + 8]
call fcn.0040f03e
mov ecx, dword [ebp - 0x268]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00412d0e
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
jmp 0x40342d
push 0x368
push eax
push ecx
mov ecx, esp
push str.Could_not_open_directory
call fcn.0041284d
lea ecx, [ebp - 0x298]
call fcn.00412d2a
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00402671
mov ecx, dword [ebp - 0x290]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
jmp 0x40340e
mov esi, dword [ebp - 0x26c]
push 0x439c58
lea edx, [ebp + 8]
lea ecx, [ebp - 0x26c]
call fcn.0040e275
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 4
push ecx
mov edx, eax
lea ecx, [ebp - 0x284]
call fcn.0040e275
pop ecx
pop ecx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x26c]
add ecx, 0xfffffff0
call fcn.00412d0e
test byte [ebp - 0x260], 0x10
je 0x403316
lea eax, [ebp - 0x234]
push eax
push 0x4389b8
call fcn.004186db
pop ecx
pop ecx
test eax, eax
je 0x4033c4
lea eax, [ebp - 0x234]
push eax
push 0x4389c0
call fcn.004186db
pop ecx
pop ecx
test eax, eax
je 0x4033c4
test esi, esi
je 0x4033c4
cmp byte [ebp + 0x14], 0
lea eax, [ebp - 0x234]
je 0x4032a8
push ecx
mov ecx, esp
push eax
call fcn.0041284d
lea ecx, [ebp - 0x288]
call fcn.004022c6
pop ecx
mov byte [ebp - 4], 7
or ebx, 2
jmp 0x4032be
push eax
lea ecx, [ebp - 0x28c]
call fcn.0041284d
mov dword [ebp - 4], 8
or ebx, 4
movzx ecx, byte [0x44601f]
push ecx
push eax
push ecx
lea eax, [ebp - 0x2a0]
mov dword [ebp - 0x264], ebx
push eax
mov ecx, esi
call fcn.0040fce8
test bl, 4
je 0x4032f8
mov ecx, dword [ebp - 0x28c]
and ebx, 0xfffffffb
mov dword [ebp - 0x264], ebx
lea ecx, [ecx - 0x10]
call fcn.00412d0e
mov dword [ebp - 4], 6
test bl, 2
je 0x4033c4
mov ecx, dword [ebp - 0x288]
and ebx, 0xfffffffd
jmp 0x4033b6
cmp dword [ebp - 0x270], 0
je 0x4033c4
cmp byte [ebp + 0x14], 0
lea eax, [ebp - 0x234]
je 0x40334d
push ecx
mov ecx, esp
push eax
call fcn.0041284d
lea ecx, [ebp - 0x280]
call fcn.004022c6
pop ecx
mov byte [ebp - 4], 9
or ebx, 8
jmp 0x403363
push eax
lea ecx, [ebp - 0x278]
call fcn.0041284d
mov dword [ebp - 4], 0xa
or ebx, 0x10
movzx ecx, byte [0x44601f]
push ecx
push eax
push ecx
mov ecx, dword [ebp - 0x270]
lea eax, [ebp - 0x294]
push eax
mov dword [ebp - 0x264], ebx
call fcn.0040fce8
test bl, 0x10
je 0x4033a1
mov ecx, dword [ebp - 0x278]
and ebx, 0xffffffef
mov dword [ebp - 0x264], ebx
lea ecx, [ecx - 0x10]
call fcn.00412d0e
mov dword [ebp - 4], 6
test bl, 8
je 0x4033c4
mov ecx, dword [ebp - 0x280]
and ebx, 0xfffffff7
lea ecx, [ecx - 0x10]
mov dword [ebp - 0x264], ebx
call fcn.00412d0e
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x284]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4031f4
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x274]
and dword [esi], 0
and dword [esi + 4], 0
call fcn.00412bcd
push eax
lea ecx, [esi + 8]
call fcn.0040f03e
mov ecx, dword [ebp - 0x268]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
mov ecx, dword [ebp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.00412d0e
mov eax, esi
call fcn.0041ba95
ret