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

Disassembly:
mov eax, 0x45f4c4
call fcn.0045e9d0
sub esp, 0x6b0
mov al, byte [0x460a68]
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 0x41f8ae
mov dword [ebp + 0x20], 0x3501
cmp dword [ebp + 0x24], 0xffffffff
jne 0x41f8cd
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.00427b71
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 0x40aad4
mov edi, 0x104
push dword [ebp + 0x14]
lea eax, [ebp - 0x4b4]
mov dword [ebp - 4], esi
mov byte [ebp - 4], 1
push 0x40aa14
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 0x41fd3e
mov eax, 0x40aad0
lea esi, [ebp - 0x17c]
mov dl, byte [esi]
mov cl, dl
cmp dl, byte [eax]
jne 0x41f95f
test cl, cl
je 0x41f95b
mov dl, byte [esi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x41f95f
inc esi
inc esi
inc eax
inc eax
test cl, cl
jne 0x41f93d
xor eax, eax
jmp 0x41f964
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41fd24
mov eax, 0x40aacc
lea esi, [ebp - 0x17c]
mov dl, byte [esi]
mov cl, dl
cmp dl, byte [eax]
jne 0x41f999
test cl, cl
je 0x41f995
mov dl, byte [esi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x41f999
inc esi
inc esi
inc eax
inc eax
test cl, cl
jne 0x41f977
xor eax, eax
jmp 0x41f99e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41fd24
test byte [ebp - 0x1a8], 0x10
je 0x41fd24
cmp dword [0x4766d4], 0
je 0x41f9c9
test byte [ebp - 0x1a8], 2
jne 0x41fd24
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x2ac]
push dword [ebp + 0x14]
push 0x40aafc
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 [0x536190]
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.00433910
mov ecx, dword [ebp + 8]
add esp, 0x1c
mov edx, dword [ecx + 4]
cmp edx, esi
jne 0x41fa77
xor eax, eax
jmp 0x41fa7f
mov eax, dword [ecx + 8]
sub eax, edx
sar eax, 2
mov edx, dword [ebx]
cmp eax, edx
ja 0x41fa98
lea eax, [ebp - 0x18]
add edx, 0x1f4
push eax
push edx
mov dword [ebp - 0x18], esi
call fcn.0042145d
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 [0x40aaf8]
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 [0x536190]
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.00433910
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.00433910
add esp, 0x1c
xor eax, eax
cmp dword [0x4766b8], 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 0x41fbcf
mov eax, dword [ebp - 0x24]
cdq
idiv dword [ebp + 0x24]
test edx, edx
jne 0x41fbcf
mov dword [ebp - 0x5c], 0x20
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x58], 8
mov edx, dword [ecx + 4]
test edx, edx
jne 0x41fbe4
xor eax, eax
jmp 0x41fbec
mov eax, dword [ecx + 8]
sub eax, edx
sar eax, 2
mov edx, dword [ebx]
cmp eax, edx
ja 0x41fc06
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
add edx, 0x1f4
push eax
push edx
call fcn.0042145d
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 [0x4766b4]
push edi
call fcn.00426e3e
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 0x40aa14
push 0x103
push eax
call esi
lea eax, [ebp - 0x5b8]
push eax
call fcn.0045a30a
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.004214bc
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.0041f84a
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 0x41f932
xor esi, esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x34]
push eax
call fcn.0041f6df
cmp dword [ebp - 0x30], esi
pop ecx
jne 0x41fd5b
mov dword [ebp - 0x14], esi
jmp 0x41fd6a
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 0x41fdcc
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.00433910
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
add esp, 0x1c
mov eax, dword [eax + ecx + 0x24]
test eax, eax
je 0x41fdbf
push eax
call fcn.0045e98b
pop ecx
inc dword [ebp - 0x20]
inc dword [ebp + 0x18]
mov edi, 0x104
jmp 0x41fd6d
lea ecx, [ebp - 0x34]
call fcn.004214cd
push 0x40aad4
lea eax, [ebp - 0x4b4]
push dword [ebp + 0x14]
push 0x40aa14
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 0x4200e0
mov eax, 0x40aad0
lea esi, [ebp - 0x17c]
mov dl, byte [esi]
mov cl, dl
cmp dl, byte [eax]
jne 0x41fe46
test cl, cl
je 0x41fe42
mov dl, byte [esi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x41fe46
inc esi
inc esi
inc eax
inc eax
test cl, cl
jne 0x41fe24
xor eax, eax
jmp 0x41fe4b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4200c8
mov eax, 0x40aacc
lea esi, [ebp - 0x17c]
mov dl, byte [esi]
mov cl, dl
cmp dl, byte [eax]
jne 0x41fe80
test cl, cl
je 0x41fe7c
mov dl, byte [esi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x41fe80
inc esi
inc esi
inc eax
inc eax
test cl, cl
jne 0x41fe5e
xor eax, eax
jmp 0x41fe85
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4200c8
test byte [ebp - 0x1a8], 0x10
jne 0x4200c8
cmp dword [0x4766d4], 0
je 0x41feb0
test byte [ebp - 0x1a8], 2
jne 0x4200c8
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x2ac]
push dword [ebp + 0x14]
push 0x40aa14
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 0x4200c8
lea eax, [ebp - 0x2ac]
push eax
call fcn.0045a30a
test eax, eax
pop ecx
lea eax, [ebp - 0x17c]
push eax
je 0x41ff35
call fcn.00427325
test eax, eax
pop ecx
je 0x41ff17
mov dword [ebp - 0x14], 7
jmp 0x41ff64
lea eax, [ebp - 0x17c]
push eax
call fcn.004272c6
test eax, eax
pop ecx
je 0x4200c8
mov dword [ebp - 0x14], 9
jmp 0x41ff64
call fcn.00427325
test eax, eax
pop ecx
je 0x41ff48
mov dword [ebp - 0x14], 3
jmp 0x41ff64
lea eax, [ebp - 0x17c]
push eax
call fcn.004272c6
test eax, eax
pop ecx
je 0x4200c8
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 [0x4766b8], 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 0x41fffe
mov eax, dword [ebp - 0x24]
cdq
idiv dword [ebp + 0x24]
test edx, edx
jne 0x41fffe
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 0x42001d
xor ecx, ecx
jmp 0x420025
mov ecx, dword [esi + 8]
sub ecx, edx
sar ecx, 2
cmp ecx, eax
ja 0x42003e
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
add eax, 0x1f4
push ecx
push eax
mov ecx, esi
call fcn.0042145d
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 [0x4766b4]
push dword [ebp + 0x18]
call fcn.00426e3e
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.004214bc
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 0x41fe19
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 0x1c], 0xffffffff
lea eax, [ebp - 0x34]
push eax
call fcn.0041f6df
pop ecx
xor ecx, ecx
cmp dword [ebp - 0x30], ecx
jne 0x420103
mov dword [ebp - 0x14], ecx
jmp 0x420112
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 0x42016f
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.00433910
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
add esp, 0x1c
mov eax, dword [eax + ecx + 0x24]
test eax, eax
je 0x420167
push eax
call fcn.0045e98b
pop ecx
inc dword [ebp - 0x20]
inc dword [ebp + 0x18]
jmp 0x420115
lea ecx, [ebp - 0x34]
call fcn.004214cd
jmp 0x420191
mov eax, dword [ebp - 0x24]
and dword [ebp - 4], 0
cmp eax, dword [ebp - 0x68]
mov esi, dword [ebp + 8]
jne 0x420260
cmp dword [ebp + 0x1c], 1
je 0x420260
lea eax, [ebp - 0x2ac]
push 0x104
push eax
push 0x95
push dword [0x536190]
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 0x4201ff
xor edx, edx
jmp 0x420207
mov edx, dword [esi + 8]
sub edx, ecx
sar edx, 2
cmp edx, eax
ja 0x420220
and dword [ebp + 8], 0
lea ecx, [ebp + 8]
add eax, 0x1f4
push ecx
push eax
mov ecx, esi
call fcn.0042145d
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.00433910
add esp, 0x1c
inc dword [ebx]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00423a54
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret