Function at 0x403dd6
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42813f
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x16c4
call fcn.00420cd0
mov eax, dword [0x4362ec]
xor eax, esp
mov dword [esp + 0x16c0], eax
push ebx
push esi
push edi
mov eax, dword [0x4362ec]
xor eax, esp
push eax
lea eax, [esp + 0x16d8]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
push eax
push ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], edx
call fcn.004042bb
mov edi, eax
test edi, edi
jne 0x403f03
lea eax, [esp + 0x27c]
push eax
call fcn.004061e7
and dword [esp + 0x16e0], edi
push 0x42bf28
push ebx
mov esi, 0x42bf2c
push esi
lea ecx, [esp + 0x288]
call fcn.0040999d
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x280]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
jne 0x403f29
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
mov dword [esp + 0x14], eax
jne 0x403eaf
push dword [esp + 0x18]
call fcn.004043c0
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], 0
je 0x403eea
push dword [esp + 0x14]
mov ecx, 0x104
sub esp, 0x410
mov edi, esp
lea esi, [esp + 0x690]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x42c]
push str.FindFileHandle_on___s__failed__Error__d
add esi, 0x3c
call fcn.00406a39
add esp, 0x418
or dword [esp + 0x16e0], 0xffffffff
lea eax, [esp + 0x27c]
push eax
call fcn.0040133f
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x16d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x16c0]
xor ecx, esp
call fcn.004147c2
mov esp, ebp
pop ebp
ret 0x10
mov ebx, 0x42bf98
cmp dword [esp + 0x14], 0
je 0x403f4e
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
call dword [esp + 0x20]
test al, al
je 0x4040f4
mov eax, dword [esp + 0x2c]
and eax, 0x10
mov dword [esp + 0x28], eax
je 0x404042
cmp byte [ebp + 0x10], 0
je 0x404042
mov eax, 0x42bf8c
lea ecx, [esp + 0x58]
call fcn.004073b0
test al, al
jne 0x404042
mov eax, 0x42bf90
lea ecx, [esp + 0x58]
call fcn.004073b0
test al, al
jne 0x404042
lea eax, [esp + 0xeac]
push eax
call fcn.004061e7
mov byte [esp + 0x16e0], 1
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x20]
lea ecx, [esp + 0xeb4]
push ebx
call fcn.0040999d
add esp, 0xc
lea eax, [esp + 0x68c]
push eax
call fcn.004061e7
mov byte [esp + 0x16e0], 2
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x24]
lea ecx, [esp + 0x694]
push ebx
call fcn.0040999d
mov ecx, dword [esp + 0x24]
add esp, 0xc
push dword [esp + 0x14]
push dword [ebp + 0x10]
push dword [esp + 0x694]
push dword [esp + 0xeb8]
call fcn.00403dd6
mov edi, eax
test edi, edi
jne 0x404137
mov byte [esp + 0x16e0], 1
lea eax, [esp + 0x68c]
push eax
call fcn.0040133f
mov byte [esp + 0x16e0], 0
lea eax, [esp + 0xeac]
jmp 0x4040ee
cmp dword [esp + 0x28], 0
jne 0x4040f4
lea eax, [esp + 0x12bc]
push eax
call fcn.004061e7
mov byte [esp + 0x16e0], 3
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x20]
lea ecx, [esp + 0x12c4]
push esi
call fcn.0040999d
add esp, 0xc
lea eax, [esp + 0xa9c]
push eax
call fcn.004061e7
mov byte [esp + 0x16e0], 4
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x24]
lea ecx, [esp + 0xaa4]
push esi
call fcn.0040999d
mov edi, dword [esp + 0x24]
add esp, 0xc
push dword [esp + 0xa9c]
push dword [esp + 0x12c0]
call fcn.0040433b
mov edi, eax
test edi, edi
jne 0x40415d
mov byte [esp + 0x16e0], 3
lea eax, [esp + 0xa9c]
push eax
call fcn.0040133f
mov byte [esp + 0x16e0], 0
lea eax, [esp + 0x12bc]
push eax
call fcn.0040133f
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40412d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x12
je 0x40412d
mov esi, dword [esp + 0x18]
push edi
push str.FindNextFile_failed__Error__d
add esi, 0x3c
call fcn.00406a39
pop ecx
pop ecx
mov esi, 0x42bf2c
test edi, edi
je 0x403f2e
jmp 0x404187
mov byte [esp + 0x16e0], 1
lea eax, [esp + 0x68c]
push eax
call fcn.0040133f
mov byte [esp + 0x16e0], 0
lea eax, [esp + 0xeac]
jmp 0x404181
mov byte [esp + 0x16e0], 3
lea eax, [esp + 0xa9c]
push eax
call fcn.0040133f
mov byte [esp + 0x16e0], 0
lea eax, [esp + 0x12bc]
push eax
call fcn.0040133f
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp edi, 0x12
je 0x4041b2
or dword [esp + 0x16e0], 0xffffffff
lea eax, [esp + 0x27c]
push eax
call fcn.0040133f
mov eax, edi
jmp 0x403f03
xor edi, edi
jmp 0x404196