Function at 0x515e28
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x32
push 0
push 0
dec ecx
jne 0x515e30
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404690
lea edi, [ebp - 0x164]
xor eax, eax
push ebp
push 0x516222
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x19], 0
mov dl, 1
mov eax, dword [0x417bc0]
call fcn.0040337c
mov ebx, eax
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.00510c38
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00510dcc
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00510fc8
mov edx, 0x138
mov eax, dword [ebp - 4]
call fcn.0047090c
mov edx, 0x85
mov eax, dword [ebp - 4]
call fcn.00470930
mov ecx, 0x1e
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00510c94
mov ecx, 0xff
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00510c94
mov edx, 0x14
mov eax, dword [ebp - 4]
call fcn.00510d7c
lea eax, [ebp - 0x168]
push eax
mov eax, dword [ebp - 8]
call fcn.004044a0
mov edx, eax
mov ecx, 1
mov eax, dword [ebp - 8]
call fcn.00404700
mov eax, dword [ebp - 0x168]
mov edx, 0x516238
call fcn.004045ec
jne 0x515f22
mov eax, dword [ebp - 8]
call fcn.004044a0
mov edx, eax
lea eax, [ebp - 8]
mov ecx, 1
call fcn.00404740
push edi
lea eax, [ebp - 0x16c]
mov ecx, 0x516244
mov edx, dword [ebp - 8]
call fcn.004044ec
mov eax, dword [ebp - 0x16c]
call fcn.004046a0
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov esi, eax
cmp esi, 0xffffffff
setne al
jmp 0x516048
lea eax, [ebp - 0x18]
lea edx, [edi + 0x2c]
mov ecx, 0x104
call fcn.00404450
mov eax, dword [edi]
cmp eax, 0x10
je 0x515f87
cmp eax, 2
je 0x515f87
cmp eax, 4
je 0x515f87
cmp eax, 0x80
je 0x515f87
cmp eax, 0x100
jne 0x51603b
push dword [ebp - 8]
push 0x516238
push dword [ebp - 0x18]
lea eax, [ebp - 0x170]
mov edx, 3
call fcn.00404560
mov eax, dword [ebp - 0x170]
call fcn.00409298
test al, al
je 0x51603b
lea edx, [ebp - 0x174]
mov eax, dword [ebp - 0x18]
call fcn.0040863c
mov edx, dword [ebp - 0x174]
mov eax, 0x516254
call fcn.004047e4
dec eax
jne 0x51603b
push dword [ebp - 8]
push 0x516238
push dword [ebp - 0x18]
push 0x516260
lea eax, [ebp - 0x178]
mov edx, 4
call fcn.00404560
mov eax, dword [ebp - 0x178]
call fcn.00409288
test al, al
je 0x516031
push dword [ebp - 8]
push 0x516238
push dword [ebp - 0x18]
lea eax, [ebp - 0x17c]
mov edx, 3
call fcn.00404560
mov eax, dword [ebp - 0x17c]
call fcn.00514f4c
mov byte [ebp - 0x19], 1
jmp 0x51603b
mov edx, dword [ebp - 0x18]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
push edi
push esi
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x515f54
push esi
call sub.kernel32.dll_FindClose_1
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x5160ea
inc eax
mov dword [ebp - 0x20], eax
xor esi, esi
lea ecx, [ebp - 0x10]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [esi + 1]
push eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
pop edx
sub eax, edx
jl 0x5160e4
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xc], edx
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
call fcn.004045ec
jbe 0x5160dc
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x20]
mov ecx, dword [ebp - 0x14]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x20]
lea ecx, [ebp - 0x10]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
inc dword [ebp - 0xc]
dec dword [ebp - 0x24]
jne 0x516090
inc esi
dec dword [ebp - 0x20]
jne 0x51606c
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x5161c2
inc eax
mov dword [ebp - 0x20], eax
xor esi, esi
test esi, esi
jle 0x516116
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x24c]
inc edx
mov eax, dword [ebp - 4]
call fcn.00510fc8
lea edx, [ebp - 0x184]
lea eax, [esi + 1]
call fcn.00408d80
mov ecx, dword [ebp - 0x184]
lea eax, [ebp - 0x180]
mov edx, 0x516278
call fcn.004044ec
mov eax, dword [ebp - 0x180]
push eax
mov ecx, esi
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00513144
lea ecx, [ebp - 0x18c]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x18c]
push 0x516284
lea ecx, [ebp - 0x194]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x194]
lea edx, [ebp - 0x190]
call fcn.00515cec
push dword [ebp - 0x190]
push 0x516290
lea eax, [ebp - 0x188]
mov edx, 4
call fcn.00404560
mov eax, dword [ebp - 0x188]
push eax
mov ecx, esi
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00513144
inc esi
dec dword [ebp - 0x20]
jne 0x516100
cmp byte [ebp - 0x19], 0
je 0x5161d2
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.005155bc
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24c], 1
jle 0x5161e8
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00510e64
mov eax, ebx
call fcn.004033ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x516229
lea eax, [ebp - 0x194]
mov edx, 0xc
call fcn.00404204
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404204
lea eax, [ebp - 8]
call fcn.004041e0
ret