Function at 0x465a50
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ba6f
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x572bb0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x84], ebx
mov ecx, dword [esi + 0xa0]
test ecx, ecx
je 0x465aae
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0xa0], 0
mov dword [ebx], 0
mov ecx, dword [esi + 0x98]
test ecx, ecx
je 0x465ace
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x98], 0
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x5c]
mov byte [esi + 0x5d], 0
mov byte [esi + 0x58], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov byte [esi + 0x90], 0
mov dword [esi + 0x84], edi
call fcn.00454020
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x5c]
push eax
push edi
call fcn.0046a4d0
mov ebx, eax
test ebx, ebx
jne 0x465b6d
mov ecx, dword [ebp - 0x60]
lea eax, [esi + 0x80]
push eax
push 6
mov edx, edi
call fcn.0046a440
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x465b6d
lea eax, [ebp - 0x5c]
push eax
lea ecx, [esi + 0x44]
call fcn.004542b0
xor eax, eax
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x60]
lea edx, [ebp - 0x74]
push edx
push 0x1d
mov byte [ebp - 4], 2
mov eax, dword [ecx]
push edi
push ecx
call dword [eax + 0x18]
mov ebx, eax
test ebx, ebx
je 0x465b7f
lea ecx, [ebp - 0x74]
call fcn.0046da10
push dword [ebp - 0x5c]
call fcn.004e98a6
add esp, 4
mov eax, ebx
jmp 0x466397
mov ax, word [ebp - 0x74]
test ax, ax
je 0x465bbb
cmp ax, 0x15
je 0x465bab
lea ecx, [ebp - 0x74]
call fcn.0046da10
push dword [ebp - 0x5c]
call fcn.004e98a6
add esp, 4
mov eax, 0x80004005
jmp 0x466397
mov eax, dword [ebp - 0x6c]
mov dword [esi + 0x50], eax
mov eax, dword [ebp - 0x68]
mov dword [esi + 0x54], eax
mov byte [esi + 0x58], 1
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
call fcn.0046da10
mov ecx, dword [ebp - 0x60]
lea eax, [esi + 0x5d]
push eax
push 0xf
mov edx, edi
call fcn.0046a440
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x465b6d
mov ecx, esi
call fcn.00465940
mov ebx, eax
test ebx, ebx
jne 0x465b6d
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x465c17
cmp byte [esi + 0x80], al
lea eax, [ebp - 0x4d]
push eax
sete byte [ebp - 0x64]
lea eax, [ebp - 0x5c]
push dword [ebp - 0x64]
push eax
call fcn.0046ccb0
test al, al
je 0x465c66
cmp byte [ebp - 0x4d], bl
je 0x465c66
cmp dword [ebp + 0x14], 0
jne 0x4662db
cmp byte [esi + 0xb9], 0
jne 0x4662db
cmp byte [esi + 0xb8], 0
je 0x465c78
push 8
call fcn.004e991c
mov esi, eax
add esp, 4
test esi, esi
je 0x465c5c
mov dword [esi + 4], 0
mov dword [esi], vtable.CStdOutFileStream.0
mov eax, dword [esi]
push esi
call dword [eax + 4]
jmp 0x465c5e
xor esi, esi
mov eax, dword [ebp - 0x84]
mov dword [eax], esi
push dword [ebp - 0x5c]
call fcn.004e98a6
add esp, 4
xor eax, eax
jmp 0x466397
xor eax, eax
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x60]
lea edx, [ebp - 0x74]
push edx
push 9
mov byte [ebp - 4], 3
mov eax, dword [ecx]
push edi
push ecx
call dword [eax + 0x18]
mov ebx, eax
test ebx, ebx
jne 0x465b65
mov ax, word [ebp - 0x74]
cmp ax, 0x13
jne 0x465cb1
mov eax, dword [ebp - 0x6c]
mov dword [esi + 0x78], eax
mov byte [esi + 0x7f], 1
jmp 0x465cbd
test ax, ax
jne 0x465b8e
mov byte [esi + 0x7f], al
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
call fcn.0046da10
lea eax, [esi + 0x7c]
mov ecx, esi
push eax
lea eax, [esi + 0x60]
push eax
push 0xa
push edi
call fcn.00465890
mov ebx, eax
test ebx, ebx
jne 0x465b6d
lea eax, [esi + 0x7d]
mov ecx, esi
push eax
lea eax, [esi + 0x68]
push eax
push 0xb
push edi
call fcn.00465890
mov ebx, eax
test ebx, ebx
jne 0x465b6d
lea eax, [esi + 0x7e]
mov ecx, esi
push eax
lea eax, [esi + 0x70]
push eax
push 0xc
push edi
call fcn.00465890
mov ebx, eax
test ebx, ebx
jne 0x465b6d
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
xor eax, eax
mov dword [ebp - 0x74], eax
lea edx, [ebp - 0x74]
mov byte [ebp - 4], 4
push edx
xor al, al
push 0x15
mov byte [ebp - 0x4d], al
mov eax, dword [ecx]
push edi
push ecx
call dword [eax + 0x18]
mov edi, eax
test edi, edi
je 0x465d5d
lea ecx, [ebp - 0x74]
call fcn.0046da10
push dword [ebp - 0x5c]
call fcn.004e98a6
add esp, 4
mov eax, edi
jmp 0x466397
mov ax, word [ebp - 0x74]
cmp ax, 0xb
jne 0x465db5
cmp word [ebp - 0x6c], 0
setne al
mov byte [ebp - 0x4d], al
lea ecx, [ebp - 0x74]
call fcn.0046da10
lea ecx, [ebp - 0x98]
call fcn.00453e00
lea edx, [ebp - 0x98]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x5c]
call fcn.0046c730
mov ecx, dword [ebp - 0x90]
test ecx, ecx
jne 0x465dd9
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
call fcn.00453e30
jmp 0x465b96
test ax, ax
je 0x465d72
lea ecx, [ebp - 0x74]
call fcn.0046da10
push dword [ebp - 0x5c]
mov edi, 0x80004005
call fcn.004e98a6
add esp, 4
mov eax, edi
jmp 0x466397
mov eax, dword [esi + 0x30]
xor ebx, ebx
dec eax
je 0x465e9c
dec eax
jne 0x465deb
lea ebx, [ecx - 1]
push ebx
push 0
lea ecx, [ebp - 0x98]
call fcn.00453f70
lea ecx, [ebp - 0x98]
call fcn.004697f0
lea edx, [ebp - 0x98]
lea ecx, [ebp - 0xb0]
call fcn.00469a20
mov byte [ebp - 4], 6
mov bl, byte [ebp - 0x4d]
test bl, bl
jne 0x465f73
cmp byte [esi + 0x80], bl
jne 0x465e4d
mov eax, dword [ebp - 0x90]
test eax, eax
je 0x465f73
dec eax
lea ecx, [ebp - 0x98]
push 1
push eax
mov eax, dword [ebp - 0x98]
call dword [eax + 4]
cmp dword [ebp - 0x90], 0
je 0x465f73
lea ecx, [ebp - 0xa4]
call fcn.00454020
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x98]
mov ecx, esi
push eax
call fcn.00465800
cmp byte [esi + 0x80], 0
je 0x465f61
cmp byte [esi + 0x5c], 0
je 0x465ede
cmp byte [esi + 0x7e], 0
je 0x465ede
lea edi, [esi + 0x70]
jmp 0x465eee
mov ebx, dword [esi + 0xac]
cmp ecx, ebx
jle 0x465da1
xor edi, edi
lea esp, [esp]
cmp edi, ebx
jge 0x465deb
mov eax, dword [ebp - 0x8c]
mov edx, dword [eax + edi*4]
mov eax, dword [esi + 0xb0]
mov edx, dword [edx]
mov ecx, dword [eax + edi*4]
mov ecx, dword [ecx]
call fcn.0046c400
test eax, eax
jne 0x465da1
inc edi
jmp 0x465eb0
mov edi, dword [esi + 0x10]
cmp byte [edi + 0x2c], 0
je 0x465eec
add edi, 0x24
jmp 0x465eee
xor edi, edi
cmp byte [esi + 0x5b], 0
je 0x465f02
cmp byte [esi + 0x7d], 0
je 0x465f02
lea eax, [esi + 0x68]
mov dword [ebp - 0x60], eax
jmp 0x465f09
mov dword [ebp - 0x60], 0
cmp byte [esi + 0x5a], 0
je 0x465f1d
cmp byte [esi + 0x7c], 0
je 0x465f1d
lea eax, [esi + 0x60]
mov dword [ebp - 0x64], eax
jmp 0x465f24
mov dword [ebp - 0x64], 0
push 0
push 0x2000000
push 3
push 0
push 3
push 0x40000000
push dword [ebp - 0xa4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x465f5e
push edi
push dword [ebp - 0x60]
push dword [ebp - 0x64]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, byte [ebp - 0x4d]
mov byte [ebp - 4], 6
push dword [ebp - 0xa4]
call fcn.004e98a6
add esp, 4
lea eax, [ebp - 0xb0]
push eax
lea edx, [esi + 0x24]
lea ecx, [ebp - 0x80]
call fcn.004667f0
add esp, 4
mov byte [ebp - 4], 8
cmp byte [esi + 0x80], 0
je 0x465fe5
lea eax, [ebp - 0x80]
push eax
lea ecx, [esi + 0x38]
call fcn.004542b0
test bl, bl
je 0x465fae
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push dword [ebp - 0x80]
call fcn.004e98a6
push dword [ebp - 0xb0]
call fcn.004e98a6
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x98]
call fcn.00453e30
push dword [ebp - 0x5c]
call fcn.004e98a6
add esp, 4
xor eax, eax
jmp 0x466397
cmp byte [esi + 0x58], 0
jne 0x46610f
lea ecx, [ebp - 0x24]
call fcn.00454020
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x4c]
push dword [ebp - 0x80]
call fcn.0046d7e0
test al, al
je 0x466100
mov eax, dword [esi + 0x34]
sub eax, 2
je 0x4660c1
mov ecx, dword [ebp - 0x80]
call fcn.0046d610
test al, al
jne 0x466100
push 0x54c200
lea ecx, [ebp - 0x70]
call fcn.004540a0
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xa
push ecx
mov edx, eax
lea ecx, [ebp - 0xa4]
call fcn.004667f0
add esp, 4
mov byte [ebp - 4], 0xc
push dword [ebp - 0x70]
call fcn.004e98a6
mov eax, dword [esi + 0x18]
add esp, 4
push dword [ebp - 0xa4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
push dword [ebp - 0xa4]
mov esi, eax
call fcn.004e98a6
push dword [ebp - 0x24]
call fcn.004e98a6
push dword [ebp - 0x80]
call fcn.004e98a6
push dword [ebp - 0xb0]
call fcn.004e98a6
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x98]
call fcn.00453e30
push dword [ebp - 0x5c]
call fcn.004e98a6
add esp, 4
test esi, esi
je 0x465c71
mov eax, esi
jmp 0x466397
push dword [ebp - 0x24]
call fcn.004e98a6
push dword [ebp - 0x80]
call fcn.004e98a6
push dword [ebp - 0xb0]
call fcn.004e98a6
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x98]
call fcn.00453e30
push dword [ebp - 0x5c]
call fcn.004e98a6
add esp, 4
xor eax, eax
jmp 0x466397
mov byte [ebp - 4], 8
push dword [ebp - 0x24]
call fcn.004e98a6
add esp, 4
test bl, bl
jne 0x4662a2
push 0x18
call fcn.004e991c
mov edi, eax
add esp, 4
test edi, edi
je 0x46613d
mov dword [edi + 4], 0
mov dword [edi], vtable.COutFileStream.0
mov dword [edi + 8], 0xffffffff
jmp 0x46613f
xor edi, edi
mov dword [esi + 0x94], edi
mov dword [ebp - 0x64], edi
test edi, edi
je 0x466152
mov eax, dword [edi]
push edi
call dword [eax + 4]
xor eax, eax
mov byte [ebp - 4], 0xd
cmp byte [esi + 0x58], al
mov ecx, dword [esi + 0x94]
setne al
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x80]
call fcn.00465250
test al, al
jne 0x46620d
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0xa4]
call fcn.00466860
add esp, 4
mov byte [ebp - 4], 0xe
mov eax, dword [esi + 0x18]
push dword [ebp - 0xa4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
push dword [ebp - 0xa4]
mov esi, eax
call fcn.004e98a6
add esp, 4
mov byte [ebp - 4], 8
test esi, esi
je 0x4661fa
test edi, edi
je 0x4661c3
mov eax, dword [edi]
push edi
call dword [eax + 8]
push dword [ebp - 0x80]
call fcn.004e98a6
push dword [ebp - 0xb0]
call fcn.004e98a6
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x98]
call fcn.00453e30
push dword [ebp - 0x5c]
call fcn.004e98a6
add esp, 4
mov eax, esi
jmp 0x466397
test edi, edi
je 0x465fae
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x465fae
cmp byte [esi + 0x58], 0
je 0x466274
mov eax, dword [esi + 0x94]
push 0
push 0
push dword [esi + 0x54]
mov ecx, dword [eax]
push dword [esi + 0x50]
push eax
call dword [ecx + 0x10]
mov ebx, eax
test ebx, ebx
je 0x466274
mov byte [ebp - 4], 8
test edi, edi
je 0x46623d
mov eax, dword [edi]
push edi
call dword [eax + 8]
push dword [ebp - 0x80]
call fcn.004e98a6
push dword [ebp - 0xb0]
call fcn.004e98a6
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x98]
call fcn.00453e30
push dword [ebp - 0x5c]
call fcn.004e98a6
add esp, 4
mov eax, ebx
jmp 0x466397
test edi, edi
je 0x46627e
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [esi + 0x98]
test ecx, ecx
je 0x46628e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ebx, dword [ebp - 0x84]
mov dword [esi + 0x98], edi
mov byte [ebp - 4], 8
mov dword [ebx], edi
jmp 0x4662a8
mov ebx, dword [ebp - 0x84]
lea eax, [ebp - 0x80]
push eax
lea ecx, [esi + 0x38]
call fcn.004542b0
push dword [ebp - 0x80]
call fcn.004e98a6
push dword [ebp - 0xb0]
call fcn.004e98a6
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x98]
call fcn.00453e30
jmp 0x4662e7
mov ebx, dword [ebp - 0x84]
mov dword [ebx], 0
cmp byte [esi + 0xba], 0
je 0x465fd3
push 0x20
call fcn.004e991c
add esp, 4
test eax, eax
je 0x466318
mov dword [eax + 4], 0
mov dword [eax], vtable.COutStreamWithCRC.0
mov dword [eax + 8], 0
jmp 0x46631a
xor eax, eax
push eax
lea ecx, [esi + 0xa0]
mov dword [esi + 0x9c], eax
call fcn.00458940
mov edi, dword [esi + 0x9c]
mov dword [ebp - 0x64], edi
test edi, edi
je 0x46633f
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov byte [ebp - 4], 0xf
push dword [ebx]
mov ecx, dword [esi + 0x9c]
call fcn.00458340
mov ecx, dword [ebx]
test ecx, ecx
je 0x46635c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebx], edi
mov eax, dword [esi + 0x9c]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], 0xffffffff
push dword [ebp - 0x5c]
call fcn.004e98a6
add esp, 4
xor eax, eax
jmp 0x466397
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e94b7
mov esp, ebp
pop ebp
ret 0x10