Function at 0x475530
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56da5d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x5cb464]
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.00473a10
mov edx, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x230]
mov dword [ebp - 0x2a0], edx
mov dword [ebp - 0x2a8], ecx
cmp ecx, edx
je 0x475f37
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 0x475600
mov eax, dword [ecx]
mov dword [ebp - 0x284], eax
cmp edi, 8
jae 0x47562c
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 0x475679
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.0041eaa0
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.004cbb10
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.00473600
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.0048d2a0
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 0x47573f
mov ecx, dword [ebp - 0x2cc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x475735
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x476073
push edx
push ecx
call fcn.0046956a
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.004cc090
add esp, 0xc
lea eax, [ebp - 0x260]
cmp dword [ebp - 0x24c], 8
cmovae eax, dword [ebp - 0x260]
push 0x58fe64
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.00491300
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 0x4757c2
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.0048c6c0
push 0x5d3564
xorps xmm0, xmm0
mov byte [ebp - 4], 6
push 0x447f1b
push 0x5d3560
movlpd qword [ebp - 0x224], xmm0
call fcn.004486d6
add esp, 0xc
test eax, eax
je 0x476078
push 0x5d3564
push 0x447f1b
push 0x5d3560
mov dword [ebp - 0x220], 0x5d3564
mov dword [ebp - 0x224], 0
call fcn.004486d6
add esp, 0xc
test eax, eax
je 0x47607d
cmp dword [ebp - 0x288], 8
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x220], 0x5d3564
cmovae eax, dword [ebp - 0x29c]
push eax
call fcn.00527d92
push 0x5d3564
movzx eax, al
mov esi, edx
cdq
push 0x447f1b
push 0x5d3560
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x264], edx
call fcn.004486d6
add esp, 0xc
test eax, eax
je 0x476082
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], 0x5d3564
cmp esi, 0x91
jne 0x4758f2
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x29c]
push eax
call fcn.0048b440
mov esi, dword [ebp - 0x224]
add esp, 0xc
test esi, esi
jne 0x476087
mov edx, dword [ebp - 0x288]
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x47593e
mov ecx, dword [ebp - 0x29c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x475934
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47609f
push edx
push ecx
call fcn.0046956a
add esp, 8
push 0x58fe64
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.00491300
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x475970
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.0048c6c0
push 0x5d3564
xorps xmm0, xmm0
mov byte [ebp - 4], 7
push 0x447f1b
push 0x5d3560
movlpd qword [ebp - 0x224], xmm0
call fcn.004486d6
add esp, 0xc
test eax, eax
je 0x4760a4
push 0x5d3564
push 0x447f1b
push 0x5d3560
mov dword [ebp - 0x220], 0x5d3564
mov dword [ebp - 0x224], 0
call fcn.004486d6
add esp, 0xc
test eax, eax
je 0x4760a9
cmp dword [ebp - 0x288], 8
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x220], 0x5d3564
cmovae eax, dword [ebp - 0x29c]
push eax
call fcn.00527d92
push 0x5d3564
movzx eax, al
mov esi, edx
cdq
push 0x447f1b
push 0x5d3560
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], edx
call fcn.004486d6
add esp, 0xc
test eax, eax
je 0x4760ae
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], 0x5d3564
cmp esi, 0x91
jne 0x475aa0
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x29c]
push eax
call fcn.0048b440
mov esi, dword [ebp - 0x224]
add esp, 0xc
test esi, esi
jne 0x4760b3
mov edx, dword [ebp - 0x288]
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x475aec
mov ecx, dword [ebp - 0x29c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x475ae2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4760cb
push edx
push ecx
call fcn.0046956a
add esp, 8
push 0x58fe64
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.00491300
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 0x475b23
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.0048c6c0
push 0x5d3564
xorps xmm0, xmm0
mov byte [ebp - 4], 8
push 0x447f1b
push 0x5d3560
movlpd qword [ebp - 0x224], xmm0
call fcn.004486d6
add esp, 0xc
test eax, eax
je 0x4760d0
push 0x5d3564
push 0x447f1b
push 0x5d3560
mov dword [ebp - 0x220], 0x5d3564
mov dword [ebp - 0x224], 0
call fcn.004486d6
add esp, 0xc
test eax, eax
je 0x4760d5
cmp dword [ebp - 0x288], 8
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x220], 0x5d3564
cmovae eax, dword [ebp - 0x29c]
push eax
call fcn.00527d92
push 0x5d3564
movzx eax, al
mov esi, edx
cdq
push 0x447f1b
push 0x5d3560
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x274], edx
call fcn.004486d6
add esp, 0xc
test eax, eax
je 0x4760da
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], 0x5d3564
cmp esi, 0x91
jne 0x475c53
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x29c]
push eax
call fcn.0048b440
mov esi, dword [ebp - 0x224]
add esp, 0xc
test esi, esi
jne 0x4760df
mov edx, dword [ebp - 0x288]
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x475c9f
mov ecx, dword [ebp - 0x29c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x475c95
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4760f7
push edx
push ecx
call fcn.0046956a
add esp, 8
push 0x58fe64
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.00491300
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 0x475cd6
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.0048c6c0
or edi, 0x1fe
mov dword [ebp - 0x2a4], edi
push 0x5d3564
xorps xmm0, xmm0
mov byte [ebp - 4], 9
push 0x447f1b
push 0x5d3560
movlpd qword [ebp - 0x224], xmm0
call fcn.004486d6
add esp, 0xc
test eax, eax
je 0x4760fc
push 0x5d3564
push 0x447f1b
push 0x5d3560
mov dword [ebp - 0x220], 0x5d3564
mov dword [ebp - 0x224], 0
call fcn.004486d6
add esp, 0xc
test eax, eax
je 0x476101
cmp dword [ebp - 0x288], 8
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x220], 0x5d3564
cmovae eax, dword [ebp - 0x29c]
push eax
call fcn.00527d92
push 0x5d3564
movzx eax, al
mov esi, edx
cdq
push 0x447f1b
push 0x5d3560
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x27c], edx
call fcn.004486d6
add esp, 0xc
test eax, eax
je 0x476106
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], 0x5d3564
cmp esi, 0x91
jne 0x475e12
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x29c]
push eax
call fcn.0048b440
mov esi, dword [ebp - 0x224]
add esp, 0xc
test esi, esi
jne 0x47610b
mov edx, dword [ebp - 0x288]
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x475e5e
mov ecx, dword [ebp - 0x29c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x475e54
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x476123
push edx
push ecx
call fcn.0046956a
add esp, 8
push 0x58fe6c
push 0x5d5848
mov esi, 1
call fcn.0044c430
add esp, 8
push eax
call fcn.004812d0
mov edx, dword [ebp - 0x24c]
add esp, 4
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x475ec2
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x475eb8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x476128
push edx
push ecx
call fcn.0046956a
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 0x475f23
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x475f19
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47612d
push edx
push ecx
call fcn.0046956a
add esp, 8
mov ecx, dword [ebp - 0x2a8]
mov edx, dword [ebp - 0x2a0]
add ecx, 0x28
jmp 0x4755c5
lea ecx, [ebp - 0x230]
call fcn.00483e80
jmp 0x476053
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.0046997a
mov esp, ebp
pop ebp
ret 8
call fcn.004d5908
call fcn.004fa48b
call fcn.004fa48b
call fcn.004fa48b
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x224]
push eax
push str.remove_all
call fcn.0048bcd0
call fcn.004d5908
call fcn.004fa48b
call fcn.004fa48b
call fcn.004fa48b
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x224]
push eax
push str.remove_all
call fcn.0048bcd0
call fcn.004d5908
call fcn.004fa48b
call fcn.004fa48b
call fcn.004fa48b
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x224]
push eax
push str.remove_all
call fcn.0048bcd0
call fcn.004d5908
call fcn.004fa48b
call fcn.004fa48b
call fcn.004fa48b
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x224]
push eax
push str.remove_all
call fcn.0048bcd0
call fcn.004d5908
call fcn.004d5908
call fcn.004d5908
int3