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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0b18
mov eax, dword fs:[0]
push eax
sub esp, 0x924
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]
push esi
lea ecx, [ebp - 0x924]
mov dword [ebp - 0x930], esi
call dword [sym.imp.mfc100.dll_Ordinal_310]
lea ecx, [ebp - 0x924]
mov dword [ebp - 4], 0
call dword [sym.imp.mfc100.dll_Ordinal_7322]
test al, al
jne 0x475fba
push ecx
lea eax, [ebp - 0x924]
mov ecx, esp
mov dword [ebp - 0x928], esp
push eax
call dword [sym.imp.mfc100.dll_Ordinal_300]
call fcn.00473a70
add esp, 4
test al, al
je 0x475fba
push str.F:_testing
lea ecx, [ebp - 0x92c]
call dword [sym.imp.mfc100.dll_Ordinal_310]
lea edx, [ebp - 0x7e0]
mov byte [ebp - 4], 1
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x475d94
lea eax, [ebp - 0x7e0]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x475da5
mov cx, word [0x4c49c4]
mov dl, byte [0x4c49c6]
mov word [eax], cx
mov byte [eax + 2], dl
lea edx, [ebp - 0x3f8]
mov eax, esi
sub edx, esi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x475dd0
lea edi, [ebp - 0x3f8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x475de1
mov ax, word [0x4b0cd8]
lea ecx, [ebp - 0x920]
push ecx
lea edx, [ebp - 0x7e0]
push edx
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov dword [ebp - 0x928], edi
cmp edi, 0xffffffff
je 0x475fae
xor eax, eax
lea esp, [esp]
mov cl, byte [ebp + eax - 0x3f8]
mov byte [ebp + eax - 0x7e0], cl
inc eax
test cl, cl
jne 0x475e20
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea esp, [esp]
lea eax, [ebp - 0x920]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x475f54
lea ecx, [ebp - 0x8f4]
push ecx
call fcn.00473ab0
add esp, 4
test eax, eax
jne 0x475e40
lea eax, [ebp - 0x8f4]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x475e71
lea edi, [ebp - 0x3f8]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x475e81
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, byte [ebp - 0x920]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test al, 0x10
je 0x475ef4
lea edx, [ebp - 0x3f8]
push edx
call fcn.00475cf0
add esp, 4
test eax, eax
je 0x475fa1
lea eax, [ebp - 0x3f8]
push eax
call ebx
xor eax, eax
jmp 0x475ed0
mov cl, byte [ebp + eax - 0x7e0]
mov byte [ebp + eax - 0x3f8], cl
inc eax
test cl, cl
jne 0x475ed0
mov edi, dword [ebp - 0x928]
mov esi, dword [ebp - 0x930]
jmp 0x475e40
test al, 1
je 0x475f0d
lea ecx, [ebp - 0x3f8]
push 0x80
push ecx
call dword [sym.imp.MSVCR100.dll__chmod]
add esp, 8
lea edx, [ebp - 0x3f8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x475fca
xor eax, eax
jmp 0x475f30
mov cl, byte [ebp + eax - 0x7e0]
mov byte [ebp + eax - 0x3f8], cl
inc eax
test cl, cl
jne 0x475f30
mov edi, dword [ebp - 0x928]
mov esi, dword [ebp - 0x930]
jmp 0x475e40
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x475fd3
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call ebx
lea ecx, [ebp - 0x92c]
mov esi, eax
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x924]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov eax, 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.0048e770
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x928]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x92c]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x924]
call dword [sym.imp.mfc100.dll_Ordinal_901]
xor eax, eax
jmp 0x475f85
mov ecx, dword [ebp - 0x928]
push ecx
jmp 0x475fa8
push edi
jmp 0x475fa8