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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x674
mov dword [ebp - 0x678], edx
mov eax, dword [0x43d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x468]
mov dword [ebp - 0x67c], ecx
push ecx
push 0x438282
push 0x104
push eax
mov edi, eax
call fcn.004043f0
add esp, 0x10
cmp byte [0x43ec04], 0
mov eax, 0x43ec0c
mov ebx, 0x43f42e
cmovne ebx, eax
push ebx
call fcn.0041fbd0
add esp, 4
mov esi, eax
push edi
call fcn.0041fbd0
add esp, 4
lea edx, [esi + eax + 2]
mov ecx, 0xffffffff
mov dword [ebp - 0x674], eax
add edx, edx
cmovae ecx, edx
push ecx
call fcn.00412415
add esp, 4
mov edi, eax
push ebx
push eax
call fcn.0041fbae
add esp, 8
lea ebx, [edi + esi*2]
push 0x438268
push ebx
call fcn.0041fb3d
add esp, 8
lea ecx, [ebp - 0x468]
lea eax, [edi + esi*2 + 2]
push ecx
push eax
call fcn.0041fb3d
add esp, 8
mov eax, dword [ebp - 0x674]
mov word [ebx + eax*2 + 2], 0
lea eax, [ebp - 0x260]
push eax
mov dword [ebp - 0x680], edi
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x674], eax
je 0x40a067
mov ebx, dword [ebp - 0x67c]
lea edi, [ebp - 0x670]
push 0x43826e
lea eax, [ebp - 0x234]
push eax
call fcn.0041fb6e
add esp, 8
test eax, eax
je 0x409f70
push 0x43826c
lea eax, [ebp - 0x234]
push eax
call fcn.0041fb6e
add esp, 8
test eax, eax
je 0x409f70
lea eax, [ebp - 0x234]
push eax
push ebx
push 0x4379bc
push 0x104
push edi
call fcn.004043f0
add esp, 0x14
test byte [ebp - 0x260], 0x10
jne 0x409f3b
push edi
call fcn.0041fbd0
add esp, 4
mov esi, eax
lea eax, [eax + eax + 6]
push eax
call fcn.0041f68f
add esp, 4
test eax, eax
je 0x40a06e
mov ebx, eax
push 0x435460
push eax
call fcn.0041fbae
add esp, 8
lea eax, [ebx + 2]
push edi
push eax
call fcn.0041fb3d
add esp, 8
lea eax, [ebx + esi*2 + 2]
push 0x435460
push eax
call fcn.0041fb3d
add esp, 8
mov word [ebx + esi*2 + 4], 0
push 0x18
call fcn.004123e0
add esp, 4
mov edi, eax
mov dword [eax + 4], 1
mov dword [eax + 8], 0
mov dword [eax], 0x434580
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov ecx, eax
push ebx
call fcn.004025d0
test eax, eax
jne 0x40a0c8
push ebx
call fcn.0041f205
add esp, 4
mov ecx, dword [ebp - 0x678]
mov eax, dword [ecx + 4]
test eax, eax
lea eax, [eax + 8]
cmove eax, ecx
mov dword [eax], edi
mov dword [ecx + 4], edi
inc dword [ecx + 8]
lea edi, [ebp - 0x670]
mov ebx, dword [ebp - 0x67c]
jmp 0x409f70
push edi
push 0x43825e
push 0x104
push edi
call fcn.004043f0
add esp, 0x10
mov edx, dword [ebp - 0x678]
mov ecx, edi
call fcn.00409d20
test eax, eax
jne 0x40a09c
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x674]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x409e10
push dword [ebp - 0x674]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call fcn.0041fbd0
add esp, 4
mov esi, eax
lea eax, [eax + eax + 6]
push eax
call fcn.0041f68f
add esp, 4
test eax, eax
je 0x40a06e
mov edi, eax
push 0x435460
push eax
call fcn.0041fbae
add esp, 8
lea eax, [edi + 2]
push ebx
push eax
call fcn.0041fb3d
add esp, 8
lea eax, [edi + esi*2 + 2]
push 0x435460
push eax
call fcn.0041fb3d
add esp, 8
mov word [edi + esi*2 + 4], 0
push 0x18
call fcn.004123e0
add esp, 4
mov ebx, eax
mov dword [eax + 4], 1
mov dword [eax + 8], 0
mov dword [eax], 0x4345a0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov ecx, eax
push edi
call fcn.00403330
mov esi, eax
test eax, eax
je 0x40a078
mov eax, dword [0x43fc58]
mov ecx, dword [0x43db2c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40a124
push esi
push edi
push str.add_dir_entries_Parse_error_on_close:__S__err:__d
push 0x43f844
call fcn.0040e940
add esp, 0x10
jmp 0x40a091
xor esi, esi
jmp 0x40a0ff
mov esi, 5
jmp 0x40a0ff
mov ecx, dword [ebp - 0x678]
mov eax, dword [ecx + 4]
test eax, eax
lea eax, [eax + 8]
cmove eax, ecx
mov dword [eax], ebx
mov dword [ecx + 4], ebx
inc dword [ecx + 8]
push edi
call fcn.0041f205
add esp, 4
jmp 0x40a0ff
mov esi, eax
mov eax, dword [0x43fc58]
mov ecx, dword [0x43db2c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40a168
push esi
push edi
push str.add_dir_entries_error:__S__err:__d
jmp 0x40a0f2
mov esi, eax
mov eax, dword [0x43fc58]
mov ecx, dword [0x43db2c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40a1ac
push esi
push ebx
push str.add_dir_entries_Parse_error_on_recurse:__S__err:__d
push 0x43f844
call fcn.0040e940
add esp, 0x10
push dword [ebp - 0x680]
call fcn.00412410
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412bfe
mov eax, esi
add esp, 0x674
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x43fc58
call fcn.0041244a
add esp, 4
mov eax, dword [0x43fc58]
cmp eax, 0xffffffff
jne 0x40a051
mov dword [0x43f844], 0
push 0x40a550
call fcn.004126b0
add esp, 4
push 0x43fc58
call fcn.0041249c
add esp, 4
jmp 0x40a051
push 0x43fc58
call fcn.0041244a
add esp, 4
mov eax, dword [0x43fc58]
cmp eax, 0xffffffff
jne 0x40a0bf
mov dword [0x43f844], 0
push 0x40a550
call fcn.004126b0
add esp, 4
push 0x43fc58
call fcn.0041249c
add esp, 4
jmp 0x40a0bf
push 0x43fc58
call fcn.0041244a
add esp, 4
mov eax, dword [0x43fc58]
cmp eax, 0xffffffff
jne 0x40a0eb
mov dword [0x43f844], 0
push 0x40a550
call fcn.004126b0
add esp, 4
push 0x43fc58
call fcn.0041249c
add esp, 4
jmp 0x40a0eb