Function at 0x404ad0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54e9fe
mov eax, dword fs:[0]
push eax
sub esp, 0x688
mov eax, dword [0x5b41b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x674], ecx
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x654]
xorps xmm0, xmm0
mov dword [ebp - 0x63c], 0
mov edi, 1
movq qword [ebp - 0x644], xmm0
mov dword [ebp - 0x668], edi
movdqu xmmword [ebp - 0x654], xmm0
call fcn.00429e9b
xor eax, eax
mov byte [ebp - 4], 2
push 0x206
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call fcn.00535230
add esp, 0xc
lea eax, [ebp - 0x628]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x593edc
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x654]
call fcn.0042a037
or esi, 0xffffffff
test eax, eax
je 0x4050fc
lea ecx, [ebp - 0x654]
call fcn.0042a1df
lea ecx, [ebp - 0x654]
mov dword [ebp - 0x67c], eax
call fcn.0042a56f
test eax, eax
jne 0x4050e9
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.00535230
add esp, 0xc
lea eax, [ebp - 0x678]
lea ecx, [ebp - 0x654]
push eax
call fcn.0042a293
mov edi, eax
mov byte [ebp - 4], 3
mov ecx, dword [edi]
cmp dword [ecx - 4], 1
jle 0x404c0a
push dword [ecx - 0xc]
mov ecx, edi
call fcn.00402190
push dword [edi]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x420]
push eax
call edi
mov byte [ebp - 4], 2
mov ecx, esi
mov edx, dword [ebp - 0x678]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404c3e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x654]
lea ecx, [ebp - 0x654]
push 0x10
mov eax, dword [eax + 0x38]
call eax
test eax, eax
je 0x404df3
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00535230
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [ebp + 8]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call esi
push 0x593ed4
lea eax, [ebp - 0x218]
push eax
call esi
mov esi, dword [ebp + 0x10]
push dword [ebp + 0x14]
push ecx
mov ecx, dword [esi - 0x10]
mov dword [ebp - 0x66c], esp
mov dword [ebp - 0x62c], esp
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
cmp dword [esi - 4], 0
lea edx, [esi - 4]
mov ecx, eax
jl 0x404ce2
cmp ecx, dword [esi - 0x10]
jne 0x404ce2
lea edi, [esi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x404d1d
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
mov eax, dword [eax]
call eax
mov edi, eax
test edi, edi
je 0x4051a9
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov ecx, dword [esi - 0xc]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ecx*2 + 2]
push esi
push eax
lea eax, [edi + 0x10]
push eax
call fcn.00532fa6
add esp, 0x10
mov ecx, dword [ebp - 0x62c]
lea eax, [edi + 0x10]
mov dword [ecx], eax
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x218]
push esi
push ecx
mov ecx, esp
mov byte [ebp - 4], 4
push eax
call fcn.00403af0
mov ecx, dword [ebp - 0x674]
mov byte [ebp - 4], 2
call fcn.00404ad0
mov edi, eax
mov dword [ebp - 0x668], edi
cmp esi, 1
jne 0x4050e1
cmp dword [ebp + 0x14], 0
je 0x4050e6
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, eax
mov dword [ebp - 0x668], edi
test edi, edi
jne 0x4050e1
mov dword [ebp - 0x62c], eax
lea ecx, [ebp - 0x62c]
lea eax, [ebp - 0x218]
push eax
call fcn.00403af0
push ecx
mov eax, esp
mov byte [ebp - 4], 5
lea edx, [ebp - 0x62c]
push edx
push str.RemoveDirectory
push eax
call fcn.00406dc0
add esp, 0xc
mov ecx, esi
call fcn.00403e20
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov edx, dword [ebp - 0x62c]
add esp, 4
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4050e9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4050e9
lea eax, [ebp - 0x420]
mov dword [ebp - 0x630], 0
push eax
lea ecx, [ebp - 0x630]
call fcn.00403af0
mov byte [ebp - 4], 6
call fcn.0041b71c
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
je 0x4051ae
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x62c], esi
lea eax, [ebp - 0x630]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x680]
push eax
call fcn.00404400
add esp, 0xc
mov byte [ebp - 4], 8
lea edi, [esi - 0x10]
mov edx, dword [eax]
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x404ec1
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x404eac
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x404eac
push ecx
call fcn.004038d0
add esp, 4
mov dword [ebp - 0x66c], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x404ea1
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x66c]
lea esi, [eax + 0x10]
mov dword [ebp - 0x62c], esi
jmp 0x404ec1
push dword [edx - 0xc]
lea ecx, [ebp - 0x62c]
push edx
call fcn.004039f0
mov esi, dword [ebp - 0x62c]
mov byte [ebp - 4], 7
or ecx, 0xffffffff
mov edx, dword [ebp - 0x680]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404ee5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x404f79
dec eax
jne 0x405096
mov eax, dword [ebp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x66c], esp
mov edi, esp
push eax
call fcn.004038d0
add eax, 0x10
mov dword [edi], eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0xb
mov edi, esp
push eax
call fcn.004038d0
add esp, 4
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 7
call fcn.004051c0
test eax, eax
je 0x405096
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
mov dword [ebp - 0x668], edi
test edi, edi
jne 0x40509c
push ecx
mov eax, esp
lea edx, [ebp - 0x62c]
push edx
push str.DeleteFile
push eax
call fcn.00406dc0
add esp, 0xc
lea ecx, [edi + 1]
call fcn.00403e20
add esp, 4
jmp 0x405096
mov eax, dword [ebp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x670], esp
mov edi, esp
push eax
call fcn.004038d0
add eax, 0x10
mov dword [edi], eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 9
mov edi, esp
push eax
call fcn.004038d0
add esp, 4
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 7
call fcn.004051c0
test eax, eax
je 0x405096
mov ecx, dword [ebp - 0x674]
lea eax, [ebp - 0x62c]
push eax
call fcn.00405d90
mov esi, dword [ebp - 0x62c]
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x65c]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x664]
movlpd qword [ebp - 0x664], xmm0
push eax
push ecx
lea eax, [esi - 0x10]
movlpd qword [ebp - 0x638], xmm0
mov edi, esp
movlpd qword [ebp - 0x65c], xmm0
push eax
call fcn.004038d0
add esp, 4
add eax, 0x10
mov dword [edi], eax
call fcn.004052e0
lea eax, [esi - 0x10]
push eax
call fcn.004038d0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x68c], eax
mov eax, dword [ebp - 0x638]
mov dword [ebp - 0x688], eax
mov eax, dword [ebp - 0x634]
mov dword [ebp - 0x684], eax
mov byte [ebp - 4], 0xa
movzx eax, byte [0x5bff5a]
push eax
lea eax, [ebp - 0x68c]
push eax
push ecx
mov ecx, dword [ebp - 0x674]
lea eax, [ebp - 0x694]
push eax
lea ecx, [ecx + 0x18]
call fcn.004065b0
mov byte [ebp - 4], 7
or ecx, 0xffffffff
mov edx, dword [ebp - 0x68c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405096
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x668]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 6
or esi, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4050bc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov ecx, esi
mov edx, dword [ebp - 0x630]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4050ef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4050ef
or esi, 0xffffffff
jmp 0x4050ef
or esi, 0xffffffff
mov edi, dword [ebp - 0x668]
cmp dword [ebp - 0x67c], 0
jne 0x404ba0
lea ecx, [ebp - 0x654]
call fcn.00429feb
cmp dword [ebp + 0xc], 1
jne 0x40513a
cmp dword [ebp + 0x14], 0
je 0x40513a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, eax
test edi, edi
jne 0x40513a
push ecx
mov ecx, esp
push str.RemoveDirectory
call fcn.00403af0
lea ecx, [edi + 1]
call fcn.00403e20
add esp, 4
lea ecx, [ebp - 0x654]
mov byte [ebp - 4], 1
call fcn.00429f9b
mov byte [ebp - 4], 0
mov ecx, esi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405169
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x40518a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00532f97
mov esp, ebp
pop ebp
ret 0x10
call fcn.00402210
push 0x80004005
call fcn.00402310
int3