Function at 0x4104a0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4410c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x45616c]
mov ecx, dword [eax + 0x14]
mov ecx, dword [ecx + 0x80]
mov eax, dword [ecx + 0xa4]
push ebx
push ebp
mov ebp, dword [ecx + 0xa0]
cmp ebp, eax
push esi
push edi
mov dword [esp + 0x18], ecx
je 0x410647
call fcn.004335c2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [ebp]
push eax
lea ecx, [esp + 0x18]
push 0x443ce8
push ecx
mov dword [esp + 0x38], 0
call fcn.00403000
mov eax, dword [0x45616c]
mov ecx, dword [eax + 0x14]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
mov edx, dword [ecx + 0x80]
add edx, 0x48
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00407fd0
mov esi, dword [esp + 0x10]
push esi
mov byte [esp + 0x30], 1
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [0x45616c]
mov eax, dword [edx + 0x14]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [eax + 0x80]
add ecx, 0x4c
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00407fd0
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
mov byte [esp + 0x2c], 2
je 0x4105c1
mov edx, dword [edi + 0xc]
test edx, edx
lea esi, [edi + 0xc]
jl 0x4105af
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x4105af
push eax
call fcn.00402510
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x4105a6
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
lea esi, [ebx + 0x10]
mov dword [esp + 0x10], esi
jmp 0x4105c1
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00402960
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4105e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esi, 0xfffffff0
mov byte [esp + 0x2c], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41060a
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410630
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0xa4]
add ebp, 4
cmp ebp, ecx
jne 0x4104e2
mov ecx, eax
mov ebx, dword [ecx + 0xb0]
cmp ebx, dword [ecx + 0xb4]
mov dword [esp + 0x1c], ebx
je 0x410820
lea ecx, [ecx]
call fcn.004335c2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [ebx]
push eax
lea ecx, [esp + 0x14]
push 0x443ce8
push ecx
mov dword [esp + 0x38], 3
call fcn.00403000
mov eax, dword [0x45616c]
mov ecx, dword [eax + 0x14]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
mov edx, dword [ecx + 0x80]
add edx, 0x48
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00407fd0
mov edi, dword [esp + 0x14]
push edi
mov byte [esp + 0x30], 4
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edx, dword [0x45616c]
mov eax, dword [edx + 0x14]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [eax + 0x80]
add ecx, 0x4c
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00407fd0
mov eax, dword [eax]
lea esi, [eax - 0x10]
lea ebp, [edi - 0x10]
cmp esi, ebp
mov byte [esp + 0x2c], 5
je 0x410798
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jl 0x410786
mov ecx, dword [esi]
cmp ecx, dword [ebp]
jne 0x410786
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x41072a
cmp eax, dword [esi]
jne 0x41072a
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x410761
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 2
push ecx
mov ecx, eax
call dword [edx]
mov ebx, eax
test ebx, ebx
je 0x410833
mov edx, dword [esi + 4]
mov dword [ebx + 4], edx
mov eax, dword [esi + 4]
inc eax
lea ecx, [eax + eax]
mov eax, ecx
shr ecx, 2
add esi, 0x10
lea edi, [ebx + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
lea eax, [ebp + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410779
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
lea edi, [ebx + 0x10]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x14], edi
jmp 0x410798
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00402960
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4107bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add edi, 0xfffffff0
mov byte [esp + 0x2c], 3
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4107e1
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410807
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0xb4]
add ebx, 4
cmp ebx, ecx
mov dword [esp + 0x1c], ebx
jne 0x410660
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
jmp fcn.004021a0