Function at 0x419a20
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x46ef18
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push ebp
push esi
push edi
mov eax, dword [0x490d1c]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
lea eax, [esp + 0x28]
push eax
call fcn.004078f0
mov eax, dword [eax]
xor esi, esi
push esi
push eax
mov dword [esp + 0x98], esi
call fcn.004217a0
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 0x419a94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [0x492128], 0
je 0x419aaa
push 0xffffffffffffffff
push esi
mov ecx, 0x4924c0
call fcn.0043b60f
cmp dword [0x4924c8], esi
jle 0x419ad3
push 1
call fcn.004095e0
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.00406230
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x94], 1
call fcn.00408540
mov eax, dword [esp + 0x38]
push eax
mov byte [esp + 0x98], 2
call fcn.0041d780
push 0x475cc4
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00402c10
add esp, 0x18
push 0x474c3c
push 0x474c34
lea ecx, [esp + 0x20]
mov byte [esp + 0x94], 3
call fcn.00402920
mov eax, dword [esp + 0x18]
push 1
push 0x492268
push eax
call fcn.00427ec0
mov eax, dword [0x492270]
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 0x41a0ce
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x28]
test eax, eax
jl 0x41a2a1
mov ecx, dword [esp + 0x24]
cmp ecx, dword [0x492270]
jge 0x41a2a1
mov edx, dword [0x49226c]
add eax, edx
push eax
lea ecx, [esp + 0x64]
call fcn.00402820
mov eax, dword [esp + 0x80]
mov byte [esp + 0x8c], 4
cmp eax, 0x7f000000
je 0x41a09d
cmp eax, 0x7e000000
je 0x41a09d
lea ecx, [esp + 0x4c]
call fcn.0043b568
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.00402820
call fcn.0041cdb0
xor esi, esi
add esp, 0x28
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], esi
test eax, eax
jle 0x419dcd
test esi, esi
jl 0x41a2a1
cmp esi, dword [esp + 0x54]
jge 0x41a2a1
mov eax, dword [esp + 0x50]
mov eax, dword [eax + esi*4]
sub eax, 0x10
push eax
call fcn.00401920
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 0x419d9a
cmp dword [edi - 0xc], 0
jl 0x419d9a
push eax
push edi
call fcn.00455a19
add esp, 8
test eax, eax
je 0x419d9a
sub eax, edi
sar eax, 1
js 0x419d9a
cmp dword [edi - 0xc], 3
jle 0x419d9a
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 0x419cb8
cmp eax, dword [esi]
jne 0x419cb8
mov ebp, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x419cf3
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 0x41a29c
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.0045593f
add esp, 0x10
lea edx, [esp + 0x38]
add ebp, 0x10
push edx
mov dword [ebx], ebp
call fcn.00404dd0
add esp, 8
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
mov byte [esp + 0x8c], 7
cmp eax, esi
je 0x419d61
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x419d4f
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x419d4f
push eax
call fcn.00401920
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x419d46
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 0x419d61
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00401b50
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 0x419d89
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 0x419c40
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 0x419dbe
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 0x419c02
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x54]
call fcn.0043b60f
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.00402820
call fcn.0041cf10
add esp, 0x28
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1c], 0
test eax, eax
jle 0x41a08c
mov eax, dword [esp + 0x1c]
test eax, eax
jl 0x41a2a1
cmp eax, dword [esp + 0x54]
jge 0x41a2a1
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 0x419e55
cmp eax, dword [esi]
jne 0x419e55
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x419e90
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 0x41a29c
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.0045593f
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 0x419eb0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41a054
cmp dword [ebp - 0xc], 0
jl 0x41a054
push eax
push ebp
call fcn.00455a19
add esp, 8
test eax, eax
je 0x41a054
sub eax, ebp
sar eax, 1
js 0x41a054
cmp dword [ebp - 0xc], 3
jle 0x41a054
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 0x419f21
cmp eax, dword [esi]
jne 0x419f21
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x419f5c
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 0x41a29c
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.0045593f
add esp, 0x10
lea edx, [esp + 0x44]
add edi, 0x10
push edx
mov dword [ebx], edi
call fcn.00404dd0
add esp, 8
mov eax, dword [eax]
lea edi, [eax - 0x10]
mov byte [esp + 0x8c], 9
cmp edi, esi
je 0x41a023
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x41a011
mov ecx, dword [edi]
cmp ecx, dword [esi]
jne 0x41a011
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x419fb7
cmp eax, dword [edi]
jne 0x419fb7
mov ebp, edi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x419ff2
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 0x41a29c
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.0045593f
add esp, 0x10
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x41a008
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 0x41a023
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.00401b50
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 0x419eb0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x419eb0
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 0x41a079
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 0x419e15
lea ecx, [esp + 0x4c]
mov byte [esp + 0x8c], 4
call fcn.0043b745
lea ecx, [esp + 0x60]
mov byte [esp + 0x8c], 3
call fcn.004025a0
mov eax, dword [esp + 0x24]
add dword [esp + 0x28], 0x24
inc eax
cmp eax, dword [esp + 0x44]
mov dword [esp + 0x24], eax
jl 0x419b69
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
push 0x475288
lea eax, [esp + 0x30]
push 0x474ad4
push eax
call fcn.00408190
add esp, 0xc
mov eax, dword [esp + 0x2c]
mov bl, 0xa
mov byte [esp + 0x8c], bl
cmp dword [eax - 0xc], esi
je 0x41a168
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x4c], esp
mov esi, esp
push eax
call fcn.00401920
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.00401920
add eax, 0x10
lea ecx, [esp + 0x50]
add esp, 4
mov dword [esi], eax
push ecx
mov byte [esp + 0x98], bl
call fcn.004057a0
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 0x41a168
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.00401e60
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.00401920
add eax, 0x10
lea ecx, [esp + 0x50]
add esp, 4
mov dword [esi], eax
push ecx
mov byte [esp + 0x98], bl
call fcn.004057a0
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 0x41a1d6
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.004177d0
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 0x41a20a
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 0x41a232
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 0x41a25a
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 0x41a285
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.004016b0
call fcn.0043ad73
int3