Function at 0x46fd40
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2553
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x534068]
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 eax, dword [ebp + 8]
lea ecx, [ebp - 0x44]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x94], xmm0
call fcn.00405530
mov dword [ebp - 4], 0
mov edx, 0x10
lea ecx, [ebp - 0x44]
call fcn.00470720
lea ecx, [ebp - 0x84]
call fcn.0047e6a0
mov byte [ebp - 4], 1
push 4
call fcn.004bc97a
add esp, 4
mov dword [ebp - 0x88], eax
mov byte [ebp - 4], 2
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov byte [ebp - 4], 1
mov dword [ebp - 0x98], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x44]
push 0x50c068
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00403d50
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x84]
push ecx
push eax
lea ecx, [ebp - 0x98]
call fcn.0047eac0
mov bl, al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.004027f0
mov esi, dword [ebp - 0x98]
test bl, bl
je 0x47001a
lea ecx, [ebp - 0x84]
call fcn.0047e790
test al, al
jne 0x46feb9
mov eax, dword [ebp - 0x64]
and eax, 0x10
or eax, 0
je 0x46fe40
mov al, 1
jmp 0x46fe42
xor al, al
test al, al
lea edx, [ebp - 0x44]
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0x2c]
push eax
je 0x46fe83
call fcn.00412f40
add esp, 4
mov byte [ebp - 4], 5
push eax
call fcn.0046fd40
mov ebx, eax
mov edi, edx
add esp, 4
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x88], edi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.004027f0
jmp 0x46fed1
call fcn.00412f40
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c]
call fcn.00493480
movzx eax, al
cdq
mov ebx, eax
mov dword [ebp - 0x90], eax
mov edi, edx
mov dword [ebp - 0x88], edx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.004027f0
jmp 0x46fed1
mov edi, dword [ebp - 0x90]
mov ebx, dword [ebp - 0x94]
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x90], ebx
lea eax, [ebp - 0x84]
mov ecx, esi
push eax
call fcn.0047e800
test al, al
je 0x470026
mov edi, dword [ebp - 0x64]
and edi, 0x10
mov eax, edi
or eax, 0
je 0x46fef8
mov al, 1
jmp 0x46fefa
xor al, al
test al, al
je 0x46ff53
lea ecx, [ebp - 0x5c]
call fcn.00405520
test al, al
jne 0x46ff53
lea ecx, [ebp - 0x5c]
call fcn.00402870
mov ebx, eax
cmp dword [ebx + 0x14], 8
jb 0x46ff1c
mov eax, dword [ebx]
cmp word [eax], 0x2e
jne 0x46ff53
lea ecx, [ebp - 0x5c]
call fcn.00404030
cmp eax, 1
je 0x46fff6
cmp dword [ebx + 0x14], 8
jb 0x46ff3b
mov ebx, dword [ebx]
cmp word [ebx + 2], 0x2e
jne 0x46ff53
lea ecx, [ebp - 0x5c]
call fcn.00404030
cmp eax, 2
je 0x46fff6
or edi, 0
je 0x46ff5c
mov al, 1
jmp 0x46ff5e
xor al, al
test al, al
lea edx, [ebp - 0x44]
lea eax, [ebp - 0x5c]
push eax
je 0x46ffb1
lea ecx, [ebp - 0xb0]
call fcn.00412f40
add esp, 4
mov byte [ebp - 4], 7
push eax
call fcn.0046fd40
mov ebx, dword [ebp - 0x90]
add esp, 4
mov edi, dword [ebp - 0x88]
add ebx, eax
mov dword [ebp - 0x90], ebx
adc edi, edx
mov dword [ebp - 0x88], edi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xb0]
call fcn.004027f0
jmp 0x470002
lea ecx, [ebp - 0x2c]
call fcn.00412f40
add esp, 4
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2c]
call fcn.00493480
mov ebx, dword [ebp - 0x90]
mov edi, dword [ebp - 0x88]
movzx eax, al
cdq
add ebx, eax
mov dword [ebp - 0x90], ebx
adc edi, edx
mov dword [ebp - 0x88], edi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.004027f0
jmp 0x470002
mov edi, dword [ebp - 0x88]
mov ebx, dword [ebp - 0x90]
lea eax, [ebp - 0x84]
mov ecx, esi
push eax
call fcn.0047e800
test al, al
jne 0x46fee7
jmp 0x470026
mov edi, dword [ebp - 0x90]
mov ebx, dword [ebp - 0x94]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x47003e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x47003e
mov dword [esi], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.004027b0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x470119
lea ecx, [ebp - 0x2c]
call fcn.00402850
mov byte [ebp - 4], 9
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.004938d0
test al, al
je 0x470087
lea ecx, [ebp - 0x2c]
call fcn.004027b0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x47010d
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.004027f0
lea ecx, [ebp - 0x44]
call fcn.00493170
mov dword [ebp - 0x88], eax
cmp eax, 0xffffffff
je 0x47011f
xor edx, edx
lea ecx, [ebp - 0x44]
call fcn.004930b0
lea ecx, [ebp - 0x44]
call fcn.004027b0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x470119
lea ecx, [ebp - 0x2c]
call fcn.00402850
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.004938d0
test al, al
je 0x4700f1
lea ecx, [ebp - 0x2c]
call fcn.004027b0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x47010d
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.004027f0
mov edx, dword [ebp - 0x88]
lea ecx, [ebp - 0x44]
call fcn.004930b0
jmp 0x47011f
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.004027f0
add ebx, 1
adc edi, 0
mov byte [ebp - 4], 1
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x47013b
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x47013b
mov dword [esi], 0xffffffff
push 4
push esi
call fcn.004bc9aa
add esp, 8
mov dword [ebp - 0x98], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.004027f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.004027f0
mov eax, ebx
mov edx, edi
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.004bc969
mov esp, ebp
pop ebp
ret