Function at 0x4051c0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x4710b0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x258], eax
call fcn.0043dc80
push esi
lea ecx, [ebp - 0x114]
push 0x468f18
push ecx
call fcn.0043f2fe
add esp, 0x10
lea edx, [ebp - 0x254]
push edx
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x25c], eax
cmp eax, 0xffffffff
je 0x4053c1
jmp 0x405230
test byte [ebp - 0x254], 0x10
jne 0x40539e
mov dl, byte [ebp - 0x228]
xor eax, eax
test dl, dl
je 0x405264
lea esp, [esp]
inc eax
cmp byte [ebp + eax - 0x228], 0
jne 0x405250
cmp eax, 0x14
ja 0x40539e
cmp dword [ebp + 0x10], 1
jle 0x405329
xor esi, esi
xor eax, eax
lea ecx, [ebp - 0x228]
test dl, dl
je 0x405291
lea esp, [esp]
cmp eax, 0x14
jae 0x405291
movsx edx, byte [ecx]
inc ecx
add esi, edx
inc eax
cmp byte [ecx], 0
jne 0x405280
xor edx, edx
mov eax, esi
div dword [ebp + 0x10]
mov ecx, dword [ebp - 0x258]
mov esi, edx
mov edx, dword [ebx + esi*4]
mov eax, dword [ecx + esi*4]
inc edx
cmp edx, eax
jbe 0x4052ec
add eax, 0x400
mov dword [ecx + esi*4], eax
mov ecx, dword [edi + esi*4]
test ecx, ecx
jne 0x4052d2
lea ecx, [eax*8]
sub ecx, eax
add ecx, ecx
add ecx, ecx
push ecx
call fcn.0043e0ba
add esp, 4
jmp 0x4052e9
lea edx, [eax*8]
sub edx, eax
add edx, edx
add edx, edx
push edx
push ecx
call fcn.0043e00d
add esp, 8
mov dword [edi + esi*4], eax
mov eax, dword [edi + esi*4]
mov dword [ebp - 0x260], eax
mov eax, dword [ebx + esi*4]
lea edx, [eax*8]
sub edx, eax
mov eax, dword [ebp - 0x260]
lea ecx, [ebp - 0x228]
lea edx, [eax + edx*4 + 4]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x405311
mov ecx, dword [ebp - 0x260]
mov dword [edi + esi*4], ecx
inc dword [ebx + esi*4]
jmp 0x40539e
mov ecx, dword [ebp - 0x258]
mov edx, dword [ebx]
mov eax, dword [ecx]
inc edx
cmp edx, eax
jbe 0x405376
add eax, 0x400
mov dword [ecx], eax
mov ecx, dword [edi]
test ecx, ecx
jne 0x40535d
lea ecx, [eax*8]
sub ecx, eax
add ecx, ecx
add ecx, ecx
push ecx
call fcn.0043e0ba
add esp, 4
jmp 0x405374
lea edx, [eax*8]
sub edx, eax
add edx, edx
add edx, edx
push edx
push ecx
call fcn.0043e00d
add esp, 8
mov dword [edi], eax
mov eax, dword [ebx]
mov esi, dword [edi]
lea edx, [eax*8]
sub edx, eax
lea ecx, [ebp - 0x228]
lea edx, [esi + edx*4 + 4]
lea ecx, [ecx]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x405390
mov dword [edi], esi
inc dword [ebx]
mov esi, dword [ebp - 0x25c]
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405230
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x10], 1
jle 0x40542e
mov eax, dword [ebp - 0x258]
sub eax, ebx
mov esi, ebx
sub edi, ebx
mov dword [ebp - 0x25c], eax
mov ebx, 0x10
mov edi, edi
mov ecx, dword [esi]
test ecx, ecx
je 0x405415
mov dword [eax + esi], ecx
mov dword [esi], 0
mov eax, dword [eax + esi]
mov edx, dword [edi + esi]
lea ecx, [eax*8]
sub ecx, eax
add ecx, ecx
add ecx, ecx
push ecx
push edx
call fcn.0043e00d
mov dword [edi + esi], eax
mov eax, dword [ebp - 0x25c]
add esp, 8
add esi, 4
dec ebx
jne 0x4053e0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0043db8a
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx]
test eax, eax
je 0x40545f
mov ecx, dword [ebp - 0x258]
mov dword [ecx], eax
mov dword [ebx], 0
mov eax, dword [ecx]
mov edx, dword [edi]
lea ecx, [eax*8]
sub ecx, eax
add ecx, ecx
add ecx, ecx
push ecx
push edx
call fcn.0043e00d
add esp, 8
mov dword [edi], eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043db8a
mov esp, ebp
pop ebp
ret 0xc