Function at 0x418fa0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x47cfd8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a3e28]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
lea eax, [esp + 0x28]
push eax
call fcn.00408b90
mov eax, dword [eax]
xor esi, esi
push esi
push eax
mov dword [esp + 0x98], esi
call fcn.00421210
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 0x419014
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [0x4a55a8], 0
je 0x41902a
push 0xffffffffffffffff
push esi
mov ecx, 0x4a5940
call fcn.00441743
cmp dword [0x4a5948], esi
jle 0x419053
push 1
call fcn.0040a900
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.00406e20
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x94], 1
call fcn.00409860
mov eax, dword [esp + 0x38]
push eax
mov byte [esp + 0x98], 2
call fcn.0041d1f0
push 0x484c44
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00402800
add esp, 0x18
push 0x483af4
push 0x483aec
lea ecx, [esp + 0x20]
mov byte [esp + 0x94], 3
call fcn.00402510
mov eax, dword [esp + 0x18]
push 1
push 0x4a56e8
push eax
call fcn.00427990
mov eax, dword [0x4a56f0]
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 0x41964e
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x28]
test eax, eax
jl 0x419821
mov ecx, dword [esp + 0x24]
cmp ecx, dword [0x4a56f0]
jge 0x419821
mov edx, dword [0x4a56ec]
add eax, edx
push eax
lea ecx, [esp + 0x64]
call fcn.00402410
mov eax, dword [esp + 0x80]
mov byte [esp + 0x8c], 4
cmp eax, 0x7f000000
je 0x41961d
cmp eax, 0x7e000000
je 0x41961d
lea ecx, [esp + 0x4c]
call fcn.0044169c
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.00402410
call fcn.0041c820
xor esi, esi
add esp, 0x28
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], esi
test eax, eax
jle 0x41934d
test esi, esi
jl 0x419821
cmp esi, dword [esp + 0x54]
jge 0x419821
mov eax, dword [esp + 0x50]
mov eax, dword [eax + esi*4]
sub eax, 0x10
push eax
call fcn.00401590
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 0x41931a
cmp dword [edi - 0xc], 0
jl 0x41931a
push eax
push edi
call fcn.0045bf66
add esp, 8
test eax, eax
je 0x41931a
sub eax, edi
sar eax, 1
js 0x41931a
cmp dword [edi - 0xc], 3
jle 0x41931a
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 0x419238
cmp eax, dword [esi]
jne 0x419238
mov ebp, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x419273
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 0x41981c
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.0045be8c
add esp, 0x10
lea edx, [esp + 0x38]
add ebp, 0x10
push edx
mov dword [ebx], ebp
call fcn.00405700
add esp, 8
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
mov byte [esp + 0x8c], 7
cmp eax, esi
je 0x4192e1
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4192cf
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4192cf
push eax
call fcn.00401590
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4192c6
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 0x4192e1
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.004017a0
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 0x419309
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 0x4191c0
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 0x41933e
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 0x419182
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x54]
call fcn.00441743
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.00402410
call fcn.0041c980
add esp, 0x28
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1c], 0
test eax, eax
jle 0x41960c
mov eax, dword [esp + 0x1c]
test eax, eax
jl 0x419821
cmp eax, dword [esp + 0x54]
jge 0x419821
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 0x4193d5
cmp eax, dword [esi]
jne 0x4193d5
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x419410
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 0x41981c
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.0045be8c
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 0x419430
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4195d4
cmp dword [ebp - 0xc], 0
jl 0x4195d4
push eax
push ebp
call fcn.0045bf66
add esp, 8
test eax, eax
je 0x4195d4
sub eax, ebp
sar eax, 1
js 0x4195d4
cmp dword [ebp - 0xc], 3
jle 0x4195d4
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 0x4194a1
cmp eax, dword [esi]
jne 0x4194a1
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4194dc
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 0x41981c
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.0045be8c
add esp, 0x10
lea edx, [esp + 0x44]
add edi, 0x10
push edx
mov dword [ebx], edi
call fcn.00405700
add esp, 8
mov eax, dword [eax]
lea edi, [eax - 0x10]
mov byte [esp + 0x8c], 9
cmp edi, esi
je 0x4195a3
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x419591
mov ecx, dword [edi]
cmp ecx, dword [esi]
jne 0x419591
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x419537
cmp eax, dword [edi]
jne 0x419537
mov ebp, edi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x419572
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 0x41981c
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.0045be8c
add esp, 0x10
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x419588
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 0x4195a3
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.004017a0
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 0x419430
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x419430
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 0x4195f9
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 0x419395
lea ecx, [esp + 0x4c]
mov byte [esp + 0x8c], 4
call fcn.00441879
lea ecx, [esp + 0x60]
mov byte [esp + 0x8c], 3
call fcn.00402200
mov eax, dword [esp + 0x24]
add dword [esp + 0x28], 0x24
inc eax
cmp eax, dword [esp + 0x44]
mov dword [esp + 0x24], eax
jl 0x4190e9
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
push 0x484288
lea eax, [esp + 0x30]
push 0x48398c
push eax
call fcn.004094b0
add esp, 0xc
mov eax, dword [esp + 0x2c]
mov bl, 0xa
mov byte [esp + 0x8c], bl
cmp dword [eax - 0xc], esi
je 0x4196e8
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x4c], esp
mov esi, esp
push eax
call fcn.00401590
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.00401590
add eax, 0x10
lea ecx, [esp + 0x50]
add esp, 4
mov dword [esi], eax
push ecx
mov byte [esp + 0x98], bl
call fcn.00406390
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 0x4196e8
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.00401ab0
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.00401590
add eax, 0x10
lea ecx, [esp + 0x50]
add esp, 4
mov dword [esi], eax
push ecx
mov byte [esp + 0x98], bl
call fcn.00406390
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 0x419756
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.00416650
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 0x41978a
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 0x4197b2
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 0x4197da
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 0x419805
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.00401330
call fcn.00441013
int3