Function at 0x4054b0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x455687
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x470050]
xor eax, esp
mov dword [esp + 0x2c8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x470050]
xor eax, esp
push eax
lea eax, [esp + 0x2e4]
mov dword fs:[0], eax
cmp byte [esp + 0x2f4], 0
mov ebx, ecx
mov ebp, 8
jne 0x405524
lea esi, [ebx + 4]
cmp dword [ebx + 0x18], ebp
jb 0x405508
mov eax, dword [esi]
jmp 0x40550a
mov eax, esi
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebx + 0x18], ebp
jb 0x40551d
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edi, [esp + 0x18]
mov dword [esp + 0x18], 0x5c
call fcn.00406900
mov edi, eax
test edi, edi
je 0x405871
cmp edi, 0xffffffff
je 0x405871
push ebx
mov ecx, edi
xor edx, edx
lea esi, [esp + 0x3c]
call fcn.004066a0
mov dword [esp + 0x2ec], 0
mov eax, dword [esp + 0x4c]
lea esi, [eax - 1]
cmp esi, eax
jbe 0x405571
call fcn.0042c4d4
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], ebp
jae 0x40557f
lea eax, [esp + 0x3c]
cmp word [eax + esi*2], 0x5c
jne 0x4055c5
lea ecx, [edi - 1]
push ebx
xor edx, edx
lea esi, [esp + 0x58]
call fcn.004066a0
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x40]
mov byte [esp + 0x2f4], 1
call fcn.004028d0
mov byte [esp + 0x2ec], 0
cmp dword [esp + 0x6c], ebp
jb 0x4055c5
mov eax, dword [esp + 0x58]
push eax
call fcn.0042c62b
add esp, 4
lea ecx, [esp + 0x38]
push ecx
mov ebx, str..
lea esi, [esp + 0x58]
mov byte [esp + 0x1b], 0
call fcn.00406bb0
add esp, 4
mov byte [esp + 0x2ec], 2
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x6c], ebp
jae 0x4055f6
lea eax, [esp + 0x58]
lea edx, [esp + 0x8c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40584b
mov bl, 1
mov ecx, 0x45be24
lea eax, [esp + 0xb8]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405646
test dx, dx
je 0x405642
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405646
add eax, 4
add ecx, 4
test dx, dx
jne 0x405620
xor eax, eax
jmp 0x40564b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x405693
mov ecx, 0x45be28
lea eax, [esp + 0xb8]
jmp 0x405660
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405686
test dx, dx
je 0x405682
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405686
add eax, 4
add ecx, 4
test dx, dx
jne 0x405660
xor eax, eax
jmp 0x40568b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x405725
lea eax, [esp + 0x8c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x405725
mov ecx, 0x45be24
lea eax, [esp + 0xb8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4056d8
test dx, dx
je 0x4056d4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4056d8
add eax, 4
add ecx, 4
test dx, dx
jne 0x4056b2
xor eax, eax
jmp 0x4056dd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x405693
mov ecx, 0x45be28
lea eax, [esp + 0xb8]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405716
test dx, dx
je 0x405712
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405716
add eax, 4
add ecx, 4
test dx, dx
jne 0x4056f0
xor eax, eax
jmp 0x40571b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x405693
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
test bl, bl
je 0x405823
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], ebp
jae 0x405742
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x405823
lea edi, [esp + 0x18]
lea ebx, [esp + 0x38]
mov dword [esp + 0x18], 0x5c
call fcn.00406900
mov edi, eax
cmp edi, 0xffffffff
je 0x405823
mov ecx, ebx
push ecx
mov ecx, edi
xor edx, edx
lea esi, [esp + 0x74]
call fcn.004066a0
mov bl, 3
mov byte [esp + 0x2ec], bl
mov eax, dword [esp + 0x84]
lea esi, [eax - 1]
cmp esi, eax
jbe 0x40579d
call fcn.0042c4d4
mov eax, dword [esp + 0x74]
cmp dword [esp + 0x88], ebp
jae 0x4057ae
lea eax, [esp + 0x74]
cmp word [eax + esi*2], 0x5c
jne 0x4057f7
lea edx, [esp + 0x38]
push edx
lea ecx, [edi - 1]
xor edx, edx
lea esi, [esp + 0x20]
call fcn.004066a0
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x78]
mov byte [esp + 0x2f4], 4
call fcn.004028d0
mov byte [esp + 0x2ec], bl
cmp dword [esp + 0x34], ebp
jb 0x4057f7
mov eax, dword [esp + 0x20]
push eax
call fcn.0042c62b
add esp, 4
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x78]
lea ecx, [esp + 0x40]
call fcn.004028d0
mov byte [esp + 0x17], 1
cmp dword [esp + 0x88], ebp
jb 0x405823
mov ecx, dword [esp + 0x74]
push ecx
call fcn.0042c62b
add esp, 4
mov byte [esp + 0x2ec], 0
cmp dword [esp + 0x6c], ebp
jb 0x40583e
mov edx, dword [esp + 0x58]
push edx
call fcn.0042c62b
add esp, 4
cmp byte [esp + 0x17], 0
jne 0x4055c5
jmp 0x40585e
cmp dword [esp + 0x6c], ebp
jb 0x40585e
mov eax, dword [esp + 0x58]
push eax
call fcn.0042c62b
add esp, 4
cmp dword [esp + 0x50], ebp
jb 0x405871
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0042c62b
add esp, 4
mov ecx, dword [esp + 0x2e4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c8]
xor ecx, esp
call fcn.0042c1e9
add esp, 0x2dc
ret