Function at 0x41c810
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x45a06c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x6c], eax
nop dword [eax + eax]
mov al, byte [esi]
test al, al
jne 0x41ca6c
cmp dword [esi + 0x2a0], 0
je 0x41ccac
test al, al
jne 0x41ca6c
mov ecx, dword [esi + 0x2a0]
xor eax, eax
add ecx, dword [esi + 0x29c]
mov edx, dword [esi + 0x290]
test edx, edx
je 0x41c86f
mov edx, dword [edx]
test edx, edx
je 0x41c86f
mov eax, dword [edx]
lea edx, [ecx - 1]
test eax, eax
je 0x41c886
mov eax, dword [eax]
test eax, eax
je 0x41c886
mov eax, dword [eax]
test eax, eax
je 0x41c886
mov eax, dword [eax]
jmp 0x41c888
xor eax, eax
mov ecx, dword [eax + 8]
lea ebx, [esi + 0x258]
mov eax, dword [eax + 4]
dec ecx
and ecx, edx
push dword [eax + ecx*4]
mov ecx, ebx
call fcn.00417b40
mov eax, dword [esi + 0x2a0]
mov ecx, dword [esi + 0x29c]
dec eax
add ecx, eax
mov eax, dword [esi + 0x298]
dec eax
and ecx, eax
mov eax, dword [esi + 0x294]
mov edi, dword [eax + ecx*4]
mov eax, dword [edi + 0x14]
cmp eax, 8
jb 0x41c90e
mov ecx, dword [edi]
inc eax
cmp eax, 0x7fffffff
ja 0x41cd26
add eax, eax
cmp eax, 0x1000
jb 0x41c905
test cl, 0x1f
jne 0x41cd26
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x41cd26
sub ecx, eax
sub ecx, 4
cmp ecx, 0x1f
ja 0x41cd26
mov ecx, eax
push ecx
call fcn.0042740d
add esp, 4
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
add dword [esi + 0x2a0], 0xffffffff
jne 0x41c930
mov dword [esi + 0x29c], eax
push ebx
lea ecx, [ebp - 0x38]
call fcn.00417960
sub esp, 8
cmp dword [esi + 0x288], 0
jne 0x41c956
mov eax, esp
mov dword [eax], 0x454348
mov dword [eax + 4], 1
jmp 0x41c978
cmp dword [esi + 0x28c], 8
lea ecx, [esi + 0x278]
mov edx, esp
jb 0x41c96d
mov ecx, dword [esi + 0x278]
mov dword [edx], ecx
mov eax, dword [esi + 0x288]
mov dword [edx + 4], eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x38]
call fcn.00418de0
push eax
lea ecx, [ebp - 0x38]
call fcn.00417cb0
mov eax, dword [ebp - 0x3c]
cmp eax, 8
jb 0x41c9da
mov ecx, dword [ebp - 0x50]
inc eax
cmp eax, 0x7fffffff
ja 0x41cd26
add eax, eax
cmp eax, 0x1000
jb 0x41c9d1
test cl, 0x1f
jne 0x41cd26
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x41cd26
sub ecx, eax
sub ecx, 4
cmp ecx, 0x1f
ja 0x41cd26
mov ecx, eax
push ecx
call fcn.0042740d
add esp, 4
call fcn.0041a200
cmp eax, 4
lea ebx, [esi + 4]
lea eax, [ebp - 0x38]
jl 0x41ca04
cmp dword [ebp - 0x24], 8
push 2
cmovae eax, dword [ebp - 0x38]
push 0
push 0
push ebx
push 1
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
jmp 0x41ca14
cmp dword [ebp - 0x24], 8
push ebx
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi + 0x254], eax
mov eax, dword [ebp - 0x24]
mov byte [esi], 1
cmp eax, 8
jb 0x41ca96
mov ecx, dword [ebp - 0x38]
inc eax
cmp eax, 0x7fffffff
ja 0x41cd26
add eax, eax
cmp eax, 0x1000
jb 0x41ca61
test cl, 0x1f
jne 0x41cd26
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x41cd26
sub ecx, eax
sub ecx, 4
cmp ecx, 0x1f
ja 0x41cd26
mov ecx, eax
push ecx
call fcn.0042740d
add esp, 4
jmp 0x41ca96
lea ebx, [esi + 4]
push ebx
push dword [esi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41ca96
push dword [esi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esi + 0x254], 0xffffffff
cmp dword [esi + 0x254], 0xffffffff
jne 0x41cb3d
xor eax, eax
mov byte [esi], 0
mov word [ebp - 0x68], ax
lea edi, [esi + 0x278]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
cmp edi, eax
je 0x41c830
mov eax, dword [edi + 0x14]
cmp eax, 8
jb 0x41cb17
mov ecx, dword [edi]
inc eax
cmp eax, 0x7fffffff
ja 0x41cd26
add eax, eax
cmp eax, 0x1000
jb 0x41cb0e
test cl, 0x1f
jne 0x41cd26
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x41cd26
sub ecx, eax
sub ecx, 4
cmp ecx, 0x1f
ja 0x41cd26
mov ecx, eax
push ecx
call fcn.0042740d
add esp, 4
movups xmm0, xmmword [ebp - 0x68]
mov dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 7
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x58]
movq qword [edi + 0x10], xmm0
jmp 0x41c830
sub esp, 8
lea edi, [esi + 0x30]
mov edx, esp
mov dword [edx], edi
test edi, edi
jne 0x41cb4f
xor ecx, ecx
jmp 0x41cb67
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 0x70], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41cb57
sub ecx, dword [ebp - 0x70]
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x20]
call fcn.00417a30
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.0041d060
test al, al
jne 0x41cc56
sub esp, 8
mov ecx, esp
mov dword [ecx], edi
test edi, edi
je 0x41cba2
lea edx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x41cb93
sub edi, edx
sar edi, 1
lea eax, [ebp - 0x50]
mov dword [ecx + 4], edi
push eax
lea ecx, [esi + 0x258]
call fcn.00418de0
push eax
lea ecx, [ebp - 0x20]
call fcn.00417cb0
mov eax, dword [ebp - 0x3c]
cmp eax, 8
jb 0x41cc0a
mov ecx, dword [ebp - 0x50]
inc eax
cmp eax, 0x7fffffff
ja 0x41cd26
add eax, eax
cmp eax, 0x1000
jb 0x41cc01
test cl, 0x1f
jne 0x41cd26
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x41cd26
sub ecx, eax
sub ecx, 4
cmp ecx, 0x1f
ja 0x41cd26
mov ecx, eax
push ecx
call fcn.0042740d
add esp, 4
test byte [ebx], 0x10
je 0x41cc49
cmp byte [esi + 0x270], 0
je 0x41cc40
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
jne 0x41cc40
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x290]
call fcn.0041cd30
test byte [esi + 0x274], 2
jmp 0x41cc50
test byte [esi + 0x274], 1
jne 0x41ccd7
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x41c830
mov ecx, dword [ebp - 0x20]
inc eax
cmp eax, 0x7fffffff
ja 0x41cd26
add eax, eax
cmp eax, 0x1000
jb 0x41cc9e
test cl, 0x1f
jne 0x41cd26
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x41cd26
sub ecx, eax
sub ecx, 4
cmp ecx, 0x1f
ja 0x41cd26
mov ecx, eax
push ecx
call fcn.0042740d
add esp, 4
jmp 0x41c830
mov ecx, dword [ebp - 0x6c]
xor eax, eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
mov eax, ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00427412
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp - 0x6c]
lea ecx, [ebp - 0x20]
movups xmm0, xmmword [ebp - 0x20]
xor eax, eax
mov word [ebp - 0x20], ax
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
movups xmmword [ebx], xmm0
movq xmm0, qword [ebp - 0x10]
movq qword [ebx + 0x10], xmm0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 7
call fcn.00417ae0
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427412
mov esp, ebp
pop ebp
ret 4
call fcn.0042c6c3
int3