Function at 0x46b470
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5677ad
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x5c3484]
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 dword [ebp - 0x2ac], ecx
mov eax, dword [ebp + 8]
xor esi, esi
xorps xmm0, xmm0
mov dword [ebp - 0x228], esi
movq qword [ebp - 0x230], xmm0
mov dword [ebp - 0x2b0], eax
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 4], esi
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x228], esi
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 1
push eax
push ecx
call fcn.00469950
mov edx, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x230]
mov dword [ebp - 0x2a0], edx
mov dword [ebp - 0x2a8], ecx
cmp ecx, edx
je 0x46be77
cmp dword [ecx + 0x14], 8
mov eax, ecx
mov edi, dword [ecx + 0x10]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x284], ecx
jb 0x46b540
mov eax, dword [ecx]
mov dword [ebp - 0x284], eax
cmp edi, 8
jae 0x46b56c
movups xmm0, xmmword [eax]
mov dword [ebp - 0x234], 7
mov esi, 7
movups xmmword [ebp - 0x248], xmm0
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x220], eax
jmp 0x46b5b9
mov esi, edi
lea ecx, [ebp - 0x248]
or esi, 7
mov eax, SysReAllocString
cmp esi, 0x7ffffffe
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.0041d560
mov ecx, eax
lea eax, [edi*2 + 2]
push eax
push dword [ebp - 0x284]
mov dword [ebp - 0x220], ecx
push ecx
mov dword [ebp - 0x248], ecx
call fcn.004c0f50
add esp, 0xc
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x238], edi
mov ecx, dword [ebp - 0x2ac]
lea eax, [ebp - 0x2cc]
push eax
mov byte [ebp - 4], 2
call fcn.00469540
mov ecx, eax
cmp esi, 8
mov byte [ebp - 4], 3
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x220]
push edi
push eax
push 0
call fcn.00484140
mov edi, dword [ebp - 0x2a4]
xor ecx, ecx
mov dword [ebp - 0x250], 0
or edi, 1
mov dword [ebp - 0x24c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x260], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x250], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x2b8]
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x46b67f
mov ecx, dword [ebp - 0x2cc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46b675
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46bfb3
push edx
push ecx
call fcn.0045f7ba
add esp, 8
xor eax, eax
mov dword [ebp - 0x2bc], 0
push 0x208
push eax
mov word [ebp - 0x2cc], ax
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x2b8], 7
call fcn.004c14d0
add esp, 0xc
lea eax, [ebp - 0x260]
cmp dword [ebp - 0x24c], 8
cmovae eax, dword [ebp - 0x260]
push 0x58806c
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 1
lea eax, [ebp - 0x21c]
push eax
call fcn.004882a0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46b702
sub ecx, edx
mov dword [ebp - 0x28c], 0
xor eax, eax
sar ecx, 1
mov word [ebp - 0x29c], ax
lea eax, [ebp - 0x21c]
push ecx
push eax
lea ecx, [ebp - 0x29c]
mov dword [ebp - 0x288], 7
call fcn.00483380
push 0x5cc654
xorps xmm0, xmm0
mov byte [ebp - 4], 6
push 0x446388
push 0x5cc650
movlpd qword [ebp - 0x224], xmm0
call fcn.00446b43
add esp, 0xc
test eax, eax
je 0x46bfb8
push 0x5cc654
push 0x446388
push 0x5cc650
mov dword [ebp - 0x220], 0x5cc654
mov dword [ebp - 0x224], 0
call fcn.00446b43
add esp, 0xc
test eax, eax
je 0x46bfbd
cmp dword [ebp - 0x288], 8
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x220], 0x5cc654
cmovae eax, dword [ebp - 0x29c]
push eax
call fcn.0051ce98
push 0x5cc654
movzx eax, al
mov esi, edx
cdq
push 0x446388
push 0x5cc650
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x264], edx
call fcn.00446b43
add esp, 0xc
test eax, eax
je 0x46bfc2
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], 0x5cc654
cmp esi, 0x91
jne 0x46b832
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x29c]
push eax
call fcn.00482100
mov esi, dword [ebp - 0x224]
add esp, 0xc
test esi, esi
jne 0x46bfc7
mov edx, dword [ebp - 0x288]
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x46b87e
mov ecx, dword [ebp - 0x29c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46b874
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46bfdf
push edx
push ecx
call fcn.0045f7ba
add esp, 8
push 0x58806c
lea eax, [ebp - 0x21c]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 1
lea eax, [ebp - 0x21c]
push eax
call fcn.004882a0
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46b8b0
sub ecx, edx
mov dword [ebp - 0x28c], 0
xor eax, eax
sar ecx, 1
mov word [ebp - 0x29c], ax
lea eax, [ebp - 0x21c]
push ecx
push eax
lea ecx, [ebp - 0x29c]
mov dword [ebp - 0x288], 7
call fcn.00483380
push 0x5cc654
xorps xmm0, xmm0
mov byte [ebp - 4], 7
push 0x446388
push 0x5cc650
movlpd qword [ebp - 0x224], xmm0
call fcn.00446b43
add esp, 0xc
test eax, eax
je 0x46bfe4
push 0x5cc654
push 0x446388
push 0x5cc650
mov dword [ebp - 0x220], 0x5cc654
mov dword [ebp - 0x224], 0
call fcn.00446b43
add esp, 0xc
test eax, eax
je 0x46bfe9
cmp dword [ebp - 0x288], 8
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x220], 0x5cc654
cmovae eax, dword [ebp - 0x29c]
push eax
call fcn.0051ce98
push 0x5cc654
movzx eax, al
mov esi, edx
cdq
push 0x446388
push 0x5cc650
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], edx
call fcn.00446b43
add esp, 0xc
test eax, eax
je 0x46bfee
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], 0x5cc654
cmp esi, 0x91
jne 0x46b9e0
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x29c]
push eax
call fcn.00482100
mov esi, dword [ebp - 0x224]
add esp, 0xc
test esi, esi
jne 0x46bff3
mov edx, dword [ebp - 0x288]
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x46ba2c
mov ecx, dword [ebp - 0x29c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46ba22
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c00b
push edx
push ecx
call fcn.0045f7ba
add esp, 8
push 0x58806c
lea eax, [ebp - 0x21c]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 1
lea eax, [ebp - 0x21c]
push eax
call fcn.004882a0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46ba63
sub ecx, edx
mov dword [ebp - 0x28c], 0
xor eax, eax
sar ecx, 1
mov word [ebp - 0x29c], ax
lea eax, [ebp - 0x21c]
push ecx
push eax
lea ecx, [ebp - 0x29c]
mov dword [ebp - 0x288], 7
call fcn.00483380
push 0x5cc654
xorps xmm0, xmm0
mov byte [ebp - 4], 8
push 0x446388
push 0x5cc650
movlpd qword [ebp - 0x224], xmm0
call fcn.00446b43
add esp, 0xc
test eax, eax
je 0x46c010
push 0x5cc654
push 0x446388
push 0x5cc650
mov dword [ebp - 0x220], 0x5cc654
mov dword [ebp - 0x224], 0
call fcn.00446b43
add esp, 0xc
test eax, eax
je 0x46c015
cmp dword [ebp - 0x288], 8
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x220], 0x5cc654
cmovae eax, dword [ebp - 0x29c]
push eax
call fcn.0051ce98
push 0x5cc654
movzx eax, al
mov esi, edx
cdq
push 0x446388
push 0x5cc650
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x274], edx
call fcn.00446b43
add esp, 0xc
test eax, eax
je 0x46c01a
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], 0x5cc654
cmp esi, 0x91
jne 0x46bb93
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x29c]
push eax
call fcn.00482100
mov esi, dword [ebp - 0x224]
add esp, 0xc
test esi, esi
jne 0x46c01f
mov edx, dword [ebp - 0x288]
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x46bbdf
mov ecx, dword [ebp - 0x29c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46bbd5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c037
push edx
push ecx
call fcn.0045f7ba
add esp, 8
push 0x58806c
lea eax, [ebp - 0x21c]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 1
lea eax, [ebp - 0x21c]
push eax
call fcn.004882a0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46bc16
sub ecx, edx
mov dword [ebp - 0x28c], 0
xor eax, eax
sar ecx, 1
mov word [ebp - 0x29c], ax
lea eax, [ebp - 0x21c]
push ecx
push eax
lea ecx, [ebp - 0x29c]
mov dword [ebp - 0x288], 7
call fcn.00483380
or edi, 0x1fe
mov dword [ebp - 0x2a4], edi
push 0x5cc654
xorps xmm0, xmm0
mov byte [ebp - 4], 9
push 0x446388
push 0x5cc650
movlpd qword [ebp - 0x224], xmm0
call fcn.00446b43
add esp, 0xc
test eax, eax
je 0x46c03c
push 0x5cc654
push 0x446388
push 0x5cc650
mov dword [ebp - 0x220], 0x5cc654
mov dword [ebp - 0x224], 0
call fcn.00446b43
add esp, 0xc
test eax, eax
je 0x46c041
cmp dword [ebp - 0x288], 8
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x220], 0x5cc654
cmovae eax, dword [ebp - 0x29c]
push eax
call fcn.0051ce98
push 0x5cc654
movzx eax, al
mov esi, edx
cdq
push 0x446388
push 0x5cc650
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x27c], edx
call fcn.00446b43
add esp, 0xc
test eax, eax
je 0x46c046
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], 0x5cc654
cmp esi, 0x91
jne 0x46bd52
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x29c]
push eax
call fcn.00482100
mov esi, dword [ebp - 0x224]
add esp, 0xc
test esi, esi
jne 0x46c04b
mov edx, dword [ebp - 0x288]
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x46bd9e
mov ecx, dword [ebp - 0x29c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46bd94
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c063
push edx
push ecx
call fcn.0045f7ba
add esp, 8
push 0x588074
push 0x5ce8c8
mov esi, 1
call fcn.004721b0
add esp, 8
push eax
call fcn.004774e0
mov edx, dword [ebp - 0x24c]
add esp, 4
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x46be02
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46bdf8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c068
push edx
push ecx
call fcn.0045f7ba
add esp, 8
mov edx, dword [ebp - 0x234]
xor eax, eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x46be63
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46be59
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c06d
push edx
push ecx
call fcn.0045f7ba
add esp, 8
mov ecx, dword [ebp - 0x2a8]
mov edx, dword [ebp - 0x2a0]
add ecx, 0x28
jmp 0x46b505
lea ecx, [ebp - 0x230]
call fcn.0047a6e0
jmp 0x46bf93
mov eax, esi
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.0045fbca
mov esp, ebp
pop ebp
ret 8
call fcn.004cad68
call fcn.004ef8db
call fcn.004ef8db
call fcn.004ef8db
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x224]
push eax
push str.remove_all
call fcn.00482990
call fcn.004cad68
call fcn.004ef8db
call fcn.004ef8db
call fcn.004ef8db
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x224]
push eax
push str.remove_all
call fcn.00482990
call fcn.004cad68
call fcn.004ef8db
call fcn.004ef8db
call fcn.004ef8db
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x224]
push eax
push str.remove_all
call fcn.00482990
call fcn.004cad68
call fcn.004ef8db
call fcn.004ef8db
call fcn.004ef8db
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x224]
push eax
push str.remove_all
call fcn.00482990
call fcn.004cad68
call fcn.004cad68
call fcn.004cad68
int3