Function at 0x413680
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x446970
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x45c16c]
mov ecx, dword [eax + 0x14]
push ebx
mov ebx, dword [ecx + 0xac]
mov eax, dword [ebx + 0xa4]
push ebp
mov ebp, dword [ebx + 0xa0]
cmp ebp, eax
push esi
push edi
mov dword [esp + 0x1c], ebx
je 0x413825
call fcn.00438ca4
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 0x448cf8
push ecx
mov dword [esp + 0x38], 0
call fcn.00403780
mov eax, dword [0x45c16c]
mov ecx, dword [eax + 0x14]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
mov edx, dword [ecx + 0xac]
add edx, 0x48
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00407c30
mov esi, dword [esp + 0x10]
push esi
mov byte [esp + 0x30], 1
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [0x45c16c]
mov eax, dword [edx + 0x14]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [eax + 0xac]
add ecx, 0x4c
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00407c30
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
mov byte [esp + 0x2c], 2
je 0x4137a5
mov edx, dword [edi + 0xc]
test edx, edx
lea esi, [edi + 0xc]
jl 0x413793
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x413793
push eax
call fcn.00402c10
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x413786
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
lea esi, [ebx + 0x10]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x10], esi
jmp 0x4137a5
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00403080
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
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 0x4137c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi - 0x10]
mov byte [esp + 0x2c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4137ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
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 0x413814
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebx + 0xa4]
add ebp, 4
cmp ebp, eax
jne 0x4136c2
mov ebp, dword [ebx + 0xb0]
cmp ebp, dword [ebx + 0xb4]
mov dword [esp + 0x18], ebp
je 0x4139bb
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call fcn.00438ca4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [ebp]
push eax
lea ecx, [esp + 0x14]
push 0x448cf8
push ecx
mov dword [esp + 0x38], 3
call fcn.00403780
mov edx, dword [esp + 0x1c]
push 0x448de4
push edx
call fcn.00428fbd
add esp, 0x14
test eax, eax
je 0x41397c
mov ecx, dword [0x45c16c]
mov edx, dword [ecx + 0x14]
lea eax, [esp + 0x10]
push eax
mov eax, dword [edx + 0xac]
add eax, 0x48
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00407c30
mov esi, dword [esp + 0x14]
push esi
mov byte [esp + 0x30], 4
call ebx
mov eax, dword [0x45c16c]
mov ecx, dword [eax + 0x14]
lea edx, [esp + 0x10]
push edx
mov edx, dword [ecx + 0xac]
add edx, 0x4c
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00407c30
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
mov byte [esp + 0x2c], 5
je 0x413937
mov edx, dword [edi + 0xc]
test edx, edx
lea esi, [edi + 0xc]
jl 0x413925
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x413925
push eax
call fcn.00402c10
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x413918
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
lea esi, [ebp + 0x10]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x14], esi
jmp 0x413937
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00403080
mov esi, 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 0x41395a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push esi
call ebx
lea eax, [esi - 0x10]
mov byte [esp + 0x2c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41397c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
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 0x4139a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0xb4]
add ebp, 4
cmp ebp, ecx
mov dword [esp + 0x18], ebp
jne 0x413841
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret