Function at 0x51c8f4
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x31
push 0
push 0
dec ecx
jne 0x51c8fc
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 0x51cc63
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, 0x51cc7c
call fcn.004045ec
jne 0x51c96c
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 [0x417b98]
call fcn.0040337c
mov ebx, eax
push edi
lea eax, [ebp - 0x168]
mov ecx, 0x51cc88
mov edx, dword [ebp - 4]
call main
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 0x51ca96
lea eax, [ebp - 8]
lea edx, [edi + 0x2c]
mov ecx, 0x104
call fcn.00404450
mov eax, dword [edi]
cmp eax, 0x10
je 0x51c9df
cmp eax, 2
je 0x51c9df
cmp eax, 4
je 0x51c9df
cmp eax, 0x80
je 0x51c9df
cmp eax, 0x100
jne 0x51ca89
push dword [ebp - 4]
push 0x51cc7c
push dword [ebp - 8]
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00404560
mov eax, dword [ebp - 0x16c]
call fcn.00409280
test al, al
je 0x51ca34
lea edx, [ebp - 0x170]
mov eax, dword [ebp - 8]
call fcn.00408624
mov edx, dword [ebp - 0x170]
mov eax, 0x51cc98
call fcn.004047e4
dec eax
jne 0x51ca34
mov edx, dword [ebp - 8]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
push dword [ebp - 4]
push 0x51cc7c
push dword [ebp - 8]
push 0x51cca4
lea eax, [ebp - 0x174]
mov edx, 4
call fcn.00404560
mov eax, dword [ebp - 0x174]
call fcn.00409270
test al, al
je 0x51ca89
push dword [ebp - 4]
push 0x51cc7c
push dword [ebp - 8]
lea eax, [ebp - 0x178]
mov edx, 3
call fcn.00404560
mov eax, dword [ebp - 0x178]
call fcn.0051c724
push edi
push esi
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x51c9ac
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 0x51cb3e
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 0x51cb36
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 0x51cb30
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 0x51cae5
inc dword [ebp - 0xc]
dec dword [ebp - 0x1c]
jne 0x51cac4
call fcn.00543430
test al, al
je 0x51cb4e
mov esi, 9
jmp 0x51cb53
mov esi, 3
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
cmp eax, 0
jl 0x51cbb7
mov dword [ebp - 0xc], eax
inc dword [ebp - 0x10]
cmp esi, dword [ebp - 0x10]
jg 0x51cbae
push dword [ebp - 4]
push 0x51cc7c
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.0051c724
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 0x51cb63
push 0x3e8
call sub.kernel32.dll_Sleep_1
call fcn.00543430
test al, al
je 0x51cbd6
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0051ce08
jmp 0x51cc24
lea eax, [ebp - 0x184]
mov ecx, 0x51ccbc
mov edx, dword [ebp - 4]
call main
mov eax, dword [ebp - 0x184]
call fcn.00409270
test al, al
je 0x51cc16
lea eax, [ebp - 0x188]
mov ecx, 0x51ccbc
mov edx, dword [ebp - 4]
call main
mov eax, dword [ebp - 0x188]
call fcn.004093c0
call fcn.0051ace4
test al, al
je 0x51cc24
call fcn.0051bcf4
mov eax, ebx
call fcn.004033ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51cc6a
lea eax, [ebp - 0x188]
mov edx, 0xa
call fcn.00404204
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404204
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404204
ret