Function at 0x510ce0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58279f
mov eax, dword fs:[0]
push eax
sub esp, 0x374
mov eax, dword [0x5fc150]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x330], ecx
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x328], eax
cmp dword [esi + 0x18], 0
jne 0x510d8c
push edi
lea ecx, [ebp - 0x88]
call fcn.004029a0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x34]
lea eax, [ebp - 0x88]
cmp ecx, eax
je 0x510d53
push 0xffffffffffffffff
push 0
push eax
call fcn.00406ac0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x74]
cmp eax, 8
jb 0x510d75
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp word [edi], ax
jne 0x510db7
xor ecx, ecx
jmp 0x510dcf
mov ecx, edi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x510dc0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x40]
call fcn.00406c80
mov dword [ebp - 4], 1
cmp dword [ebp - 0x2c], 8
mov ecx, dword [ebp - 0x40]
jae 0x510dec
lea ecx, [ebp - 0x40]
mov eax, dword [ebp - 0x30]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x510e06
push 1
push 0x588408
lea ecx, [ebp - 0x40]
call fcn.00406760
push 3
push 0x588410
lea ecx, [ebp - 0x40]
call fcn.00406760
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x40]
jae 0x510e21
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x324]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp - 0x32c], ebx
cmp ebx, 0xffffffff
mov ebx, dword [ebp + 0x14]
je 0x510fc7
mov ecx, dword [ebp - 0x324]
test cl, 0x10
je 0x510f84
cmp byte [ebp + 0x18], 0
jne 0x510e61
test cl, 2
jne 0x510fc7
test bl, bl
je 0x510fc7
lea eax, [ebp - 0x2f8]
push 0x58823c
push eax
call fcn.00423b60
add esp, 8
test eax, eax
je 0x510fc7
lea eax, [ebp - 0x2f8]
push 0x588418
push eax
call fcn.00423b60
add esp, 8
test eax, eax
je 0x510fc7
push edi
lea ecx, [ebp - 0x28]
call fcn.004029a0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x510eba
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x510ed2
push 0x588408
lea ecx, [ebp - 0x28]
call fcn.0040a2e0
lea eax, [ebp - 0x2f8]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040a2e0
push 0x588408
lea ecx, [ebp - 0x28]
call fcn.0040a2e0
lea eax, [ebp - 0x2f8]
push eax
lea ecx, [ebp - 0x70]
call fcn.004029a0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x70]
push esi
push eax
lea ecx, [ebp - 0xd4]
call fcn.0050e830
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
call fcn.004038c0
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x510f29
lea eax, [ebp - 0x28]
push dword [ebp + 0x18]
lea ecx, [ebp - 0xd4]
push ebx
push ecx
push dword [ebp - 0x328]
mov ecx, dword [ebp - 0x330]
push eax
call fcn.00510ce0
sub esp, 0x4c
lea eax, [ebp - 0xd4]
mov ecx, esp
mov dword [ebp - 0x334], esp
push eax
call fcn.0050e770
mov byte [ebp - 4], 6
mov byte [ebp - 4], 5
mov ecx, esi
call fcn.005100f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd4]
call fcn.0050eec0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
jmp 0x510fc2
push dword [ebp - 0x328]
lea eax, [ebp - 0x2f8]
push eax
call fcn.00426390
add esp, 8
test al, al
je 0x510fc7
lea eax, [ebp - 0x2f8]
push eax
lea ecx, [ebp - 0x70]
call fcn.004029a0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x70]
push eax
mov ecx, esi
call fcn.0050f4f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.004038c0
lea eax, [ebp - 0x324]
push eax
push dword [ebp - 0x32c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x511276
mov eax, dword [ebp - 0x324]
test al, 0x10
je 0x5111ab
cmp byte [ebp + 0x18], 0
jne 0x510ffe
test al, 2
jne 0x51125b
test bl, bl
je 0x51125b
lea eax, [ebp - 0x2f8]
push 0x58823c
push eax
call fcn.00423b60
add esp, 8
test eax, eax
je 0x51125b
lea eax, [ebp - 0x2f8]
push 0x588418
push eax
call fcn.00423b60
add esp, 8
test eax, eax
je 0x51125b
push edi
lea ecx, [ebp - 0x58]
call fcn.004029a0
mov byte [ebp - 4], 8
cmp dword [ebp - 0x44], 8
mov ecx, dword [ebp - 0x58]
jae 0x511057
lea ecx, [ebp - 0x58]
mov eax, dword [ebp - 0x48]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x511071
push 1
push 0x588408
lea ecx, [ebp - 0x58]
call fcn.00406760
cmp word [ebp - 0x2f8], 0
jne 0x51107f
xor ecx, ecx
jmp 0x51109f
lea ecx, [ebp - 0x2f8]
lea edx, [ecx + 2]
jmp 0x511090
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x511090
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x2f8]
push eax
lea ecx, [ebp - 0x58]
call fcn.00406760
push 1
push 0x588408
lea ecx, [ebp - 0x58]
call fcn.00406760
lea eax, [ebp - 0x2f8]
push eax
lea ecx, [ebp - 0x70]
call fcn.004029a0
mov byte [ebp - 4], 9
lea eax, [ebp - 0x70]
push esi
push eax
lea ecx, [ebp - 0xd4]
call fcn.0050e830
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x5110fa
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x5c], 7
cmp dword [ebp - 0x44], 8
mov word [ebp - 0x70], ax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x60], 0
jae 0x51111a
lea eax, [ebp - 0x58]
push dword [ebp + 0x18]
lea ecx, [ebp - 0xd4]
push ebx
push ecx
push dword [ebp - 0x328]
mov ecx, dword [ebp - 0x330]
push eax
call fcn.00510ce0
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0x380]
call fcn.0050e770
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x380]
push eax
mov ecx, esi
call fcn.00512d30
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x380]
call fcn.0050eec0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xd4]
call fcn.0050eec0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x511192
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
jmp 0x51125b
push dword [ebp - 0x328]
lea eax, [ebp - 0x2f8]
push eax
call fcn.00426390
add esp, 8
test al, al
je 0x51125b
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [ebp - 0x2f8], ax
jne 0x5111f7
xor ecx, ecx
jmp 0x51120f
lea ecx, [ebp - 0x2f8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x511200
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x2f8]
push eax
lea ecx, [ebp - 0x28]
call fcn.00406c80
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.0050f4f0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x511247
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x324]
push eax
push dword [ebp - 0x32c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x510fe2
push dword [ebp - 0x32c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x51129e
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052c233
mov esp, ebp
pop ebp
ret 0x14