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

Disassembly:
mov eax, 0x45db68
call fcn.0045cfc0
sub esp, 0x6b0
mov al, byte [0x45f128]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x40
mov byte [ebp - 0x5b8], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x5b7]
rep stosd dword es:[edi], eax
push dword [ebp + 0x10]
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x18]
push 0xc
mov dword [ebp - 0x20], eax
pop ecx
xor eax, eax
cmp dword [ebp + 0x20], 0xffffffff
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x64], 0x30
jne 0x41f040
mov dword [ebp + 0x20], 0x3501
cmp dword [ebp + 0x24], 0xffffffff
jne 0x41f05f
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.00427314
mov eax, dword [ebp + 0x24]
pop ecx
cdq
idiv dword [ebp + 0x18]
pop ecx
mov dword [ebp + 0x24], eax
mov al, byte [ebp + 0xb]
xor esi, esi
mov byte [ebp - 0x34], al
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
push 0x40ab70
mov edi, 0x104
push dword [ebp + 0x14]
lea eax, [ebp - 0x4b4]
mov dword [ebp - 4], esi
mov byte [ebp - 4], 1
push 0x40aab0
push edi
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
and byte [ebp - 0x3b1], 0
add esp, 0x14
lea eax, [ebp - 0x1a8]
push eax
lea eax, [ebp - 0x4b4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, dword [ebp + 0xc]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x41f4d0
mov eax, 0x40ab6c
lea esi, [ebp - 0x17c]
mov dl, byte [esi]
mov cl, dl
cmp dl, byte [eax]
jne 0x41f0f1
test cl, cl
je 0x41f0ed
mov dl, byte [esi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x41f0f1
inc esi
inc esi
inc eax
inc eax
test cl, cl
jne 0x41f0cf
xor eax, eax
jmp 0x41f0f6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41f4b6
mov eax, 0x40ab68
lea esi, [ebp - 0x17c]
mov dl, byte [esi]
mov cl, dl
cmp dl, byte [eax]
jne 0x41f12b
test cl, cl
je 0x41f127
mov dl, byte [esi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x41f12b
inc esi
inc esi
inc eax
inc eax
test cl, cl
jne 0x41f109
xor eax, eax
jmp 0x41f130
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41f4b6
test byte [ebp - 0x1a8], 0x10
je 0x41f4b6
cmp dword [0x473700], 0
je 0x41f15b
test byte [ebp - 0x1a8], 2
jne 0x41f4b6
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x2ac]
push dword [ebp + 0x14]
push 0x40ab98
push edi
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
and byte [ebp - 0x1a9], 0
add esp, 0x14
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov dword [ebp + 0x18], eax
lea eax, [ebp - 0x3b0]
push edi
push eax
push 0xc9
push dword [0x532da0]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0xc
xor eax, eax
pop ecx
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
mov eax, dword [ebx]
xor esi, esi
add eax, dword [ebp + 0x20]
lea edi, [ebp - 0x3b0]
or ecx, 0xffffffff
mov dword [ebp - 0x64], 0x30
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x3b0]
mov dword [ebp - 0x40], eax
xor eax, eax
mov dword [ebp - 0x60], 0x42
mov dword [ebp - 0x5c], esi
repne scasb al, byte es:[edi]
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x64]
push esi
push eax
push 1
not ecx
push esi
dec ecx
push dword [ebp + 0x18]
mov dword [ebp - 0x3c], ecx
call fcn.00432585
mov ecx, dword [ebp + 8]
add esp, 0x1c
mov edx, dword [ecx + 4]
cmp edx, esi
jne 0x41f209
xor eax, eax
jmp 0x41f211
mov eax, dword [ecx + 8]
sub eax, edx
sar eax, 2
mov edx, dword [ebx]
cmp eax, edx
ja 0x41f22a
lea eax, [ebp - 0x18]
add edx, 0x1f4
push eax
push edx
mov dword [ebp - 0x18], esi
call fcn.00420bed
lea edi, [ebp - 0x2ac]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 8]
not ecx
mov eax, dword [eax + 4]
dec ecx
mov esi, ecx
mov ecx, dword [ebx]
inc esi
inc esi
lea edi, [eax + ecx*4]
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, dword [ebp + 8]
mov dword [edi], eax
mov edx, dword [ebx]
mov dword [esp], 0x104
mov eax, dword [ecx + 4]
mov eax, dword [eax + edx*4]
mov dl, byte [0x40ab94]
mov byte [eax], dl
mov eax, dword [ecx + 4]
mov edx, dword [ebx]
lea ecx, [esi - 1]
lea esi, [ebp - 0x2ac]
mov edi, dword [eax + edx*4]
mov eax, ecx
inc edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x3b0]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
inc dword [ebx]
push 0x96
push dword [0x532da0]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0xc
xor eax, eax
pop ecx
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
mov eax, dword [ebx]
xor edx, edx
add eax, dword [ebp + 0x20]
lea edi, [ebp - 0x3b0]
or ecx, 0xffffffff
mov dword [ebp - 0x64], 0x30
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x3b0]
mov dword [ebp - 0x40], eax
xor eax, eax
mov dword [ebp - 0x60], 0x42
mov dword [ebp - 0x5c], edx
repne scasb al, byte es:[edi]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x64]
push edx
push eax
push 1
not ecx
push 1
dec ecx
push dword [ebp + 0x18]
mov dword [ebp - 0x3c], ecx
call fcn.00432585
add esp, 0x1c
xor eax, eax
lea edi, [ebp - 0x64]
push 0xc
pop ecx
push 0x30
pop esi
rep stosd dword es:[edi], eax
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], 0x100
push eax
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x64]
push eax
push 1
push 2
mov dword [ebp - 0x5c], 0x800
push dword [ebp + 0x18]
call fcn.00432585
add esp, 0x1c
xor eax, eax
cmp dword [0x4736e4], eax
lea edi, [ebp - 0x64]
push 0xc
pop ecx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], 0x167
jne 0x41f361
mov eax, dword [ebp - 0x24]
cdq
idiv dword [ebp + 0x24]
test edx, edx
jne 0x41f361
mov dword [ebp - 0x5c], 0x20
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x58], 8
mov edx, dword [ecx + 4]
test edx, edx
jne 0x41f376
xor eax, eax
jmp 0x41f37e
mov eax, dword [ecx + 8]
sub eax, edx
sar eax, 2
mov edx, dword [ebx]
cmp eax, edx
ja 0x41f398
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
add edx, 0x1f4
push eax
push edx
call fcn.00420bed
lea edi, [ebp - 0x2ac]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 8]
not ecx
mov eax, dword [eax + 4]
dec ecx
mov esi, ecx
mov ecx, dword [ebx]
inc esi
push esi
lea edi, [eax + ecx*4]
call dword [sym.imp.MSVCRT.dll_malloc]
mov dword [edi], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebx]
mov ecx, esi
mov eax, dword [eax + 4]
lea esi, [ebp - 0x2ac]
mov dword [esp], 0x104
mov edi, dword [eax + edx*4]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
inc dword [ebx]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, dword [sym.imp.MSVCRT.dll__snprintf]
mov edi, eax
pop ecx
lea eax, [ebp - 0x17c]
push eax
push 0x40a158
push 0x104
push edi
call esi
and byte [edi + 0x103], 0
push 1
push dword [0x4736e0]
push edi
call fcn.004265e1
mov dword [ebp - 0x40], eax
or ecx, 0xffffffff
xor eax, eax
add esp, 0x1c
repne scasb al, byte es:[edi]
mov eax, dword [ebx]
mov edi, dword [ebp + 0x18]
add eax, dword [ebp + 0x20]
mov dword [ebp - 0x50], edi
not ecx
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x5b8]
push dword [ebp + 0x14]
dec ecx
mov dword [ebp - 0x3c], ecx
push 0x40aab0
push 0x103
push eax
call esi
lea eax, [ebp - 0x5b8]
push eax
call fcn.0045894e
add esp, 0x18
lea ecx, [ebp - 0x34]
neg eax
sbb eax, eax
and eax, 6
inc eax
inc eax
inc dword [ebx]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x64]
push eax
call fcn.00420c4c
push dword [ebp + 0x24]
mov eax, dword [ebp + 0x1c]
push dword [ebp + 0x20]
inc eax
push eax
push edi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
push eax
lea eax, [ebp - 0x2ac]
push eax
push edi
push ebx
push dword [ebp + 8]
call fcn.0041efdc
add esp, 0x20
inc dword [ebp - 0x24]
mov edi, 0x104
lea eax, [ebp - 0x1a8]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41f0c4
xor esi, esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x34]
push eax
call fcn.0041ee71
cmp dword [ebp - 0x30], esi
pop ecx
jne 0x41f4ed
mov dword [ebp - 0x14], esi
jmp 0x41f4fc
mov eax, dword [ebp - 0x2c]
push 0x30
sub eax, dword [ebp - 0x30]
pop ecx
cdq
idiv ecx
mov dword [ebp - 0x14], eax
mov dword [ebp + 0x18], esi
mov eax, dword [ebp - 0x14]
cmp dword [ebp + 0x18], eax
jge 0x41f55e
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x30]
push 0xc
lea edi, [ebp - 0x64]
lea eax, [eax + eax*2]
shl eax, 4
mov dword [ebp - 0x18], eax
lea esi, [eax + ecx]
pop ecx
push 0
lea eax, [ebp - 0x64]
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x44]
push 0
push eax
push 1
push dword [ebp - 0x20]
push dword [ebp + 0x10]
call fcn.00432585
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
add esp, 0x1c
mov eax, dword [eax + ecx + 0x24]
test eax, eax
je 0x41f551
push eax
call fcn.0045cf75
pop ecx
inc dword [ebp - 0x20]
inc dword [ebp + 0x18]
mov edi, 0x104
jmp 0x41f4ff
lea ecx, [ebp - 0x34]
call fcn.00420c5d
push 0x40ab70
lea eax, [ebp - 0x4b4]
push dword [ebp + 0x14]
push 0x40aab0
push edi
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
and byte [ebp - 0x3b1], 0
add esp, 0x14
lea eax, [ebp - 0x1a8]
push eax
lea eax, [ebp - 0x4b4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x41f872
mov eax, 0x40ab6c
lea esi, [ebp - 0x17c]
mov dl, byte [esi]
mov cl, dl
cmp dl, byte [eax]
jne 0x41f5d8
test cl, cl
je 0x41f5d4
mov dl, byte [esi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x41f5d8
inc esi
inc esi
inc eax
inc eax
test cl, cl
jne 0x41f5b6
xor eax, eax
jmp 0x41f5dd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41f85a
mov eax, 0x40ab68
lea esi, [ebp - 0x17c]
mov dl, byte [esi]
mov cl, dl
cmp dl, byte [eax]
jne 0x41f612
test cl, cl
je 0x41f60e
mov dl, byte [esi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x41f612
inc esi
inc esi
inc eax
inc eax
test cl, cl
jne 0x41f5f0
xor eax, eax
jmp 0x41f617
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41f85a
test byte [ebp - 0x1a8], 0x10
jne 0x41f85a
cmp dword [0x473700], 0
je 0x41f642
test byte [ebp - 0x1a8], 2
jne 0x41f85a
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x2ac]
push dword [ebp + 0x14]
push 0x40aab0
push edi
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
and byte [ebp - 0x1a9], 0
add esp, 0x14
lea eax, [ebp - 0x2ac]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 2
jne 0x41f85a
lea eax, [ebp - 0x2ac]
push eax
call fcn.0045894e
test eax, eax
pop ecx
lea eax, [ebp - 0x17c]
push eax
je 0x41f6c7
call fcn.00426ac8
test eax, eax
pop ecx
je 0x41f6a9
mov dword [ebp - 0x14], 7
jmp 0x41f6f6
lea eax, [ebp - 0x17c]
push eax
call fcn.00426a69
test eax, eax
pop ecx
je 0x41f85a
mov dword [ebp - 0x14], 9
jmp 0x41f6f6
call fcn.00426ac8
test eax, eax
pop ecx
je 0x41f6da
mov dword [ebp - 0x14], 3
jmp 0x41f6f6
lea eax, [ebp - 0x17c]
push eax
call fcn.00426a69
test eax, eax
pop ecx
je 0x41f85a
mov dword [ebp - 0x14], 4
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp + 0x18], eax
mov edi, dword [ebp + 0x18]
push 0x41
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x17c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov esi, dword [sym.imp.MSVCRT.dll_strncpy]
add ecx, 0xfffffffb
lea eax, [ebp - 0x17c]
push ecx
push eax
push dword [ebp + 0x18]
call esi
push 0x41
xor eax, eax
pop ecx
lea edi, [ebp - 0x6bc]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x17c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffb
lea eax, [ebp - 0x17c]
push ecx
push eax
lea eax, [ebp - 0x6bc]
push eax
call esi
add esp, 0x18
xor eax, eax
cmp dword [0x4736e4], eax
lea edi, [ebp - 0x64]
push 0xc
pop ecx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x64], 0x30
mov dword [ebp - 0x60], 0x163
jne 0x41f790
mov eax, dword [ebp - 0x24]
cdq
idiv dword [ebp + 0x24]
test edx, edx
jne 0x41f790
mov dword [ebp - 0x5c], 0x20
mov esi, dword [ebp + 8]
mov eax, dword [ebx]
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x58], 8
mov edx, dword [esi + 4]
add ecx, eax
test edx, edx
mov dword [ebp - 0x54], ecx
jne 0x41f7af
xor ecx, ecx
jmp 0x41f7b7
mov ecx, dword [esi + 8]
sub ecx, edx
sar ecx, 2
cmp ecx, eax
ja 0x41f7d0
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
add eax, 0x1f4
push ecx
push eax
mov ecx, esi
call fcn.00420bed
lea edi, [ebp - 0x2ac]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 8]
not ecx
mov eax, dword [eax + 4]
dec ecx
mov esi, ecx
mov ecx, dword [ebx]
inc esi
push esi
lea edi, [eax + ecx*4]
call dword [sym.imp.MSVCRT.dll_malloc]
mov dword [edi], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebx]
mov ecx, esi
mov eax, dword [eax + 4]
lea esi, [ebp - 0x2ac]
push 1
mov edi, dword [eax + edx*4]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [0x4736e0]
push dword [ebp + 0x18]
call fcn.004265e1
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x40], eax
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
mov eax, dword [ebp - 0x14]
not ecx
dec ecx
inc dword [ebx]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x3c], ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.00420c4c
inc dword [ebp - 0x24]
mov edi, 0x104
lea eax, [ebp - 0x1a8]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41f5ab
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 0x1c], 0xffffffff
lea eax, [ebp - 0x34]
push eax
call fcn.0041ee71
pop ecx
xor ecx, ecx
cmp dword [ebp - 0x30], ecx
jne 0x41f895
mov dword [ebp - 0x14], ecx
jmp 0x41f8a4
mov eax, dword [ebp - 0x2c]
push 0x30
sub eax, dword [ebp - 0x30]
pop esi
cdq
idiv esi
mov dword [ebp - 0x14], eax
mov dword [ebp + 0x18], ecx
mov eax, dword [ebp - 0x14]
cmp dword [ebp + 0x18], eax
jge 0x41f901
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x30]
push 0xc
lea edi, [ebp - 0x64]
lea eax, [eax + eax*2]
shl eax, 4
mov dword [ebp - 0x18], eax
lea esi, [eax + ecx]
pop ecx
push 0
lea eax, [ebp - 0x64]
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x44]
push 0
push eax
push 1
push dword [ebp - 0x20]
push dword [ebp + 0x10]
call fcn.00432585
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
add esp, 0x1c
mov eax, dword [eax + ecx + 0x24]
test eax, eax
je 0x41f8f9
push eax
call fcn.0045cf75
pop ecx
inc dword [ebp - 0x20]
inc dword [ebp + 0x18]
jmp 0x41f8a7
lea ecx, [ebp - 0x34]
call fcn.00420c5d
jmp 0x41f923
mov eax, dword [ebp - 0x24]
and dword [ebp - 4], 0
cmp eax, dword [ebp - 0x68]
mov esi, dword [ebp + 8]
jne 0x41f9f2
cmp dword [ebp + 0x1c], 1
je 0x41f9f2
lea eax, [ebp - 0x2ac]
push 0x104
push eax
push 0x95
push dword [0x532da0]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0xc
xor eax, eax
pop ecx
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
mov eax, dword [ebx]
mov ecx, dword [ebp + 0x20]
add ecx, eax
mov dword [ebp - 0x64], 0x30
mov dword [ebp - 0x54], ecx
mov ecx, dword [esi + 4]
test ecx, ecx
mov dword [ebp - 0x60], 0x43
mov dword [ebp - 0x58], 3
jne 0x41f991
xor edx, edx
jmp 0x41f999
mov edx, dword [esi + 8]
sub edx, ecx
sar edx, 2
cmp edx, eax
ja 0x41f9b2
and dword [ebp + 8], 0
lea ecx, [ebp + 8]
add eax, 0x1f4
push ecx
push eax
mov ecx, esi
call fcn.00420bed
mov esi, dword [esi + 4]
mov eax, dword [ebx]
xor edx, edx
lea edi, [ebp - 0x2ac]
mov dword [esi + eax*4], edx
lea eax, [ebp - 0x2ac]
mov dword [ebp - 0x40], eax
or ecx, 0xffffffff
xor eax, eax
push edx
repne scasb al, byte es:[edi]
push 0xffffffffffffffff
lea eax, [ebp - 0x64]
push edx
push eax
push 1
push dword [ebp - 0x20]
not ecx
push dword [ebp + 0x10]
dec ecx
mov dword [ebp - 0x3c], ecx
call fcn.00432585
add esp, 0x1c
inc dword [ebx]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0042b39c
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret