Function at 0x51d674
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x32
push 0
push 0
dec ecx
jne 0x51d67c
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 0x51da6e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x19], 0
mov dl, 1
mov eax, dword [0x417b98]
call fcn.0040337c
mov ebx, eax
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.00518410
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.005185a4
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.005187a0
mov edx, 0x138
mov eax, dword [ebp - 4]
call fcn.0046f790
mov edx, 0x85
mov eax, dword [ebp - 4]
call fcn.0046f7b4
mov ecx, 0x1e
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0051846c
mov ecx, 0xff
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0051846c
mov edx, 0x14
mov eax, dword [ebp - 4]
call fcn.00518554
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, 0x51da84
call fcn.004045ec
jne 0x51d76e
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, 0x51da90
mov edx, dword [ebp - 8]
call main
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 0x51d894
lea eax, [ebp - 0x18]
lea edx, [edi + 0x2c]
mov ecx, 0x104
call fcn.00404450
mov eax, dword [edi]
cmp eax, 0x10
je 0x51d7d3
cmp eax, 2
je 0x51d7d3
cmp eax, 4
je 0x51d7d3
cmp eax, 0x80
je 0x51d7d3
cmp eax, 0x100
jne 0x51d887
push dword [ebp - 8]
push 0x51da84
push dword [ebp - 0x18]
lea eax, [ebp - 0x170]
mov edx, 3
call fcn.00404560
mov eax, dword [ebp - 0x170]
call fcn.00409280
test al, al
je 0x51d887
lea edx, [ebp - 0x174]
mov eax, dword [ebp - 0x18]
call fcn.00408624
mov edx, dword [ebp - 0x174]
mov eax, 0x51daa0
call fcn.004047e4
dec eax
jne 0x51d887
push dword [ebp - 8]
push 0x51da84
push dword [ebp - 0x18]
push 0x51daac
lea eax, [ebp - 0x178]
mov edx, 4
call fcn.00404560
mov eax, dword [ebp - 0x178]
call fcn.00409270
test al, al
je 0x51d87d
push dword [ebp - 8]
push 0x51da84
push dword [ebp - 0x18]
lea eax, [ebp - 0x17c]
mov edx, 3
call fcn.00404560
mov eax, dword [ebp - 0x17c]
call fcn.0051c724
mov byte [ebp - 0x19], 1
jmp 0x51d887
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 0x51d7a0
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 0x51d936
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 0x51d930
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 0x51d928
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 0x51d8dc
inc esi
dec dword [ebp - 0x20]
jne 0x51d8b8
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x51da0e
inc eax
mov dword [ebp - 0x20], eax
xor esi, esi
test esi, esi
jle 0x51d962
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x24c]
inc edx
mov eax, dword [ebp - 4]
call fcn.005187a0
lea edx, [ebp - 0x184]
lea eax, [esi + 1]
call fcn.00408d68
mov ecx, dword [ebp - 0x184]
lea eax, [ebp - 0x180]
mov edx, 0x51dac4
call main
mov eax, dword [ebp - 0x180]
push eax
mov ecx, esi
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0051a91c
lea ecx, [ebp - 0x18c]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x18c]
push 0x51dad0
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.0051d538
push dword [ebp - 0x190]
push 0x51dadc
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.0051a91c
inc esi
dec dword [ebp - 0x20]
jne 0x51d94c
cmp byte [ebp - 0x19], 0
je 0x51da1e
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0051ce08
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24c], 1
jle 0x51da34
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0051863c
mov eax, ebx
call fcn.004033ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51da75
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