Function at 0x4a5210
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fdfae
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x536008]
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.0040abc0
mov dword [ebp - 4], 0
mov edx, 0x10
lea ecx, [ebp - 0x40]
call fcn.004a8bf0
lea ecx, [ebp - 0x98]
call fcn.004b6350
mov byte [ebp - 4], 1
push 4
mov dword [ebp - 0xa0], 0
call fcn.004e62bc
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 0x511a94
lea ecx, [ebp - 0x58]
call fcn.0040d350
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x98]
push ecx
push eax
lea ecx, [ebp - 0xa0]
call fcn.004ba910
mov bl, al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
call fcn.0040a2e0
mov esi, dword [ebp - 0xa0]
test bl, bl
je 0x4a5558
mov ecx, dword [ebp - 0x78]
and ecx, 0x10
mov eax, ecx
or eax, 0
je 0x4a530e
mov al, 1
jmp 0x4a5310
xor al, al
test al, al
je 0x4a5358
mov edx, dword [ebp - 0x60]
test edx, edx
je 0x4a5358
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 0x4a5358
cmp edx, 1
je 0x4a534a
cmp edi, 8
lea eax, [ebp - 0x70]
cmovae eax, ebx
cmp word [eax + 2], 0x2e
jne 0x4a5358
cmp edx, 2
jne 0x4a5358
mov edi, dword [ebp - 0xac]
mov ebx, dword [ebp - 0xb0]
jmp 0x4a53ae
or ecx, 0
je 0x4a5361
mov al, 1
jmp 0x4a5363
xor al, al
test al, al
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x58]
push eax
je 0x4a5386
call fcn.00443cb0
add esp, 4
mov byte [ebp - 4], 5
mov ecx, eax
call fcn.004a5210
jmp 0x4a539e
call fcn.00443cb0
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x58]
call fcn.004c9d10
movzx eax, al
cdq
mov edi, edx
mov ebx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
call fcn.0040a2e0
lea eax, [ebp - 0x98]
mov ecx, esi
push eax
call fcn.004ba6a0
test al, al
je 0x4a5564
mov ecx, dword [ebp - 0x78]
and ecx, 0x10
mov eax, ecx
or eax, 0
je 0x4a53d5
mov al, 1
jmp 0x4a53d7
xor al, al
test al, al
je 0x4a5417
mov edx, dword [ebp - 0x60]
test edx, edx
je 0x4a5417
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
cmp word [eax], 0x2e
jne 0x4a5417
cmp edx, 1
je 0x4a5540
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
cmp word [eax + 2], 0x2e
jne 0x4a5417
cmp edx, 2
je 0x4a5540
or ecx, 0
je 0x4a5420
mov al, 1
jmp 0x4a5422
xor al, al
test al, al
je 0x4a54b3
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.0040d5a0
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.0040d2e0
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.0040d2e0
lea ecx, [ebp - 0x28]
call fcn.004a5210
add ebx, eax
adc edi, edx
and dword [ebp - 0x9c], 0xfffffffe
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
jmp 0x4a553b
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.0040d5a0
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.0040d2e0
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.0040d2e0
lea ecx, [ebp - 0x58]
call fcn.004c9d10
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.0040a2e0
lea eax, [ebp - 0x98]
mov ecx, esi
push eax
call fcn.004ba6a0
test al, al
jne 0x4a53c4
jmp 0x4a5564
mov edi, dword [ebp - 0xac]
mov ebx, dword [ebp - 0xb0]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4a557c
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x4a557c
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 0x4a567f
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.004ca400
test al, al
je 0x4a55d7
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 0x4a5673
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.0040a2e0
lea ecx, [ebp - 0x40]
call fcn.004c9970
mov dword [ebp - 0xa4], eax
cmp eax, 0xffffffff
je 0x4a5685
xor edx, edx
lea ecx, [ebp - 0x40]
call fcn.004c98a0
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 0x4a567f
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.004ca400
test al, al
je 0x4a5657
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 0x4a5673
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.0040a2e0
mov edx, dword [ebp - 0xa4]
lea ecx, [ebp - 0x40]
call fcn.004c98a0
jmp 0x4a5685
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.0040a2e0
add ebx, 1
adc edi, 0
mov byte [ebp - 4], 1
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4a56a1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x4a56a1
mov dword [esi], 0xffffffff
push 4
push esi
call fcn.004e62ec
add esp, 8
mov dword [ebp - 0xa0], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.0040a2e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040a2e0
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.004e62ab
mov esp, ebp
pop ebp
ret