Function at 0x51511c
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x30
push 0
push 0
dec ecx
jne 0x515124
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404690
lea edi, [ebp - 0x160]
xor eax, eax
push ebp
push 0x515432
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x164]
push eax
mov eax, dword [ebp - 4]
call fcn.004044a0
mov edx, eax
mov ecx, 1
mov eax, dword [ebp - 4]
call fcn.00404700
mov eax, dword [ebp - 0x164]
mov edx, 0x515448
call fcn.004045ec
jne 0x515194
mov eax, dword [ebp - 4]
call fcn.004044a0
mov edx, eax
lea eax, [ebp - 4]
mov ecx, 1
call fcn.00404740
mov dl, 1
mov eax, dword [0x417bc0]
call fcn.0040337c
mov ebx, eax
push edi
lea eax, [ebp - 0x168]
mov ecx, 0x515454
mov edx, dword [ebp - 4]
call fcn.004044ec
mov eax, dword [ebp - 0x168]
call fcn.004046a0
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov esi, eax
cmp esi, 0xffffffff
setne al
jmp 0x5152be
lea eax, [ebp - 8]
lea edx, [edi + 0x2c]
mov ecx, 0x104
call fcn.00404450
mov eax, dword [edi]
cmp eax, 0x10
je 0x515207
cmp eax, 2
je 0x515207
cmp eax, 4
je 0x515207
cmp eax, 0x80
je 0x515207
cmp eax, 0x100
jne 0x5152b1
push dword [ebp - 4]
push 0x515448
push dword [ebp - 8]
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00404560
mov eax, dword [ebp - 0x16c]
call fcn.00409298
test al, al
je 0x51525c
lea edx, [ebp - 0x170]
mov eax, dword [ebp - 8]
call fcn.0040863c
mov edx, dword [ebp - 0x170]
mov eax, 0x515464
call fcn.004047e4
dec eax
jne 0x51525c
mov edx, dword [ebp - 8]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
push dword [ebp - 4]
push 0x515448
push dword [ebp - 8]
push 0x515470
lea eax, [ebp - 0x174]
mov edx, 4
call fcn.00404560
mov eax, dword [ebp - 0x174]
call fcn.00409288
test al, al
je 0x5152b1
push dword [ebp - 4]
push 0x515448
push dword [ebp - 8]
lea eax, [ebp - 0x178]
mov edx, 3
call fcn.00404560
mov eax, dword [ebp - 0x178]
call fcn.00514f4c
push edi
push esi
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x5151d4
push esi
call sub.kernel32.dll_FindClose_1
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x515366
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov esi, dword [ebp - 0xc]
inc esi
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
sub eax, esi
jl 0x51535e
inc eax
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x18]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
call fcn.004045ec
jbe 0x515358
mov ecx, dword [ebp - 0x14]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x20]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x20]
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea ecx, [ebp - 0x18]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
inc esi
dec dword [ebp - 0x20]
jne 0x51530d
inc dword [ebp - 0xc]
dec dword [ebp - 0x1c]
jne 0x5152ec
call fcn.0053c3f0
test al, al
je 0x515376
mov esi, 9
jmp 0x51537b
mov esi, 2
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
cmp eax, 0
jl 0x5153df
mov dword [ebp - 0xc], eax
inc dword [ebp - 0x10]
cmp esi, dword [ebp - 0x10]
jg 0x5153d6
push dword [ebp - 4]
push 0x515448
lea ecx, [ebp - 0x180]
mov edx, dword [ebp - 0xc]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x180]
lea eax, [ebp - 0x17c]
mov edx, 3
call fcn.00404560
mov eax, dword [ebp - 0x17c]
call fcn.00514f4c
mov edx, dword [ebp - 0xc]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x48]
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xffffffff
jne 0x51538b
push 0x3e8
call sub.kernel32.dll_Sleep_1
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.005155bc
mov eax, ebx
call fcn.004033ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x515439
lea eax, [ebp - 0x180]
mov edx, 8
call fcn.00404204
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404204
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404204
ret