Function at 0x420540
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x489388
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b2098]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
lea eax, [esp + 0x28]
push eax
call fcn.00409190
mov eax, dword [eax]
xor esi, esi
push esi
push eax
mov dword [esp + 0x98], esi
call fcn.004286f0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 0xc
mov dword [esp + 0x8c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4205b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [0x4b36ac], 0
je 0x4205ca
push 0xffffffffffffffff
push esi
mov ecx, 0x4b3a48
call fcn.0043ec8f
cmp dword [0x4b3a50], esi
jle 0x4205f3
push 1
call fcn.0040b800
add esp, 4
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret
lea ecx, [esp + 0x14]
push ecx
call fcn.00407280
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x94], 1
call fcn.0040a6b0
mov eax, dword [esp + 0x38]
push eax
mov byte [esp + 0x98], 2
call fcn.004246d0
push 0x490ef8
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00403080
add esp, 0x18
push 0x48fda0
push 0x48fd98
lea ecx, [esp + 0x20]
mov byte [esp + 0x94], 3
call fcn.00402d90
mov eax, dword [esp + 0x18]
push 1
push 0x4b37f0
push eax
call fcn.0042f450
mov eax, dword [0x4b37f8]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 0xc
cmp eax, esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x24], esi
jle 0x420bee
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x28]
test eax, eax
jl 0x420dc1
mov ecx, dword [esp + 0x24]
cmp ecx, dword [0x4b37f8]
jge 0x420dc1
mov edx, dword [0x4b37f4]
add eax, edx
push eax
lea ecx, [esp + 0x64]
call fcn.00402c90
mov eax, dword [esp + 0x80]
mov byte [esp + 0x8c], 4
cmp eax, 0x7f000000
je 0x420bbd
cmp eax, 0x7e000000
je 0x420bbd
lea ecx, [esp + 0x4c]
call fcn.0043eaf0
lea eax, [esp + 0x4c]
push eax
sub esp, 0x24
lea edx, [esp + 0x88]
mov ecx, esp
mov dword [esp + 0x64], esp
push edx
mov byte [esp + 0xb8], 5
call fcn.00402c90
call fcn.00423d00
xor esi, esi
add esp, 0x28
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], esi
test eax, eax
jle 0x4208ed
test esi, esi
jl 0x420dc1
cmp esi, dword [esp + 0x54]
jge 0x420dc1
mov eax, dword [esp + 0x50]
mov eax, dword [eax + esi*4]
sub eax, 0x10
push eax
call fcn.00401380
lea edi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x1c], edi
push edi
mov byte [esp + 0x90], 6
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ecx]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4208ba
cmp dword [edi - 0xc], 0
jl 0x4208ba
push eax
push edi
call fcn.00467d3a
add esp, 8
test eax, eax
je 0x4208ba
sub eax, edi
sar eax, 1
js 0x4208ba
cmp dword [edi - 0xc], 3
jle 0x4208ba
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [edi - 0xc]
push ecx
mov dword [esp + 0x3c], ecx
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
lea esi, [edi - 0x10]
mov dword [esp + 0x4c], esp
mov ebx, esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x4207d8
cmp eax, dword [esi]
jne 0x4207d8
mov ebp, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x420813
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebp, eax
test ebp, ebp
je 0x420dbc
mov eax, dword [esi + 4]
mov dword [ebp + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esi + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp + 0x10]
push ecx
call fcn.00467b9f
add esp, 0x10
lea edx, [esp + 0x38]
add ebp, 0x10
push edx
mov dword [ebx], ebp
call fcn.00405de0
add esp, 8
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
mov byte [esp + 0x8c], 7
cmp eax, esi
je 0x420881
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x42086f
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x42086f
push eax
call fcn.00401380
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x420866
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea edi, [ebx + 0x10]
mov dword [esp + 0x1c], edi
jmp 0x420881
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00402100
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x8c], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4208a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x20]
cmp ecx, dword [edi - 0xc]
jne 0x420760
add edi, 0xfffffff0
mov byte [esp + 0x8c], 5
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4208de
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
inc esi
cmp esi, dword [esp + 0x3c]
mov dword [esp + 0x20], esi
jl 0x420722
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x54]
call fcn.0043ec8f
lea ecx, [esp + 0x4c]
push ecx
sub esp, 0x24
lea edx, [esp + 0x88]
mov ecx, esp
mov dword [esp + 0x70], esp
push edx
call fcn.00402c90
call fcn.00423e60
add esp, 0x28
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1c], 0
test eax, eax
jle 0x420bac
mov eax, dword [esp + 0x1c]
test eax, eax
jl 0x420dc1
cmp eax, dword [esp + 0x54]
jge 0x420dc1
mov ecx, dword [esp + 0x50]
mov esi, dword [ecx + eax*4]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
sub esi, 0x10
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x420975
cmp eax, dword [esi]
jne 0x420975
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4209b0
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x420dbc
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.00467b9f
add esp, 0x10
lea ebp, [edi + 0x10]
mov dword [esp + 0x20], ebp
push ebp
mov byte [esp + 0x90], 8
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4209d0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x420b74
cmp dword [ebp - 0xc], 0
jl 0x420b74
push eax
push ebp
call fcn.00467d3a
add esp, 8
test eax, eax
je 0x420b74
sub eax, ebp
sar eax, 1
js 0x420b74
cmp dword [ebp - 0xc], 3
jle 0x420b74
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push ecx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
lea esi, [ebp - 0x10]
mov dword [esp + 0x4c], esp
mov ebx, esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x420a41
cmp eax, dword [esi]
jne 0x420a41
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x420a7c
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x420dbc
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esi + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.00467b9f
add esp, 0x10
lea edx, [esp + 0x44]
add edi, 0x10
push edx
mov dword [ebx], edi
call fcn.00405de0
add esp, 8
mov eax, dword [eax]
lea edi, [eax - 0x10]
mov byte [esp + 0x8c], 9
cmp edi, esi
je 0x420b43
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x420b31
mov ecx, dword [edi]
cmp ecx, dword [esi]
jne 0x420b31
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x420ad7
cmp eax, dword [edi]
jne 0x420ad7
mov ebp, edi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x420b12
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebp, eax
test ebp, ebp
je 0x420dbc
mov eax, dword [edi + 4]
mov dword [ebp + 4], eax
mov eax, dword [edi + 4]
lea ecx, [eax + eax + 2]
push ecx
add edi, 0x10
lea edx, [eax + eax + 2]
push edi
push edx
lea eax, [ebp + 0x10]
push eax
call fcn.00467b9f
add esp, 0x10
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x420b28
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x20], ebp
jmp 0x420b43
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.00402100
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0x8c], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4209d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4209d0
add ebp, 0xfffffff0
mov byte [esp + 0x8c], 5
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420b99
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
jl 0x420935
lea ecx, [esp + 0x4c]
mov byte [esp + 0x8c], 4
call fcn.0043edf9
lea ecx, [esp + 0x60]
mov byte [esp + 0x8c], 3
call fcn.00402a90
mov eax, dword [esp + 0x24]
add dword [esp + 0x28], 0x24
inc eax
cmp eax, dword [esp + 0x44]
mov dword [esp + 0x24], eax
jl 0x420689
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
push 0x490538
lea eax, [esp + 0x30]
push 0x48fd60
push eax
call fcn.0040a300
add esp, 0xc
mov eax, dword [esp + 0x2c]
mov bl, 0xa
mov byte [esp + 0x8c], bl
cmp dword [eax - 0xc], esi
je 0x420c88
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x4c], esp
mov esi, esp
push eax
call fcn.00401380
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x48], esp
mov esi, esp
push eax
mov byte [esp + 0x98], 0xb
call fcn.00401380
add eax, 0x10
lea ecx, [esp + 0x50]
add esp, 4
mov dword [esi], eax
push ecx
mov byte [esp + 0x98], bl
call fcn.004067f0
mov eax, dword [eax]
add esp, 0xc
push eax
call edi
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x420c88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push str.__oldfiles.lst
call fcn.00402410
mov eax, dword [esp + 0x18]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x48], esp
mov esi, esp
push eax
mov byte [esp + 0x98], 0xc
call fcn.00401380
add eax, 0x10
lea ecx, [esp + 0x50]
add esp, 4
mov dword [esi], eax
push ecx
mov byte [esp + 0x98], bl
call fcn.004067f0
mov eax, dword [eax]
add esp, 0xc
push eax
call edi
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x420cf6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push ecx
call edi
call fcn.0041db60
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x8c], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x420d2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x8c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420d52
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x8c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420d7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x8c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420da5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret
call fcn.004011c0
call fcn.0043ea0b
int3