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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x478050]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x6c], eax
nop dword [eax + eax]
mov al, byte [edi]
test al, al
jne 0x41a7f7
cmp dword [edi + 0x2a0], 0
je 0x41a9f1
test al, al
jne 0x41a7f7
mov ecx, dword [edi + 0x2a0]
xor eax, eax
add ecx, dword [edi + 0x29c]
mov edx, dword [edi + 0x290]
test edx, edx
je 0x41a59f
mov edx, dword [edx]
test edx, edx
je 0x41a59f
mov eax, dword [edx]
lea edx, [ecx - 1]
test eax, eax
je 0x41a5b6
mov eax, dword [eax]
test eax, eax
je 0x41a5b6
mov eax, dword [eax]
test eax, eax
je 0x41a5b6
mov eax, dword [eax]
jmp 0x41a5b8
xor eax, eax
mov ecx, dword [eax + 8]
lea ebx, [edi + 0x258]
mov eax, dword [eax + 4]
dec ecx
and ecx, edx
mov eax, dword [eax + ecx*4]
cmp ebx, eax
je 0x41a5da
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.004048d0
mov eax, dword [edi + 0x2a0]
mov ecx, dword [edi + 0x29c]
dec eax
add ecx, eax
mov eax, dword [edi + 0x298]
dec eax
and ecx, eax
mov eax, dword [edi + 0x294]
mov esi, dword [eax + ecx*4]
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x41a64d
mov ecx, dword [esi]
inc eax
cmp eax, 0x7fffffff
ja 0x41aa6a
add eax, eax
cmp eax, 0x1000
jb 0x41a644
test cl, 0x1f
jne 0x41aa6a
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x41aa6a
sub ecx, eax
cmp ecx, 4
jb 0x41aa6a
cmp ecx, 0x23
ja 0x41aa6a
mov ecx, eax
push ecx
call fcn.0044786d
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
add dword [edi + 0x2a0], 0xffffffff
jne 0x41a66f
mov dword [edi + 0x29c], eax
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x38]
xor eax, eax
mov dword [ebp - 0x24], 7
push 0xffffffffffffffff
push eax
push ebx
mov word [ebp - 0x38], ax
call fcn.004048d0
sub esp, 8
cmp dword [edi + 0x288], 0
jne 0x41a6a8
mov eax, esp
mov dword [eax], 0x471f6c
mov dword [eax + 4], 1
jmp 0x41a6cc
cmp dword [edi + 0x28c], 8
mov edx, esp
jb 0x41a6bb
mov ecx, dword [edi + 0x278]
jmp 0x41a6c1
lea ecx, [edi + 0x278]
mov dword [edx], ecx
mov eax, dword [edi + 0x288]
mov dword [edx + 4], eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040d7d0
lea ecx, [ebp - 0x38]
cmp ecx, eax
je 0x41a6e9
push 0xffffffffffffffff
push 0
push eax
call fcn.004048d0
mov eax, dword [ebp - 0x3c]
cmp eax, 8
jb 0x41a6fe
inc eax
lea ecx, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
call fcn.00405f00
cmp dword [0x47beb8], 0
jne 0x41a75f
push 0x4c
call fcn.0044783a
add esp, 4
mov ecx, eax
call fcn.0041ba00
mov ebx, eax
mov edx, 0x47beb8
mov ecx, ebx
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x41a75f
test ebx, ebx
je 0x41a75f
mov eax, dword [ebx + 0x48]
cmp eax, 0x10
jb 0x41a744
inc eax
lea ecx, [ebx + 0x34]
push eax
push dword [ebx + 0x34]
call fcn.00405260
mov dword [ebx + 0x48], 0xf
mov dword [ebx + 0x44], 0
push ebx
mov byte [ebx + 0x34], 0
call fcn.0044786d
add esp, 4
mov eax, dword [0x47beb8]
lea ebx, [edi + 4]
cmp dword [eax], 4
lea eax, [ebp - 0x38]
jl 0x41a789
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 0x41a799
cmp dword [ebp - 0x24], 8
push ebx
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [edi + 0x254], eax
mov eax, dword [ebp - 0x24]
mov byte [edi], 1
cmp eax, 8
jb 0x41a821
mov ecx, dword [ebp - 0x38]
inc eax
cmp eax, 0x7fffffff
ja 0x41aa6a
add eax, eax
cmp eax, 0x1000
jb 0x41a7ec
test cl, 0x1f
jne 0x41aa6a
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x41aa6a
sub ecx, eax
cmp ecx, 4
jb 0x41aa6a
cmp ecx, 0x23
ja 0x41aa6a
mov ecx, eax
push ecx
call fcn.0044786d
add esp, 4
jmp 0x41a821
lea ebx, [edi + 4]
push ebx
push dword [edi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41a821
push dword [edi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [edi + 0x254], 0xffffffff
cmp dword [edi + 0x254], 0xffffffff
jne 0x41a8c0
xor eax, eax
mov byte [edi], 0
mov word [ebp - 0x68], ax
lea esi, [edi + 0x278]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], 0
cmp esi, eax
je 0x41a560
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x41a869
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00405f00
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov ecx, dword [ebp - 0x54]
cmp ecx, 8
jae 0x41a8ad
mov eax, dword [ebp - 0x58]
add eax, 1
je 0x41a8b2
add eax, eax
push eax
lea eax, [ebp - 0x68]
push eax
push esi
call fcn.00449a40
mov ecx, dword [ebp - 0x54]
add esp, 0xc
mov eax, dword [ebp - 0x58]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
jmp 0x41a560
mov eax, dword [ebp - 0x68]
mov dword [esi], eax
mov eax, dword [ebp - 0x58]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
jmp 0x41a560
sub esp, 8
lea esi, [edi + 0x30]
mov edx, esp
mov dword [edx], esi
test esi, esi
jne 0x41a8d2
xor ecx, ecx
jmp 0x41a8f4
cmp word [esi], 0
jne 0x41a8dc
xor ecx, ecx
jmp 0x41a8f4
mov ecx, esi
lea eax, [ecx + 2]
mov dword [ebp - 0x70], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a8e4
sub ecx, dword [ebp - 0x70]
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x20]
call fcn.0040ce60
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.0041ad90
test al, al
je 0x41a92c
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x41a560
inc eax
lea ecx, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
call fcn.00405f00
jmp 0x41a560
sub esp, 8
mov ecx, esp
mov dword [ecx], esi
test esi, esi
je 0x41a953
cmp word [esi], 0
jne 0x41a941
xor esi, esi
jmp 0x41a953
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41a944
sub esi, edx
sar esi, 1
lea eax, [ebp - 0x50]
mov dword [ecx + 4], esi
push eax
lea ecx, [edi + 0x258]
call fcn.0040d7d0
lea ecx, [ebp - 0x20]
cmp ecx, eax
je 0x41a976
push 0xffffffffffffffff
push 0
push eax
call fcn.004048d0
mov eax, dword [ebp - 0x3c]
cmp eax, 8
jb 0x41a98b
inc eax
lea ecx, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
call fcn.00405f00
test byte [ebx], 0x10
je 0x41a9ca
cmp byte [edi + 0x270], 0
je 0x41a9c1
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 0x41a9c1
lea eax, [ebp - 0x20]
push eax
lea ecx, [edi + 0x290]
call fcn.0041aba0
test byte [edi + 0x274], 2
jmp 0x41a9d1
test byte [edi + 0x274], 1
jne 0x41aa1c
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x41a560
inc eax
lea ecx, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
call fcn.00405f00
jmp 0x41a560
mov ecx, dword [ebp - 0x6c]
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
mov eax, ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00447880
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp - 0x6c]
xor eax, eax
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
lea eax, [ebp - 0x20]
push eax
call fcn.004048d0
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x41aa55
inc eax
lea ecx, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
call fcn.00405f00
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00447880
mov esp, ebp
pop ebp
ret 4
call fcn.0044e681
int3