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

Disassembly:
mov eax, 0x45e668
call fcn.0045dac0
sub esp, 0x6b0
mov al, byte [0x45fc38]
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 0x41f499
mov dword [ebp + 0x20], 0x3501
cmp dword [ebp + 0x24], 0xffffffff
jne 0x41f4b8
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.00427780
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 0x41f929
mov eax, 0x40aad0
lea esi, [ebp - 0x17c]
mov dl, byte [esi]
mov cl, dl
cmp dl, byte [eax]
jne 0x41f54a
test cl, cl
je 0x41f546
mov dl, byte [esi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x41f54a
inc esi
inc esi
inc eax
inc eax
test cl, cl
jne 0x41f528
xor eax, eax
jmp 0x41f54f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41f90f
mov eax, 0x40aacc
lea esi, [ebp - 0x17c]
mov dl, byte [esi]
mov cl, dl
cmp dl, byte [eax]
jne 0x41f584
test cl, cl
je 0x41f580
mov dl, byte [esi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x41f584
inc esi
inc esi
inc eax
inc eax
test cl, cl
jne 0x41f562
xor eax, eax
jmp 0x41f589
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41f90f
test byte [ebp - 0x1a8], 0x10
je 0x41f90f
cmp dword [0x4753a0], 0
je 0x41f5b4
test byte [ebp - 0x1a8], 2
jne 0x41f90f
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 [0x534a50]
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.00432d31
mov ecx, dword [ebp + 8]
add esp, 0x1c
mov edx, dword [ecx + 4]
cmp edx, esi
jne 0x41f662
xor eax, eax
jmp 0x41f66a
mov eax, dword [ecx + 8]
sub eax, edx
sar eax, 2
mov edx, dword [ebx]
cmp eax, edx
ja 0x41f683
lea eax, [ebp - 0x18]
add edx, 0x1f4
push eax
push edx
mov dword [ebp - 0x18], esi
call fcn.00421046
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 [0x534a50]
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.00432d31
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.00432d31
add esp, 0x1c
xor eax, eax
cmp dword [0x475384], 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 0x41f7ba
mov eax, dword [ebp - 0x24]
cdq
idiv dword [ebp + 0x24]
test edx, edx
jne 0x41f7ba
mov dword [ebp - 0x5c], 0x20
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x58], 8
mov edx, dword [ecx + 4]
test edx, edx
jne 0x41f7cf
xor eax, eax
jmp 0x41f7d7
mov eax, dword [ecx + 8]
sub eax, edx
sar eax, 2
mov edx, dword [ebx]
cmp eax, edx
ja 0x41f7f1
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
add edx, 0x1f4
push eax
push edx
call fcn.00421046
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 [0x475380]
push edi
call fcn.00426a4d
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.004593cf
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.004210a5
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.0041f435
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 0x41f51d
xor esi, esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x34]
push eax
call fcn.0041f2ca
cmp dword [ebp - 0x30], esi
pop ecx
jne 0x41f946
mov dword [ebp - 0x14], esi
jmp 0x41f955
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 0x41f9b7
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.00432d31
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
add esp, 0x1c
mov eax, dword [eax + ecx + 0x24]
test eax, eax
je 0x41f9aa
push eax
call fcn.0045da7b
pop ecx
inc dword [ebp - 0x20]
inc dword [ebp + 0x18]
mov edi, 0x104
jmp 0x41f958
lea ecx, [ebp - 0x34]
call fcn.004210b6
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 0x41fccb
mov eax, 0x40aad0
lea esi, [ebp - 0x17c]
mov dl, byte [esi]
mov cl, dl
cmp dl, byte [eax]
jne 0x41fa31
test cl, cl
je 0x41fa2d
mov dl, byte [esi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x41fa31
inc esi
inc esi
inc eax
inc eax
test cl, cl
jne 0x41fa0f
xor eax, eax
jmp 0x41fa36
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41fcb3
mov eax, 0x40aacc
lea esi, [ebp - 0x17c]
mov dl, byte [esi]
mov cl, dl
cmp dl, byte [eax]
jne 0x41fa6b
test cl, cl
je 0x41fa67
mov dl, byte [esi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x41fa6b
inc esi
inc esi
inc eax
inc eax
test cl, cl
jne 0x41fa49
xor eax, eax
jmp 0x41fa70
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41fcb3
test byte [ebp - 0x1a8], 0x10
jne 0x41fcb3
cmp dword [0x4753a0], 0
je 0x41fa9b
test byte [ebp - 0x1a8], 2
jne 0x41fcb3
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 0x41fcb3
lea eax, [ebp - 0x2ac]
push eax
call fcn.004593cf
test eax, eax
pop ecx
lea eax, [ebp - 0x17c]
push eax
je 0x41fb20
call fcn.00426f34
test eax, eax
pop ecx
je 0x41fb02
mov dword [ebp - 0x14], 7
jmp 0x41fb4f
lea eax, [ebp - 0x17c]
push eax
call fcn.00426ed5
test eax, eax
pop ecx
je 0x41fcb3
mov dword [ebp - 0x14], 9
jmp 0x41fb4f
call fcn.00426f34
test eax, eax
pop ecx
je 0x41fb33
mov dword [ebp - 0x14], 3
jmp 0x41fb4f
lea eax, [ebp - 0x17c]
push eax
call fcn.00426ed5
test eax, eax
pop ecx
je 0x41fcb3
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 [0x475384], 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 0x41fbe9
mov eax, dword [ebp - 0x24]
cdq
idiv dword [ebp + 0x24]
test edx, edx
jne 0x41fbe9
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 0x41fc08
xor ecx, ecx
jmp 0x41fc10
mov ecx, dword [esi + 8]
sub ecx, edx
sar ecx, 2
cmp ecx, eax
ja 0x41fc29
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
add eax, 0x1f4
push ecx
push eax
mov ecx, esi
call fcn.00421046
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 [0x475380]
push dword [ebp + 0x18]
call fcn.00426a4d
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.004210a5
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 0x41fa04
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 0x1c], 0xffffffff
lea eax, [ebp - 0x34]
push eax
call fcn.0041f2ca
pop ecx
xor ecx, ecx
cmp dword [ebp - 0x30], ecx
jne 0x41fcee
mov dword [ebp - 0x14], ecx
jmp 0x41fcfd
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 0x41fd5a
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.00432d31
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
add esp, 0x1c
mov eax, dword [eax + ecx + 0x24]
test eax, eax
je 0x41fd52
push eax
call fcn.0045da7b
pop ecx
inc dword [ebp - 0x20]
inc dword [ebp + 0x18]
jmp 0x41fd00
lea ecx, [ebp - 0x34]
call fcn.004210b6
jmp 0x41fd7c
mov eax, dword [ebp - 0x24]
and dword [ebp - 4], 0
cmp eax, dword [ebp - 0x68]
mov esi, dword [ebp + 8]
jne 0x41fe4b
cmp dword [ebp + 0x1c], 1
je 0x41fe4b
lea eax, [ebp - 0x2ac]
push 0x104
push eax
push 0x95
push dword [0x534a50]
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 0x41fdea
xor edx, edx
jmp 0x41fdf2
mov edx, dword [esi + 8]
sub edx, ecx
sar edx, 2
cmp edx, eax
ja 0x41fe0b
and dword [ebp + 8], 0
lea ecx, [ebp + 8]
add eax, 0x1f4
push ecx
push eax
mov ecx, esi
call fcn.00421046
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.00432d31
add esp, 0x1c
inc dword [ebx]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0042b973
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret