Function at 0x409400
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 0x4385de
push 0x104
push eax
mov edi, eax
call fcn.00403e90
add esp, 0x10
cmp byte [0x43e9b0], 0
mov eax, 0x43e9b8
mov ebx, 0x43efd4
cmovne ebx, eax
push ebx
call fcn.0041f7d0
add esp, 4
mov esi, eax
push edi
call fcn.0041f7d0
add esp, 4
xor ecx, ecx
lea edx, [esi + eax + 2]
mov dword [ebp - 0x674], eax
dec ecx
add edx, edx
cmovb edx, ecx
push edx
call fcn.00411d49
add esp, 4
mov edi, eax
push ebx
push eax
call fcn.0041f7ae
add esp, 8
lea ebx, [edi + esi*2]
push 0x4385c4
push ebx
call fcn.0041f73d
add esp, 8
lea ecx, [ebp - 0x468]
lea eax, [edi + esi*2 + 2]
push ecx
push eax
call fcn.0041f73d
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 0x409765
mov ebx, dword [ebp - 0x67c]
lea edi, [ebp - 0x670]
push 0x4385ca
lea eax, [ebp - 0x234]
push eax
call fcn.0041f76e
add esp, 8
test eax, eax
je 0x409636
push 0x4385c8
lea eax, [ebp - 0x234]
push eax
call fcn.0041f76e
add esp, 8
test eax, eax
je 0x409636
lea eax, [ebp - 0x234]
push eax
push ebx
push 0x437c70
push 0x104
push edi
call fcn.00403e90
add esp, 0x14
test byte [ebp - 0x260], 0x10
jne 0x40960d
push edi
call fcn.0041f7d0
add esp, 4
mov esi, eax
lea eax, [eax + eax + 6]
push eax
call fcn.0041f18c
add esp, 4
test eax, eax
je 0x40973c
mov ebx, eax
mov eax, 0x4352b4
push eax
push ebx
call fcn.0041f7ae
add esp, 8
lea eax, [ebx + 2]
push edi
push eax
call fcn.0041f73d
add esp, 8
lea eax, [ebx + esi*2 + 2]
mov ecx, 0x4352b4
push ecx
push eax
call fcn.0041f73d
add esp, 8
mov word [ebx + esi*2 + 4], 0
push 0x18
call fcn.00411d14
add esp, 4
mov edi, eax
mov dword [eax + 4], 1
xor eax, eax
mov dword [edi + 8], eax
mov dword [edi], 0x435370
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov ecx, edi
push ebx
call fcn.00401fe0
test eax, eax
jne 0x4097c5
push ebx
call fcn.0041ed02
add esp, 4
mov edx, dword [ebp - 0x678]
mov eax, dword [edx + 4]
lea ecx, [eax + 8]
test eax, eax
cmove ecx, edx
mov dword [ecx], edi
mov dword [edx + 4], edi
inc dword [edx + 8]
lea edi, [ebp - 0x670]
mov ebx, dword [ebp - 0x67c]
jmp 0x409636
push edi
push 0x4385ba
push 0x104
push edi
call fcn.00403e90
add esp, 0x10
mov edx, dword [ebp - 0x678]
mov ecx, edi
call fcn.00409400
test eax, eax
jne 0x40978c
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x674]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4094ee
push dword [ebp - 0x674]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call fcn.0041f7d0
add esp, 4
mov esi, eax
lea eax, [eax + eax + 6]
push eax
call fcn.0041f18c
add esp, 4
test eax, eax
je 0x40973c
mov edi, eax
mov eax, 0x4352b4
push eax
push edi
call fcn.0041f7ae
add esp, 8
lea eax, [edi + 2]
push ebx
push eax
call fcn.0041f73d
add esp, 8
lea eax, [edi + esi*2 + 2]
mov ecx, 0x4352b4
push ecx
push eax
call fcn.0041f73d
add esp, 8
mov word [edi + esi*2 + 4], 0
push 0x18
call fcn.00411d14
add esp, 4
mov ebx, eax
mov dword [eax + 4], 1
xor eax, eax
mov dword [ebx + 8], eax
mov dword [ebx], 0x435390
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
mov ecx, ebx
push edi
call fcn.00402d60
test eax, eax
je 0x409743
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov esi, eax
mov eax, dword [0x43f5f4]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40981c
push esi
push edi
push str.add_dir_entries_Parse_error_on_close:__S__err:__d
push 0x43f3e8
call fcn.0040ff00
add esp, 0x10
push edi
call fcn.0041ed02
add esp, 4
mov eax, dword [ebx]
mov edi, dword [eax]
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
push 1
call edi
jmp 0x409767
mov esi, 5
jmp 0x409767
mov edx, dword [ebp - 0x678]
mov eax, dword [edx + 4]
lea ecx, [eax + 8]
test eax, eax
cmove ecx, edx
mov dword [ecx], ebx
mov dword [edx + 4], ebx
inc dword [edx + 8]
push edi
call fcn.0041ed02
add esp, 4
xor esi, esi
push dword [ebp - 0x680]
call fcn.00411d44
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412591
mov eax, esi
add esp, 0x674
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov esi, eax
mov eax, dword [0x43f5f4]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40985f
push esi
push edi
push str.add_dir_entries_error:__S__err:__d
push 0x43f3e8
call fcn.0040ff00
add esp, 0x10
jmp 0x409767
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov esi, eax
mov eax, dword [0x43f5f4]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4098a2
push esi
push ebx
push str.add_dir_entries_Parse_error_on_recurse:__S__err:__d
push 0x43f3e8
call fcn.0040ff00
add esp, 0x10
push ebx
call fcn.0041ed02
add esp, 4
mov eax, dword [edi]
mov ebx, dword [eax]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
push 1
call ebx
jmp 0x409767
push 0x43f5f4
call fcn.00411d87
add esp, 4
cmp dword [0x43f5f4], 0xffffffff
jne 0x40970b
mov dword [0x43f3e8], 0
push 0x409c40
call fcn.00411ffc
add esp, 4
push 0x43f5f4
call fcn.00411dd9
add esp, 4
jmp 0x40970b
push 0x43f5f4
call fcn.00411d87
add esp, 4
cmp dword [0x43f5f4], 0xffffffff
jne 0x4097af
mov dword [0x43f3e8], 0
push 0x409c40
call fcn.00411ffc
add esp, 4
push 0x43f5f4
call fcn.00411dd9
add esp, 4
jmp 0x4097af
push 0x43f5f4
call fcn.00411d87
add esp, 4
cmp dword [0x43f5f4], 0xffffffff
jne 0x4097e8
mov dword [0x43f3e8], 0
push 0x409c40
call fcn.00411ffc
add esp, 4
push 0x43f5f4
call fcn.00411dd9
add esp, 4
jmp 0x4097e8