Function at 0x415f23
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x488
mov eax, dword [0x4310b4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x47c], eax
push esi
mov esi, ebx
xor ecx, ecx
push edi
mov dword [ebp - 0x478], ecx
lea edi, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, cx
jne 0x415f53
sub esi, edi
sar esi, 1
lea eax, [esi + 2]
cmp eax, edx
ja 0x415fbc
mov ecx, ebx
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x415f70
mov esi, dword [ebp - 0x47c]
sub ecx, edx
sar ecx, 1
push ebx
lea eax, [ecx - 2]
mov dword [ebp - 0x488], eax
mov dword [esi], eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4243e7
test al, 0x10
jne 0x4243ff
xor eax, eax
inc eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417b90
leave
ret 4
xor eax, eax
jmp 0x415fab
push edi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push eax
jmp 0x4243f3
push edi
push esi
call fcn.004128ff
pop ecx
pop ecx
jmp 0x415fbc
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x424404
sub ecx, edx
sar ecx, 1
push 0x5c
pop eax
push 0x2a
cmp word [ebx + ecx*2 - 2], ax
jne 0x424424
mov edx, edi
pop eax
jmp 0x42442c
xor edx, edx
mov word [ebx + ecx*2 + 4], dx
pop edx
mov word [ebx + ecx*2], ax
lea eax, [ebp - 0x474]
push eax
push ebx
mov word [ebx + ecx*2 + 2], dx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
mov dword [ebp - 0x480], eax
cmp eax, 0xffffffff
jne 0x424475
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push 0xffffffffffffffff
mov esi, eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
cmp esi, 2
je 0x415fa8
cmp esi, 0x12
je 0x415fa8
jmp 0x4243f1
xor edi, edi
inc edi
mov ecx, 0x402630
lea eax, [ebp - 0x448]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4244a9
test dx, dx
je 0x4244a5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4244a9
add eax, 4
add ecx, 4
test dx, dx
jne 0x424483
xor eax, eax
jmp 0x4244ae
sbb eax, eax
or eax, 1
test eax, eax
je 0x42461c
mov ecx, 0x402628
lea eax, [ebp - 0x448]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4244e7
test dx, dx
je 0x4244e3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4244e7
add eax, 4
add ecx, 4
test dx, dx
jne 0x4244c1
xor eax, eax
jmp 0x4244ec
sbb eax, eax
or eax, 1
test eax, eax
je 0x42461c
lea ecx, [ebp - 0x448]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x478]
jne 0x4244fd
sub ecx, edx
sar ecx, 1
je 0x42461c
test byte [ebp - 0x474], 0x10
jne 0x424612
mov eax, 0x104
mov byte [ebp - 0x18], 1
push eax
xor esi, esi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x1c], esi
push esi
push eax
call sub.msvcrt.dll_memset
xor eax, eax
lea ecx, [ebp - 0x224]
add esp, 0xc
cmp byte [ebp - 0x18], al
sete al
dec eax
and eax, 0x7ee3
add eax, 0x104
push eax
call fcn.0040d300
test eax, eax
js 0x424651
push ebx
lea ecx, [ebp - 0x224]
call fcn.0040f229
mov edx, dword [ebp - 0x1c]
mov ecx, edx
test edx, edx
jne 0x424587
lea ecx, [ebp - 0x224]
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x478]
jne 0x42458a
sub ecx, esi
sar ecx, 1
test edx, edx
jne 0x4245a7
lea edx, [ebp - 0x224]
xor eax, eax
mov word [edx + ecx*2 - 2], ax
lea eax, [ebp - 0x448]
push eax
lea ecx, [ebp - 0x224]
call fcn.004121c1
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
jne 0x4245cd
lea ecx, [ebp - 0x224]
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x484]
push eax
call fcn.00415f23
test eax, eax
je 0x42463b
mov esi, dword [ebp - 0x47c]
mov ecx, dword [ebp - 0x488]
add ecx, dword [ebp - 0x484]
mov eax, dword [esi]
cmp eax, ecx
jg 0x4245fa
mov eax, ecx
mov dword [esi], eax
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], ecx
test eax, eax
je 0x42461c
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
jmp 0x42461c
mov eax, dword [esi]
cmp eax, ecx
jg 0x42461a
mov eax, ecx
mov dword [esi], eax
lea eax, [ebp - 0x474]
push eax
push dword [ebp - 0x480]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
mov edi, eax
test edi, edi
jne 0x424478
jmp 0x42466b
mov eax, dword [ebp - 0x1c]
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
test eax, eax
je 0x42466d
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
jmp 0x42466d
push 8
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
test eax, eax
je 0x42466b
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
xor ebx, ebx
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push dword [ebp - 0x480]
mov esi, eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
test edi, edi
jne 0x415fbc
cmp esi, 0x12
je 0x415fa8
push ebx
jmp 0x4243f2