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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a014e
mov eax, dword fs:[0]
push eax
sub esp, 0x2f4
mov eax, dword [0x629a40]
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 - 0x2fc], ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x2f4], eax
mov dword [ebp - 0x2f8], ebx
test eax, eax
jne 0x41c9d1
xor eax, eax
jmp 0x41cdc3
test ebx, ebx
je 0x41c9ca
push eax
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x2e0], 0
call fcn.00403d10
push 3
push 0x61d954
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 0
call fcn.0040c670
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
push ebx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00403d10
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.0042ab90
mov dword [ebp - 0x2ec], 0
mov dword [ebp - 0x2e8], 0
mov dword [ebp - 0x2e4], 0
push 0x61db10
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
call fcn.00403d10
mov byte [ebp - 4], 4
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x28]
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.00403d10
lea eax, [ebp - 0x2ec]
mov byte [ebp - 4], 5
push eax
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x28]
call fcn.0042b400
mov eax, dword [ebp - 0x14]
add esp, 4
cmp eax, 8
jb 0x41caa6
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004043b0
xor eax, eax
mov byte [ebp - 4], 3
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x41cad3
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.004043b0
mov esi, dword [ebp - 0x2e8]
mov eax, 0x2aaaaaab
mov ebx, dword [ebp - 0x2ec]
mov ecx, esi
sub ecx, ebx
xor edi, edi
imul ecx
lea ecx, [ebp - 0x2d8]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x74], 8
mov dword [ebp - 0x2f0], eax
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, eax
mov dword [ebp - 0x2dc], edx
cmp edx, 0xffffffff
je 0x41cca7
nop dword [eax]
lea eax, [ebp - 0x2d8]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edx, dword [ebp - 0x2dc]
test eax, eax
je 0x41cca1
mov cx, word [ebp - 0x2ac]
cmp cx, 0x2e
je 0x41cb30
mov ax, word [ebp - 0x2aa]
test ax, ax
je 0x41cb30
cmp ax, 0x2e
jne 0x41cb75
cmp word [ebp - 0x2a8], 0
je 0x41cb30
test cx, cx
jne 0x41cb7e
xor ecx, ecx
jmp 0x41cb96
lea ecx, [ebp - 0x2ac]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41cb87
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x40]
call fcn.00404030
test byte [ebp - 0x2d8], 0x10
je 0x41cc1a
push dword [ebp - 0x2f4]
lea ecx, [ebp - 0x28]
call fcn.00403d10
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x28]
call fcn.0040c7a0
push 0x61b718
lea ecx, [ebp - 0x28]
call fcn.0040c5d0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x2f8]
cmovae eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2fc]
push eax
call fcn.0041c980
lea ecx, [ebp - 0x28]
test eax, eax
jne 0x41cc8c
mov byte [ebp - 4], 3
call fcn.00403020
mov edx, dword [ebp - 0x2dc]
jmp 0x41cb30
lea ecx, [ebp - 0x40]
call fcn.0042ab90
mov esi, ebx
mov edx, dword [ebp - 0x2dc]
cmp ebx, dword [ebp - 0x2e8]
je 0x41cb30
cmp dword [esi + 0x14], 8
jb 0x41cc40
mov eax, dword [esi]
jmp 0x41cc42
mov eax, esi
push eax
lea ecx, [ebp - 0x70]
call fcn.00403d10
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x70]
call fcn.00404db0
test eax, eax
lea ecx, [edi + 1]
mov eax, dword [ebp - 0x5c]
cmovne ecx, edi
mov edi, ecx
cmp eax, 8
jb 0x41cc76
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.004043b0
add esi, 0x18
cmp esi, dword [ebp - 0x2e8]
jne 0x41cc36
mov edx, dword [ebp - 0x2dc]
jmp 0x41cb30
mov dword [ebp - 0x2e0], 1
call fcn.00403020
mov edx, dword [ebp - 0x2dc]
mov esi, dword [ebp - 0x2e8]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
jle 0x41cccc
mov eax, dword [ebp - 0x2e0]
mov ecx, 1
cmp edi, dword [ebp - 0x2f0]
cmovge eax, ecx
mov dword [ebp - 0x2e0], eax
test ebx, ebx
je 0x41cd50
push dword [ebp - 0x2f0]
mov edx, esi
push ecx
mov ecx, ebx
call fcn.004109f0
mov ecx, dword [ebp - 0x2e4]
mov eax, 0x2aaaaaab
sub ecx, ebx
add esp, 8
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0xaaaaaaa
jbe 0x41cd0c
call fcn.0057ef83
lea eax, [eax + eax*2]
shl eax, 3
cmp eax, 0x1000
jb 0x41cd47
test bl, 0x1f
je 0x41cd23
call fcn.0057ef83
mov eax, dword [ebx - 4]
cmp eax, ebx
jb 0x41cd2f
call fcn.0057ef83
sub ebx, eax
cmp ebx, 4
jae 0x41cd3b
call fcn.0057ef83
cmp ebx, 0x23
jbe 0x41cd45
call fcn.0057ef83
mov ebx, eax
push ebx
call fcn.00572ac4
add esp, 4
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x41cd65
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004043b0
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x48], 0
cmp eax, 8
jb 0x41cd8e
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004043b0
mov ecx, dword [ebp - 0x74]
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp ecx, 8
jb 0x41cdbd
inc ecx
push ecx
push dword [ebp - 0x88]
lea ecx, [ebp - 0x88]
call fcn.004043b0
mov eax, dword [ebp - 0x2e0]
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.00572ac9
mov esp, ebp
pop ebp
ret 8