Function at 0x4a8d60
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5018ae
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x53b008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x9c], 0
push ecx
lea ecx, [ebp - 0x40]
movlpd qword [ebp - 0xb0], xmm0
call fcn.0040be30
mov dword [ebp - 4], 0
mov edx, 0x10
lea ecx, [ebp - 0x40]
call fcn.004ac730
lea ecx, [ebp - 0x98]
call fcn.004b9730
mov byte [ebp - 4], 1
push 4
mov dword [ebp - 0xa0], 0
call fcn.004e9692
add esp, 4
mov dword [ebp - 0xa4], eax
mov byte [ebp - 4], 2
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov byte [ebp - 4], 1
mov dword [ebp - 0xa0], eax
mov byte [ebp - 4], 3
lea edx, [ebp - 0x40]
push 0x516014
lea ecx, [ebp - 0x58]
call fcn.0040e910
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x98]
push ecx
push eax
lea ecx, [ebp - 0xa0]
call fcn.004bdcf0
mov bl, al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
call fcn.0040b220
mov esi, dword [ebp - 0xa0]
test bl, bl
je 0x4a90a8
mov ecx, dword [ebp - 0x78]
and ecx, 0x10
mov eax, ecx
or eax, 0
je 0x4a8e5e
mov al, 1
jmp 0x4a8e60
xor al, al
test al, al
je 0x4a8ea8
mov edx, dword [ebp - 0x60]
test edx, edx
je 0x4a8ea8
mov edi, dword [ebp - 0x5c]
lea eax, [ebp - 0x70]
mov ebx, dword [ebp - 0x70]
cmp edi, 8
cmovae eax, ebx
cmp word [eax], 0x2e
jne 0x4a8ea8
cmp edx, 1
je 0x4a8e9a
cmp edi, 8
lea eax, [ebp - 0x70]
cmovae eax, ebx
cmp word [eax + 2], 0x2e
jne 0x4a8ea8
cmp edx, 2
jne 0x4a8ea8
mov edi, dword [ebp - 0xac]
mov ebx, dword [ebp - 0xb0]
jmp 0x4a8efe
or ecx, 0
je 0x4a8eb1
mov al, 1
jmp 0x4a8eb3
xor al, al
test al, al
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x58]
push eax
je 0x4a8ed6
call fcn.00445310
add esp, 4
mov byte [ebp - 4], 5
mov ecx, eax
call fcn.004a8d60
jmp 0x4a8eee
call fcn.00445310
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x58]
call fcn.004cd0d0
movzx eax, al
cdq
mov edi, edx
mov ebx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
call fcn.0040b220
lea eax, [ebp - 0x98]
mov ecx, esi
push eax
call fcn.004bda80
test al, al
je 0x4a90b4
mov ecx, dword [ebp - 0x78]
and ecx, 0x10
mov eax, ecx
or eax, 0
je 0x4a8f25
mov al, 1
jmp 0x4a8f27
xor al, al
test al, al
je 0x4a8f67
mov edx, dword [ebp - 0x60]
test edx, edx
je 0x4a8f67
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
cmp word [eax], 0x2e
jne 0x4a8f67
cmp edx, 1
je 0x4a9090
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
cmp word [eax + 2], 0x2e
jne 0x4a8f67
cmp edx, 2
je 0x4a9090
or ecx, 0
je 0x4a8f70
mov al, 1
jmp 0x4a8f72
xor al, al
test al, al
je 0x4a9003
mov byte [ebp - 4], 7
xor eax, eax
or dword [ebp - 0x9c], 1
lea ecx, [ebp - 0x28]
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
call fcn.0040eb60
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
call fcn.0040e8a0
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
push dword [ebp - 0x60]
cmovae eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x28]
push eax
call fcn.0040e8a0
lea ecx, [ebp - 0x28]
call fcn.004a8d60
add ebx, eax
adc edi, edx
and dword [ebp - 0x9c], 0xfffffffe
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
jmp 0x4a908b
mov byte [ebp - 4], 8
xor eax, eax
or dword [ebp - 0x9c], 2
lea ecx, [ebp - 0x58]
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
push eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
call fcn.0040eb60
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x58]
push eax
call fcn.0040e8a0
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
push dword [ebp - 0x60]
cmovae eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x58]
push eax
call fcn.0040e8a0
lea ecx, [ebp - 0x58]
call fcn.004cd0d0
movzx eax, al
cdq
add ebx, eax
adc edi, edx
and dword [ebp - 0x9c], 0xfffffffd
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
call fcn.0040b220
lea eax, [ebp - 0x98]
mov ecx, esi
push eax
call fcn.004bda80
test al, al
jne 0x4a8f14
jmp 0x4a90b4
mov edi, dword [ebp - 0xac]
mov ebx, dword [ebp - 0xb0]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4a90cc
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x4a90cc
mov dword [esi], 0xffffffff
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4a91cf
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 9
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.004cd7c0
test al, al
je 0x4a9127
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4a91c3
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.0040b220
lea ecx, [ebp - 0x40]
call fcn.004ccd30
mov dword [ebp - 0xa4], eax
cmp eax, 0xffffffff
je 0x4a91d5
xor edx, edx
lea ecx, [ebp - 0x40]
call fcn.004ccc60
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4a91cf
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.004cd7c0
test al, al
je 0x4a91a7
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4a91c3
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.0040b220
mov edx, dword [ebp - 0xa4]
lea ecx, [ebp - 0x40]
call fcn.004ccc60
jmp 0x4a91d5
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.0040b220
add ebx, 1
adc edi, 0
mov byte [ebp - 4], 1
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4a91f1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x4a91f1
mov dword [esi], 0xffffffff
push 4
push esi
call fcn.004e96c2
add esp, 8
mov dword [ebp - 0xa0], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.0040b220
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040b220
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 - 0x10]
xor ecx, ebp
call fcn.004e9681
mov esp, ebp
pop ebp
ret