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

Disassembly:
push 0xffffffffffffffff
push 0x4a0bd6
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x4d9700]
xor eax, esp
mov dword [esp + 0x254], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d9700]
xor eax, esp
push eax
lea eax, [esp + 0x26c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x27c]
mov ebp, dword [esp + 0x284]
push 0x103
lea eax, [esp + 0x169]
push 0
push eax
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x170], 0
call fcn.0047e5b0
add esp, 0xc
call fcn.0046416b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40a156
push 0x80004005
call fcn.00405a40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x274], 0
call fcn.0046416b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40a18b
push 0x80004005
call fcn.00405a40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
push edi
push str._s.
push 0x103
lea ecx, [esp + 0x170]
push 0x104
push ecx
mov byte [esp + 0x288], 1
call fcn.0047c092
add esp, 0x14
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
jne 0x40a1fc
lea eax, [esi - 0x10]
mov byte [esp + 0x274], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40a3da
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40a3b7
mov esi, dword [esp + 0x288]
mov ebx, dword [esp + 0x280]
mov edi, edi
test byte [esp + 0x24], 0x10
je 0x40a29b
lea edx, [esp + 0x50]
push 0x4cbe48
push edx
call fcn.0047cb8e
add esp, 8
test eax, eax
je 0x40a397
lea eax, [esp + 0x50]
push 0x4cbe4c
push eax
call fcn.0047cb8e
add esp, 8
test eax, eax
je 0x40a397
push 0x4cbb14
push ebx
push edi
call fcn.0047bf1b
lea ecx, [esp + 0x5c]
push ecx
push ebx
push edi
call fcn.0047bf1b
push 0x4cbb14
push esi
push ebp
call fcn.0047bf1b
lea edx, [esp + 0x74]
push edx
push esi
push ebp
call fcn.0047bf1b
mov ecx, dword [esp + 0x50]
add esp, 0x30
push esi
push ebp
push ebx
push edi
call fcn.0040a0d0
test byte [esp + 0x24], 0x40
jne 0x40a397
test edi, edi
jne 0x40a2ae
xor eax, eax
jmp 0x40a2bc
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a2b3
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x1c]
call fcn.00405a90
push 1
push 0x4cbb14
lea ecx, [esp + 0x1c]
call fcn.0040b5e0
lea eax, [esp + 0x50]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a2e0
sub eax, edx
push eax
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040b5e0
test ebp, ebp
jne 0x40a300
xor eax, eax
jmp 0x40a30e
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a305
sub eax, edx
push eax
push ebp
lea ecx, [esp + 0x20]
call fcn.00405a90
push 1
push 0x4cbb14
lea ecx, [esp + 0x20]
call fcn.0040b5e0
lea eax, [esp + 0x50]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a330
sub eax, edx
push eax
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x20]
call fcn.0040b5e0
lea edx, [esp + 0x18]
push edx
call fcn.0040c280
mov ebx, eax
lea eax, [esp + 0x14]
push eax
call fcn.0040c280
cmp eax, ebx
je 0x40a370
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040a440
push 0
push 0x4cb223
lea ecx, [esp + 0x1c]
call fcn.00405a90
push 0
push 0x4cb223
lea ecx, [esp + 0x20]
call fcn.00405a90
mov ebx, dword [esp + 0x280]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40a220
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esi - 0x10]
mov byte [esp + 0x274], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a3e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x274], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a409
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x26c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.0047bc57
add esp, 0x264
ret 0x10