Function at 0x41f410
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Enumerate files recursively
Get common file path
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x600a8a
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x69ee98]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x270], ecx
mov dword [ebp - 0x258], 0
mov dword [ebp - 4], 0
call fcn.00485933
mov edi, eax
test edi, edi
je 0x41f972
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x613aec]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x260], eax
mov byte [ebp - 4], 1
call fcn.00485933
mov edi, eax
test edi, edi
je 0x41f97c
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x613aec]
mov ecx, edi
call esi
lea esi, [eax + 0x10]
mov dword [ebp - 0x264], esi
mov byte [ebp - 4], 2
call fcn.00485933
mov ebx, eax
test ebx, ebx
je 0x41f986
mov eax, dword [ebx]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x613aec]
mov ecx, ebx
call edi
lea edi, [eax + 0x10]
mov dword [ebp - 0x25c], edi
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 3
push eax
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x674642
push dword [ebp + 0xc]
call fcn.005e343b
add esp, 8
test eax, eax
je 0x41f54a
push 0x67474c
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.00404190
push str.ssm
push eax
lea eax, [ebp - 0x268]
mov byte [ebp - 4], 4
push eax
mov dword [ebp - 0x258], 1
call fcn.00404190
add esp, 0x18
mov dword [ebp - 4], 5
mov ebx, 3
mov eax, dword [eax]
jmp 0x41f5bd
call fcn.00485933
mov dword [ebp - 0x254], eax
test eax, eax
je 0x41f990
mov eax, dword [eax]
mov ebx, dword [eax + 0xc]
mov ecx, ebx
call dword [0x613aec]
mov ecx, dword [ebp - 0x254]
call ebx
add eax, 0x10
mov dword [ebp - 0x254], eax
mov eax, str.ssm
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x254]
test eax, 0xffff0000
jne 0x41f59f
movzx eax, ax
push eax
call fcn.004030c0
jmp 0x41f5ab
push 4
push str.ssm
call fcn.004038a0
mov dword [ebp - 4], 7
mov ebx, 4
mov eax, dword [ebp - 0x254]
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x258], ebx
push eax
lea eax, [ebp - 0x260]
push str._s_s
push eax
call fcn.00407050
add esp, 0x10
mov dword [ebp - 4], 5
or edx, 0xffffffff
test bl, 4
je 0x41f633
mov ecx, dword [ebp - 0x254]
and ebx, 0xfffffffb
mov dword [ebp - 0x258], ebx
add ecx, 0xfffffff0
mov eax, edx
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x41f633
mov eax, dword [ecx]
mov dword [ebp - 0x254], eax
push ecx
mov eax, dword [eax]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [0x613aec]
mov ecx, dword [ebp - 0x254]
call ebx
mov ebx, dword [ebp - 0x258]
or edx, 0xffffffff
mov dword [ebp - 4], 4
test bl, 2
je 0x41f681
mov ecx, dword [ebp - 0x268]
and ebx, 0xfffffffd
mov dword [ebp - 0x258], ebx
add ecx, 0xfffffff0
mov eax, edx
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x41f681
mov eax, dword [ecx]
mov dword [ebp - 0x254], eax
push ecx
mov eax, dword [eax]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [0x613aec]
mov ecx, dword [ebp - 0x254]
call ebx
mov ebx, dword [ebp - 0x258]
mov dword [ebp - 4], 3
test bl, 1
je 0x41f6c1
mov ecx, dword [ebp - 0x26c]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x41f6c1
mov eax, dword [ecx]
mov dword [ebp - 0x254], eax
push ecx
mov eax, dword [eax]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [0x613aec]
mov ecx, dword [ebp - 0x254]
call ebx
lea eax, [ebp - 0x250]
mov dword [0x6c7af8], 1
push eax
push dword [ebp - 0x260]
mov dword [0x6c7afc], 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
mov dword [ebp - 0x258], ebx
cmp ebx, 0xffffffff
je 0x41f8a8
cmp byte [ebp + 8], 1
jne 0x41f770
nop
lea eax, [ebp - 0x224]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x264]
push str._s_s_s
push eax
call fcn.00407050
mov esi, dword [ebp - 0x264]
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41f747
test al, 1
je 0x41f747
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x250]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41f700
jmp 0x41f8a1
test byte [ebp - 0x250], 0x10
je 0x41f840
push ecx
mov ebx, esp
mov dword [ebp - 0x274], ebx
call fcn.00485933
mov dword [ebp - 0x254], eax
test eax, eax
je 0x41f972
mov ecx, dword [eax]
mov edi, dword [ecx + 0xc]
mov ecx, edi
call dword [0x613aec]
mov ecx, dword [ebp - 0x254]
call edi
add eax, 0x10
mov dword [ebx], eax
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 8
test eax, 0xffff0000
jne 0x41f7d1
movzx eax, ax
mov ecx, ebx
push eax
call fcn.004030c0
jmp 0x41f7f8
lea ecx, [ebp - 0x224]
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41f7e0
sub ecx, edx
lea eax, [ebp - 0x224]
push ecx
push eax
mov ecx, ebx
call fcn.004038a0
mov ecx, dword [ebp - 0x270]
push 1
mov byte [ebp - 4], 3
call fcn.0041f410
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x25c]
push str._s_s
push eax
call fcn.00407050
mov edi, dword [ebp - 0x25c]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ebx, dword [ebp - 0x258]
jmp 0x41f88b
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x25c]
push str._s_s
push eax
call fcn.00407050
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41f87e
test al, 1
je 0x41f87e
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, dword [ebp - 0x25c]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x250]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41f770
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
or ebx, 0xffffffff
mov byte [ebp - 4], 2
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x41f8d5
mov ebx, dword [edi]
push edi
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x613aec]
mov ecx, ebx
call edi
or ebx, 0xffffffff
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41f8fc
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x613aec]
mov ecx, edi
call esi
mov byte [ebp - 4], 0
mov eax, ebx
mov ecx, dword [ebp - 0x260]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x41f929
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x613aec]
mov ecx, edi
call esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x41f954
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x613aec]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005d4ba5
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00402cb0
push 0x80004005
call fcn.00402cb0
push 0x80004005
call fcn.00402cb0
push 0x80004005
call fcn.00402cb0
int3