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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5365a8
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x5c6150]
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 edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x40]
push 0x597158
push esi
call fcn.00514290
push 0x250
lea eax, [ebp - 0x290]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004d9fe0
add esp, 0xc
lea ecx, [ebp - 0x290]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x294], eax
cmp eax, 0xffffffff
je 0x512486
mov ebx, dword [ebp + 0xc]
nop dword [eax]
mov ecx, 0x596174
lea eax, [ebp - 0x264]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x5122b6
test dx, dx
je 0x5122b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x5122b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x512290
xor eax, eax
jmp 0x5122bb
sbb eax, eax
or eax, 1
test eax, eax
je 0x512465
mov ecx, 0x596178
lea eax, [ebp - 0x264]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x5122f6
test dx, dx
je 0x5122f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x5122f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x5122d0
xor eax, eax
jmp 0x5122fb
sbb eax, eax
or eax, 1
test eax, eax
je 0x512465
test byte [ebp - 0x290], 0x10
je 0x5123c0
test bl, bl
je 0x512465
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov ecx, esi
mov byte [ebp - 4], 1
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x512335
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00413520
lea ecx, [ebp - 0x28]
call fcn.00513e30
mov byte [ebp - 4], 2
cmp word [ebp - 0x264], 0
je 0x5123a7
push 1
push 0x597154
lea ecx, [ebp - 0x28]
call fcn.0042c750
lea ecx, [ebp - 0x264]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x512380
sub ecx, edx
lea eax, [ebp - 0x264]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0042c750
lea ecx, [ebp - 0x28]
call fcn.00513e30
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
mov ecx, edi
push eax
call fcn.005121f0
jmp 0x512459
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov ecx, esi
mov byte [ebp - 4], 3
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5123e0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00413520
lea ecx, [ebp - 0x28]
call fcn.00513e30
mov byte [ebp - 4], 4
cmp word [ebp - 0x264], 0
je 0x51244e
push 1
push 0x597154
lea ecx, [ebp - 0x28]
call fcn.0042c750
lea ecx, [ebp - 0x264]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x512427
sub ecx, edx
lea eax, [ebp - 0x264]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0042c750
lea ecx, [ebp - 0x28]
call fcn.00513e30
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0044bff0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.004134c0
lea eax, [ebp - 0x290]
push eax
push dword [ebp - 0x294]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x512280
mov eax, dword [ebp - 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x40]
call fcn.004134c0
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.004d6cfd
mov esp, ebp
pop ebp
ret 8