Function at 0x46cd50
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x244]
sub esp, 0x244
push 0xffffffffffffffff
push 0x6174a0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x7161c0]
xor eax, ebp
mov dword [ebp + 0x240], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [esi + 0x25c], 3
xor ebx, ebx
mov dword [esi + 0x22c], ebx
mov dword [esi + 0x234], ebx
mov byte [esi + 0x1d4], bl
mov byte [esi + 0x1c0], bl
or edi, 0xffffffff
mov dword [esi + 0x1e0], edi
mov dword [esi + 0x1e4], edi
push edi
push ebx
lea ecx, [esi + 0x278]
call fcn.00440420
mov eax, dword [esi + 0x190]
cmp eax, ebx
je 0x46cde9
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
call edx
mov dword [esi + 0x190], ebx
mov dword [ebp - 4], ebx
push ebx
lea ecx, [esi + 0x188]
call fcn.00465380
lea ecx, [esi + 0x144]
call fcn.00462ff0
lea ecx, [esi + 0x148]
call fcn.00462ff0
lea ecx, [esi + 0x14c]
call fcn.00462ff0
lea ecx, [esi + 0x130]
call fcn.00462ff0
lea ecx, [esi + 0x134]
call fcn.00462ff0
lea ecx, [esi + 0x138]
call fcn.00462ff0
lea ecx, [esi + 0x13c]
call fcn.00462ff0
lea ecx, [esi + 0x140]
call fcn.00462ff0
lea ecx, [esi + 0x128]
call fcn.00462ff0
lea ecx, [esi + 0x12c]
call fcn.00462ff0
lea ecx, [esi + 0x11c]
call fcn.00462ff0
lea ecx, [esi + 0x114]
call fcn.00462ff0
lea ecx, [esi + 0x118]
call fcn.00462ff0
lea ecx, [esi + 0x10c]
call fcn.00462ff0
lea ecx, [esi + 0x110]
call fcn.00462ff0
lea ecx, [esi + 0x108]
call fcn.00462ff0
lea ecx, [esi + 0xf0]
call fcn.00462ff0
lea ecx, [esi + 0xf4]
call fcn.00462ff0
lea ecx, [esi + 0x104]
call fcn.00462ff0
lea ecx, [esi + 0xf8]
call fcn.00462ff0
lea ecx, [esi + 0xfc]
call fcn.00462ff0
lea ecx, [esi + 0x100]
call fcn.00462ff0
lea ecx, [esi + 0xec]
call fcn.00462ff0
mov dword [ebp - 4], edi
jmp 0x46cf0c
mov byte [esi + 0x19c], 0
mov byte [esi + 0x19b], 0
mov byte [esi + 0x19a], 0
mov byte [esi + 0x199], 0
mov eax, dword [esi + 0x1a0]
cmp eax, ebx
je 0x46cf40
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
call edx
mov dword [esi + 0x1a0], ebx
mov eax, dword [esi + 0x18c]
cmp eax, ebx
je 0x46cf58
mov dword [esi + 0x18c], ebx
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
call edx
lea edi, [esi + 0x150]
mov dword [ebp - 0x20], edi
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 2
lea ecx, [esi + 0x168]
call fcn.00463010
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0xffffffffffffffff
push ebx
lea ecx, [esi + 0x1a4]
call fcn.004672e0
lea ecx, [esi + 0x1dc]
push 6
push str.Closed
call fcn.00401bb0
call fcn.005bc35c
mov eax, dword [eax + 4]
and dword [eax + 0xd4], 0x207
mov dword [esi + 0x25c], ebx
mov eax, dword [esi + 0x190]
cmp eax, ebx
je 0x46cfd8
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
call edx
mov dword [esi + 0x190], ebx
lea eax, [ebp + 0x140]
push eax
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, ebx
je 0x46d15f
mov ecx, dword [esi + 0x1f8]
cmp dword [ecx - 0xc], ebx
jle 0x46d15f
lea ecx, [ebp - 0x18]
call fcn.004019e0
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.004019e0
mov byte [ebp - 4], 4
mov edx, dword [esi + 0x1f8]
push edx
lea eax, [ebp + 0x140]
push eax
push str._s_s.srt
lea ecx, [ebp - 0x14]
push ecx
call fcn.004030a0
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004030c0
add esp, 0x1c
mov byte [ebp - 4], 5
mov eax, dword [eax]
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call ebx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.00401a50
mov edx, dword [esi + 0x1f8]
push edx
lea eax, [ebp + 0x140]
push eax
push str._s_s_
lea ecx, [ebp - 0x18]
push ecx
call fcn.004030a0
push 0x63ca84
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.00403170
add esp, 0x1c
mov byte [ebp - 4], 6
mov eax, dword [eax]
lea ecx, [ebp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.00401a50
cmp edi, 0xffffffff
je 0x46d138
lea edx, [ebp]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x46d126
jmp 0x46d0d0
lea eax, [ebp + 0x2c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x46d0d6
sub eax, edx
push eax
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401bb0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.004030c0
add esp, 0xc
mov byte [ebp - 4], 7
mov eax, dword [eax]
push eax
call ebx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20]
call fcn.00401a50
lea ecx, [ebp]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x46d0d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x46d138
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.00401a50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401a50
xor ebx, ebx
push ebx
push 0x630be8
lea ecx, [esi + 0x1f8]
call fcn.00401bb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x240]
xor ecx, ebp
call fcn.005d8d34
add ebp, 0x244
mov esp, ebp
pop ebp
ret