Function at 0x4706e0
Capabilities:
Delete directory
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d4dc
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x5fb61c]
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 eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x26c], esi
push eax
lea ecx, [ebp - 0x268]
mov dword [ebp - 4], esi
call fcn.00422540
push 0x592378
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x270]
push ecx
mov byte [ebp - 4], 1
call fcn.004221d0
mov eax, dword [eax]
add esp, 0xc
lea edx, [ebp - 0x260]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x470767
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp - 0x270]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470789
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x26c], 0xffffffff
mov edi, dword [ebp + 0xc]
mov ebx, 2
jmp 0x470885
test byte [ebp - 0x260], 0x10
je 0x47086f
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x592320
lea ecx, [ebp - 0x234]
push ecx
call esi
test eax, eax
je 0x47086f
push 0x59185c
lea edx, [ebp - 0x234]
push edx
call esi
test eax, eax
je 0x47086f
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x268]
push ecx
lea edx, [ebp - 0x274]
push edx
call fcn.004221d0
push 0x592324
push eax
lea eax, [ebp - 0x270]
push eax
mov byte [ebp - 4], bl
call fcn.004221d0
mov eax, dword [eax]
push edi
push eax
mov byte [ebp - 4], 3
call fcn.004706e0
mov esi, eax
mov eax, dword [ebp - 0x270]
add eax, 0xfffffff0
add esp, 0x20
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470845
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x274]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47086b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x470895
mov edx, dword [ebp - 0x26c]
lea ecx, [ebp - 0x260]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4707a0
mov dword [ebp - 0x264], 1
mov eax, dword [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x4708cb
test edi, edi
je 0x4708cb
cmp eax, ebx
je 0x4708cb
cmp eax, 3
je 0x4708cb
mov ecx, dword [ebp - 0x268]
push 4
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4708f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x26c]
test eax, eax
je 0x470907
cmp eax, 0xffffffff
je 0x470907
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
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.005332ca
mov esp, ebp
pop ebp
ret