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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x57
push 0
push 0
dec ecx
jne 0x5e5041
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0xd], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a78c
lea eax, [ebp - 0xc]
mov edx, dword [0x5e785c]
call fcn.0040bc08
mov edi, dword [0x6042e8]
xor eax, eax
push ebp
push 0x5e55dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 4]
mov eax, edx
test eax, eax
je 0x5e509d
sub eax, 4
mov eax, dword [eax]
test eax, eax
je 0x5e555c
mov eax, edx
test eax, eax
je 0x5e50b0
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp word [edx + eax*2 - 2], 0x5c
je 0x5e50c8
lea eax, [ebp - 4]
mov edx, 0x5e5600
call fcn.0040b6d0
mov eax, dword [0x6047b4]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx]
lea eax, [edi + 8]
mov ecx, dword [ebp - 4]
mov edx, 0x5e5610
call fcn.0040b728
mov eax, dword [0x6047b4]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 4]
lea eax, [ebp - 0x278]
mov edx, dword [ebp - 4]
call fcn.0040b5c8
mov eax, dword [ebp - 0x278]
call fcn.005e4efc
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
mov edx, dword [0x5e7828]
call fcn.0040d96c
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x5e7828]
call fcn.0040d848
add esp, 4
xor ebx, ebx
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp - 0x284]
mov ecx, 0x5e5644
mov edx, dword [ebp - 4]
call fcn.0040b728
mov edx, dword [ebp - 0x284]
lea eax, [ebp - 0x280]
call fcn.0040b5c8
mov eax, dword [ebp - 0x280]
lea edx, [ebp - 0x27c]
call fcn.005d4710
mov eax, dword [ebp - 0x27c]
call fcn.0040b26c
push eax
call sub.kernel32.dll_FindFirstFileW
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x5e555c
jmp 0x5e519b
push 0x1f4
call sub.kernel32.dll_Sleep
cmp byte [edi], 0
jne 0x5e5191
cmp byte [edi + 1], 0
je 0x5e51b4
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_FindClose
jmp 0x5e555c
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x5e53c1
cmp eax, ebx
jle 0x5e53c1
lea eax, [ebp - 0x288]
lea edx, [ebp - 0x248]
mov ecx, 0x104
call fcn.0040b230
mov eax, dword [ebp - 0x288]
mov edx, 0x5e564c
call fcn.0040b43c
je 0x5e53a3
lea eax, [ebp - 0x28c]
lea edx, [ebp - 0x248]
mov ecx, 0x104
call fcn.0040b230
mov eax, dword [ebp - 0x28c]
mov edx, 0x5e5654
call fcn.0040b43c
je 0x5e53a3
lea eax, [ebp - 0x290]
lea edx, [ebp - 0x248]
mov ecx, 0x104
call fcn.0040b230
mov eax, dword [ebp - 0x290]
call fcn.005e4e20
test al, al
jne 0x5e53a3
mov eax, dword [ebp - 0x274]
mov edx, eax
and edx, 0x10
cmp edx, 0x10
jne 0x5e5374
and eax, 0x400
cmp eax, 0x400
jne 0x5e5343
push dword [ebp - 4]
lea eax, [ebp - 0x2a0]
lea edx, [ebp - 0x248]
mov ecx, 0x104
call fcn.0040b578
push dword [ebp - 0x2a0]
push 0x5e5600
lea eax, [ebp - 0x29c]
mov edx, 3
call fcn.0040b7b0
mov edx, dword [ebp - 0x29c]
lea eax, [ebp - 0x298]
call fcn.0040b5c8
mov eax, dword [ebp - 0x298]
lea edx, [ebp - 0x294]
call fcn.00425314
mov eax, dword [ebp - 0x294]
call fcn.005e38cc
test al, al
jne 0x5e53a3
lea eax, [ebp - 0x2a8]
lea edx, [ebp - 0x248]
mov ecx, 0x104
call fcn.0040b230
mov eax, dword [ebp - 0x2a8]
lea edx, [ebp - 0x2a4]
call fcn.004252d8
mov eax, dword [ebp - 0x2a4]
mov edx, dword [ebp - 0x14]
call fcn.005e3808
test al, al
jne 0x5e53a3
lea esi, [ebx + ebx*2]
mov eax, dword [ebp - 8]
lea eax, [eax + esi*4]
lea edx, [ebp - 0x248]
mov ecx, 0x104
call fcn.0040b230
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x274]
mov dword [eax + esi*4 + 4], edx
mov eax, dword [ebp - 8]
mov byte [eax + esi*4 + 8], 1
inc ebx
jmp 0x5e53a3
lea esi, [ebx + ebx*2]
mov eax, dword [ebp - 8]
lea eax, [eax + esi*4]
lea edx, [ebp - 0x248]
mov ecx, 0x104
call fcn.0040b230
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x274]
mov dword [eax + esi*4 + 4], edx
mov eax, dword [ebp - 8]
mov byte [eax + esi*4 + 8], 1
inc ebx
jmp 0x5e53a3
lea esi, [ebx + ebx*2]
mov eax, dword [ebp - 8]
lea eax, [eax + esi*4]
lea edx, [ebp - 0x248]
mov ecx, 0x104
call fcn.0040b230
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x274]
mov dword [eax + esi*4 + 4], edx
mov eax, dword [ebp - 8]
mov byte [eax + esi*4 + 8], 0
inc ebx
lea eax, [ebp - 0x274]
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_FindNextFileW
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x5e519b
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_FindClose
mov dword [ebp - 0xc], ebx
mov esi, dword [ebp - 0xc]
dec esi
test esi, esi
jl 0x5e5416
inc esi
xor ebx, ebx
lea eax, [ebx + ebx*2]
mov edx, dword [ebp - 8]
cmp byte [edx + eax*4 + 8], 0
jne 0x5e5412
jmp 0x5e53f1
push 0x1f4
call sub.kernel32.dll_Sleep
cmp byte [edi], 0
jne 0x5e53e7
cmp byte [edi + 1], 0
jne 0x5e555c
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
add eax, 1
adc edx, 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
inc ebx
dec esi
jne 0x5e53d8
mov esi, dword [ebp - 0xc]
dec esi
test esi, esi
jl 0x5e5531
inc esi
xor ebx, ebx
lea eax, [ebx + ebx*2]
mov edx, dword [ebp - 8]
cmp byte [edx + eax*4 + 8], 0
je 0x5e5529
jmp 0x5e5442
push 0x1f4
call sub.kernel32.dll_Sleep
cmp byte [edi], 0
jne 0x5e5438
cmp byte [edi + 1], 0
jne 0x5e555c
lea eax, [ebx + ebx*2]
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax*4 + 4]
and eax, 0x400
cmp eax, 0x400
jne 0x5e54db
lea eax, [ebp - 0x2ac]
lea edx, [ebx + ebx*2]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + edx*4]
call fcn.0040b5b4
mov edx, dword [ebp - 0x2ac]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
push dword [ebp - 4]
lea eax, [ebp - 0x2b4]
lea edx, [ebx + ebx*2]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + edx*4]
call fcn.0040b5b4
push dword [ebp - 0x2b4]
push 0x5e5600
lea eax, [ebp - 0x2b0]
mov edx, 3
call fcn.0040b7b0
mov eax, dword [ebp - 0x2b0]
mov ecx, dword [ebp - 0x14]
mov dl, 1
call fcn.005e5038
add eax, dword [ebp - 0x20]
adc edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
jmp 0x5e5529
push dword [ebp - 4]
lea eax, [ebp - 0x2bc]
lea edx, [ebx + ebx*2]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + edx*4]
call fcn.0040b5b4
push dword [ebp - 0x2bc]
push 0x5e5600
lea eax, [ebp - 0x2b8]
mov edx, 3
call fcn.0040b7b0
mov eax, dword [ebp - 0x2b8]
mov ecx, dword [ebp - 0x14]
xor edx, edx
call fcn.005e5038
add eax, dword [ebp - 0x20]
adc edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
inc ebx
dec esi
jne 0x5e5425
lea eax, [ebp - 8]
mov edx, dword [0x5e7828]
call fcn.0040d96c
cmp byte [ebp - 0xd], 0
je 0x5e555c
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, eax
dec edx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e55e4
lea eax, [ebp - 0x2bc]
mov edx, 5
call fcn.0040a6f8
lea eax, [ebp - 0x2a8]
mov edx, 2
call fcn.0040a768
lea eax, [ebp - 0x2a0]
mov edx, 2
call fcn.0040a6f8
lea eax, [ebp - 0x298]
mov edx, 5
call fcn.0040a768
lea eax, [ebp - 0x284]
call fcn.0040a698
lea eax, [ebp - 0x280]
mov edx, 3
call fcn.0040a768
lea eax, [ebp - 0xc]
mov edx, dword [0x5e785c]
call fcn.0040bfd4
lea eax, [ebp - 4]
call fcn.0040a698
pop eax
jmp eax