Function at 0x422920
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573398
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
mov eax, dword [0x5f0bf8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x40]
call fcn.00453c62
mov dword [ebp - 4], 0
push 0xffffffffffffffff
push 0x587f8c
lea ecx, [ebp - 0x10]
call fcn.005685f4
mov byte [ebp - 4], 1
mov esi, dword [ebp + 8]
push esi
lea eax, [ebp - 0x10]
push str._s.
push eax
call fcn.0056934a
mov eax, dword [ebp - 0x10]
add esp, 0xc
test eax, eax
je 0x42298d
add eax, 0xc
jmp 0x422992
mov eax, 0x587f8c
push 0
push eax
lea ecx, [ebp - 0x40]
call fcn.00453ce6
test eax, eax
je 0x422af3
mov bl, 2
lea ecx, [ebp - 0x40]
call fcn.00453a4a
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x24], eax
call fcn.00453c24
test eax, eax
jne 0x422ae9
push 0xffffffffffffffff
push 0x587f8c
lea ecx, [ebp + 8]
call fcn.005685f4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00453fc2
mov byte [ebp - 4], 3
mov eax, dword [eax]
push eax
lea ecx, [ebp + 8]
call fcn.00568cd1
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x422a11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [ebp - 0x40]
call eax
push 0xffffffffffffffff
push 0x587f8c
test eax, eax
je 0x422a8a
lea ecx, [ebp - 0x14]
call fcn.005685f4
mov byte [ebp - 4], 5
mov eax, dword [ebp + 8]
test eax, eax
je 0x422a41
add eax, 0xc
jmp 0x422a46
mov eax, 0x587f8c
push eax
push esi
lea ecx, [ebp - 0x14]
push str._s_s
push ecx
call fcn.0056934a
mov eax, dword [ebp - 0x14]
add esp, 0x10
test eax, eax
je 0x422a74
mov ecx, dword [ebp - 0x20]
add eax, 0xc
push eax
call fcn.00422920
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
jmp 0x422ad8
mov ecx, dword [ebp - 0x20]
mov eax, 0x587f8c
push eax
call fcn.00422920
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
jmp 0x422ad8
lea ecx, [ebp - 0x18]
call fcn.005685f4
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
test eax, eax
je 0x422aa2
add eax, 0xc
jmp 0x422aa7
mov eax, 0x587f8c
push eax
push esi
lea edx, [ebp - 0x18]
push str._s_s
push edx
call fcn.0056934a
mov eax, dword [ebp - 0x18]
add esp, 0x10
test eax, eax
je 0x422ac6
add eax, 0xc
jmp 0x422acb
mov eax, 0x587f8c
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.005685da
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.005685da
cmp dword [ebp - 0x24], 0
jne 0x4229a7
lea ecx, [ebp - 0x40]
call fcn.00453964
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x422b35
mov byte [ebp - 4], al
lea ecx, [ebp - 0x10]
call fcn.005685da
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00453c94
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.005685da
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00453c94
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4