Function at 0x475fe0
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0b58
mov eax, dword fs:[0]
push eax
mov eax, 0x15e4
call fcn.0048e930
mov eax, dword [0x4e3ec8]
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 esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push esi
lea ecx, [ebp - 0x15e0]
mov dword [ebp - 0x15e8], esi
mov dword [ebp - 0x15ec], eax
call dword [sym.imp.mfc100.dll_Ordinal_310]
lea ecx, [ebp - 0x15e0]
mov dword [ebp - 4], 0
call dword [sym.imp.mfc100.dll_Ordinal_7322]
test al, al
jne 0x476296
push ecx
lea edx, [ebp - 0x15e0]
mov ecx, esp
mov dword [ebp - 0x15f0], esp
push edx
call dword [sym.imp.mfc100.dll_Ordinal_300]
call fcn.00473a70
add esp, 4
test al, al
je 0x476296
lea ecx, [ebp - 0x15e4]
call dword [sym.imp.mfc100.dll_Ordinal_316]
lea edx, [ebp - 0x114]
mov byte [ebp - 4], 1
mov eax, esi
sub edx, esi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x476090
lea eax, [ebp - 0x114]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4760a1
mov cx, word [0x4c49c4]
mov dl, byte [0x4c49c6]
mov word [eax], cx
lea ebx, [ebp - 0x149c]
mov byte [eax + 2], dl
mov eax, esi
sub ebx, esi
mov cl, byte [eax]
mov byte [ebx + eax], cl
inc eax
test cl, cl
jne 0x4760c6
lea edi, [ebp - 0x149c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4760d7
mov ax, word [0x4b0cd8]
lea ecx, [ebp - 0x15dc]
push ecx
lea edx, [ebp - 0x114]
push edx
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x15f0], eax
cmp eax, 0xffffffff
je 0x47628a
xor eax, eax
lea ecx, [ecx]
mov cl, byte [ebp + eax - 0x149c]
mov byte [ebp + eax - 0x114], cl
inc eax
test cl, cl
jne 0x476110
jmp 0x476136
mov esi, dword [ebp - 0x15e8]
mov edi, dword [ebp - 0x15f0]
lea eax, [ebp - 0x15dc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x476278
lea ecx, [ebp - 0x15b0]
push ecx
call fcn.00473ab0
add esp, 4
test eax, eax
jne 0x476136
mov eax, esi
mov cl, byte [eax]
mov byte [ebx + eax], cl
inc eax
test cl, cl
jne 0x476167
lea edi, [ebp - 0x149c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x476178
mov dx, word [0x4b0cd8]
lea eax, [ebp - 0x15b0]
mov word [edi], dx
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x476192
lea edi, [ebp - 0x149c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4761a2
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x149c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
push eax
lea ecx, [ebp - 0x15e4]
call dword [sym.imp.mfc100.dll_Ordinal_1316]
lea ecx, [ebp - 0x15e4]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
mov ecx, dword [ebp - 0x15ec]
push ecx
push eax
call dword [sym.imp.MSVCR100.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x476130
mov al, byte [ebp - 0x15dc]
test al, 0x10
je 0x476238
mov edx, dword [ebp - 0x15ec]
push edx
lea eax, [ebp - 0x149c]
push eax
call fcn.00475fe0
add esp, 8
xor eax, eax
jmp 0x476220
mov cl, byte [ebp + eax - 0x114]
mov byte [ebp + eax - 0x149c], cl
inc eax
test cl, cl
jne 0x476220
jmp 0x476130
test al, 1
je 0x476251
lea ecx, [ebp - 0x149c]
push 0x80
push ecx
call dword [sym.imp.MSVCR100.dll__chmod]
add esp, 8
lea edx, [ebp - 0x149c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
mov cl, byte [ebp + eax - 0x114]
mov byte [ebp + eax - 0x149c], cl
inc eax
test cl, cl
jne 0x476260
jmp 0x476130
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
cmp eax, 0x12
je 0x4762a6
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x15e4]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x15e0]
call dword [sym.imp.mfc100.dll_Ordinal_901]
xor eax, eax
jmp 0x4762c4
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x15e4]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x15e0]
call dword [sym.imp.mfc100.dll_Ordinal_901]
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.0048e770
mov esp, ebp
pop ebp
ret