Function at 0x40a2a0
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 [0x43e00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x468]
mov dword [ebp - 0x67c], ecx
push ecx
push 0x4387fe
push 0x104
push eax
mov edi, eax
call fcn.00404cf0
add esp, 0x10
mov eax, 0x43f9b8
mov ebx, 0x43ffd4
cmp byte [0x43f9b0], 0
cmovne ebx, eax
push ebx
call fcn.00411f8b
add esp, 4
mov esi, eax
push edi
call fcn.00411f8b
add esp, 4
mov dword [ebp - 0x674], eax
lea edx, [esi + eax]
add edx, 2
xor ecx, ecx
dec ecx
add edx, edx
cmovb edx, ecx
push edx
call fcn.00411e4b
add esp, 4
mov edi, eax
push ebx
push eax
call fcn.00411e54
add esp, 8
lea ebx, [edi + esi*2]
push 0x4387e4
push ebx
call fcn.0041fa6d
add esp, 8
lea eax, [edi + esi*2]
add eax, 2
lea ecx, [ebp - 0x468]
push ecx
push eax
call fcn.0041fa6d
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]
xor esi, esi
mov dword [ebp - 0x674], eax
cmp eax, 0xffffffff
je 0x40a6a3
lea edi, [ebp - 0x670]
mov ebx, dword [ebp - 0x67c]
push 0x4387ea
lea eax, [ebp - 0x234]
push eax
call fcn.0041fa9e
add esp, 8
test eax, eax
je 0x40a4dc
push 0x4387e8
lea eax, [ebp - 0x234]
push eax
call fcn.0041fa9e
add esp, 8
test eax, eax
je 0x40a4dc
lea eax, [ebp - 0x234]
push eax
push ebx
push 0x437e72
push 0x104
push edi
call fcn.00404cf0
add esp, 0x14
test byte [ebp - 0x260], 0x10
jne 0x40a4b3
push edi
call fcn.00411f8b
add esp, 4
mov esi, eax
add eax, eax
add eax, 6
push eax
call fcn.0041f4bf
add esp, 4
test eax, eax
je 0x40a5e5
mov ebx, eax
mov eax, 0x435334
push eax
push ebx
call fcn.00411e54
add esp, 8
lea eax, [ebx + 2]
push edi
push eax
call fcn.0041fa6d
add esp, 8
lea eax, [ebx + esi*2]
add eax, 2
mov ecx, 0x435334
push ecx
push eax
call fcn.0041fa6d
add esp, 8
mov word [ebx + esi*2 + 4], 0
push 0x18
call fcn.00412282
add esp, 4
mov edi, eax
movaps xmm0, xmmword [0x434ef0]
movups xmmword [eax + 4], xmm0
mov dword [eax], 0x4353f0
mov dword [eax + 0x14], 0
mov ecx, eax
push ebx
call fcn.00402dc0
test eax, eax
jne 0x40a651
push ebx
call fcn.0041f035
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]
mov ebx, dword [ebp - 0x67c]
lea edi, [ebp - 0x670]
jmp 0x40a4dc
push edi
push 0x4387da
push 0x104
push edi
call fcn.00404cf0
add esp, 0x10
mov ecx, edi
mov edx, dword [ebp - 0x678]
call fcn.0040a2a0
test eax, eax
jne 0x40a618
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x674]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40a394
push dword [ebp - 0x674]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call fcn.00411f8b
add esp, 4
mov esi, eax
add eax, eax
add eax, 6
push eax
call fcn.0041f4bf
add esp, 4
test eax, eax
je 0x40a5e5
mov edi, eax
mov eax, 0x435334
push eax
push edi
call fcn.00411e54
add esp, 8
lea eax, [edi + 2]
push ebx
push eax
call fcn.0041fa6d
add esp, 8
lea eax, [edi + esi*2]
add eax, 2
mov ecx, 0x435334
push ecx
push eax
call fcn.0041fa6d
add esp, 8
mov word [edi + esi*2 + 4], 0
push 0x18
call fcn.00412282
add esp, 4
mov ebx, eax
movaps xmm0, xmmword [0x434ef0]
movups xmmword [eax + 4], xmm0
mov dword [eax], 0x435410
mov dword [eax + 0x14], 0
mov ecx, eax
push edi
call fcn.00403ba0
test eax, eax
je 0x40a5ef
mov esi, eax
mov eax, dword [0x4405f4]
mov ecx, dword [0x43eb8c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40a6c8
push esi
push edi
push str.add_dir_entries_Parse_error_on_close:__S__err:__d
push 0x4403e8
call fcn.00410340
add esp, 0x10
push edi
call fcn.0041f035
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 0x40a6a3
mov esi, 5
jmp 0x40a6a3
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.0041f035
add esp, 4
xor esi, esi
jmp 0x40a6a3
mov esi, eax
mov eax, dword [0x4405f4]
mov ecx, dword [0x43eb8c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40a70b
push esi
push edi
push str.add_dir_entries_error:__S__err:__d
push 0x4403e8
call fcn.00410340
add esp, 0x10
jmp 0x40a6a3
mov esi, eax
mov eax, dword [0x4405f4]
mov ecx, dword [0x43eb8c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40a74e
push esi
push ebx
push str.add_dir_entries_Parse_error_on_recurse:__S__err:__d
push 0x4403e8
call fcn.00410340
add esp, 0x10
push ebx
call fcn.0041f035
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
push dword [ebp - 0x680]
call fcn.004122f7
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412b41
mov eax, esi
add esp, 0x674
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4405f4
call fcn.00412337
add esp, 4
cmp dword [0x4405f4], 0xffffffff
jne 0x40a5b1
mov dword [0x4403e8], 0
push 0x40ab00
call fcn.004125ac
add esp, 4
push 0x4405f4
call fcn.00412389
add esp, 4
jmp 0x40a5b1
push 0x4405f4
call fcn.00412337
add esp, 4
cmp dword [0x4405f4], 0xffffffff
jne 0x40a63b
mov dword [0x4403e8], 0
push 0x40ab00
call fcn.004125ac
add esp, 4
push 0x4405f4
call fcn.00412389
add esp, 4
jmp 0x40a63b
push 0x4405f4
call fcn.00412337
add esp, 4
cmp dword [0x4405f4], 0xffffffff
jne 0x40a674
mov dword [0x4403e8], 0
push 0x40ab00
call fcn.004125ac
add esp, 4
push 0x4405f4
call fcn.00412389
add esp, 4
jmp 0x40a674