Function at 0x47bf40
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5ca3
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x538074]
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.00403080
mov dword [ebp - 4], 0
mov edx, 0x10
lea ecx, [ebp - 0x44]
call fcn.0047c920
lea ecx, [ebp - 0x84]
call fcn.00485280
mov byte [ebp - 4], 1
push 4
call fcn.004be511
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 edx, [ebp - 0x44]
push 0x50dba0
lea ecx, [ebp - 0x2c]
call fcn.00404720
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x84]
push ecx
push eax
lea ecx, [ebp - 0x98]
call fcn.004856a0
mov bl, al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00402fc0
mov esi, dword [ebp - 0x98]
test bl, bl
je 0x47c218
lea ecx, [ebp - 0x84]
call fcn.00485370
test al, al
jne 0x47c0b7
mov eax, dword [ebp - 0x64]
and eax, 0x10
or eax, 0
je 0x47c03e
mov al, 1
jmp 0x47c040
xor al, al
test al, al
lea edx, [ebp - 0x44]
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0x2c]
push eax
je 0x47c081
call fcn.00413500
add esp, 4
mov byte [ebp - 4], 5
push eax
call fcn.0047bf40
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.00402fc0
jmp 0x47c0cf
call fcn.00413500
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c]
call fcn.0049a060
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.00402fc0
jmp 0x47c0cf
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.004853e0
test al, al
je 0x47c224
mov edi, dword [ebp - 0x64]
and edi, 0x10
mov eax, edi
or eax, 0
je 0x47c0f6
mov al, 1
jmp 0x47c0f8
xor al, al
test al, al
je 0x47c151
lea ecx, [ebp - 0x5c]
call fcn.00402f40
test al, al
jne 0x47c151
lea ecx, [ebp - 0x5c]
call fcn.00403170
mov ebx, eax
cmp dword [ebx + 0x14], 8
jb 0x47c11a
mov eax, dword [ebx]
cmp word [eax], 0x2e
jne 0x47c151
lea ecx, [ebp - 0x5c]
call fcn.00403260
cmp eax, 1
je 0x47c1f4
cmp dword [ebx + 0x14], 8
jb 0x47c139
mov ebx, dword [ebx]
cmp word [ebx + 2], 0x2e
jne 0x47c151
lea ecx, [ebp - 0x5c]
call fcn.00403260
cmp eax, 2
je 0x47c1f4
or edi, 0
je 0x47c15a
mov al, 1
jmp 0x47c15c
xor al, al
test al, al
lea edx, [ebp - 0x44]
lea eax, [ebp - 0x5c]
push eax
je 0x47c1af
lea ecx, [ebp - 0xb0]
call fcn.00413500
add esp, 4
mov byte [ebp - 4], 7
push eax
call fcn.0047bf40
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.00402fc0
jmp 0x47c200
lea ecx, [ebp - 0x2c]
call fcn.00413500
add esp, 4
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2c]
call fcn.0049a060
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.00402fc0
jmp 0x47c200
mov edi, dword [ebp - 0x88]
mov ebx, dword [ebp - 0x90]
lea eax, [ebp - 0x84]
mov ecx, esi
push eax
call fcn.004853e0
test al, al
jne 0x47c0e5
jmp 0x47c224
mov edi, dword [ebp - 0x90]
mov ebx, dword [ebp - 0x94]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x47c23c
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x47c23c
mov dword [esi], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00402f50
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x47c31b
lea ecx, [ebp - 0x2c]
call fcn.00403060
mov byte [ebp - 4], 9
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.0049a4b0
test al, al
je 0x47c285
lea ecx, [ebp - 0x2c]
call fcn.00402f50
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x47c30f
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00402fc0
lea ecx, [ebp - 0x44]
call fcn.00499d50
mov dword [ebp - 0x88], eax
cmp eax, 0xffffffff
je 0x47c321
xor edx, edx
lea ecx, [ebp - 0x44]
call fcn.00499c90
lea ecx, [ebp - 0x44]
call fcn.00402f50
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x47c31b
lea ecx, [ebp - 0x2c]
call fcn.00403060
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.0049a4b0
test al, al
je 0x47c2f3
lea ecx, [ebp - 0x2c]
call fcn.00402f50
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x47c30f
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00402fc0
mov edx, dword [ebp - 0x88]
lea ecx, [ebp - 0x44]
call fcn.00499c90
jmp 0x47c321
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00402fc0
add ebx, 1
adc edi, 0
mov byte [ebp - 4], 1
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x47c33d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x47c33d
mov dword [esi], 0xffffffff
push 4
push esi
call fcn.004be541
add esp, 8
mov dword [ebp - 0x98], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.00402fc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00402fc0
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.004be500
mov esp, ebp
pop ebp
ret