Function at 0x4a5400
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fe1be
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x537008]
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.0040ac00
mov dword [ebp - 4], 0
mov edx, 0x10
lea ecx, [ebp - 0x40]
call fcn.004a8dd0
lea ecx, [ebp - 0x98]
call fcn.004b6540
mov byte [ebp - 4], 1
push 4
mov dword [ebp - 0xa0], 0
call fcn.004e648c
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 0x51290c
lea ecx, [ebp - 0x58]
call fcn.0040d470
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x98]
push ecx
push eax
lea ecx, [ebp - 0xa0]
call fcn.004bab00
mov bl, al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
call fcn.0040a320
mov esi, dword [ebp - 0xa0]
test bl, bl
je 0x4a5748
mov ecx, dword [ebp - 0x78]
and ecx, 0x10
mov eax, ecx
or eax, 0
je 0x4a54fe
mov al, 1
jmp 0x4a5500
xor al, al
test al, al
je 0x4a5548
mov edx, dword [ebp - 0x60]
test edx, edx
je 0x4a5548
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 0x4a5548
cmp edx, 1
je 0x4a553a
cmp edi, 8
lea eax, [ebp - 0x70]
cmovae eax, ebx
cmp word [eax + 2], 0x2e
jne 0x4a5548
cmp edx, 2
jne 0x4a5548
mov edi, dword [ebp - 0xac]
mov ebx, dword [ebp - 0xb0]
jmp 0x4a559e
or ecx, 0
je 0x4a5551
mov al, 1
jmp 0x4a5553
xor al, al
test al, al
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x58]
push eax
je 0x4a5576
call fcn.00443e90
add esp, 4
mov byte [ebp - 4], 5
mov ecx, eax
call fcn.004a5400
jmp 0x4a558e
call fcn.00443e90
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x58]
call fcn.004c9ef0
movzx eax, al
cdq
mov edi, edx
mov ebx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
call fcn.0040a320
lea eax, [ebp - 0x98]
mov ecx, esi
push eax
call fcn.004ba890
test al, al
je 0x4a5754
mov ecx, dword [ebp - 0x78]
and ecx, 0x10
mov eax, ecx
or eax, 0
je 0x4a55c5
mov al, 1
jmp 0x4a55c7
xor al, al
test al, al
je 0x4a5607
mov edx, dword [ebp - 0x60]
test edx, edx
je 0x4a5607
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
cmp word [eax], 0x2e
jne 0x4a5607
cmp edx, 1
je 0x4a5730
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
cmp word [eax + 2], 0x2e
jne 0x4a5607
cmp edx, 2
je 0x4a5730
or ecx, 0
je 0x4a5610
mov al, 1
jmp 0x4a5612
xor al, al
test al, al
je 0x4a56a3
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.0040d6c0
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.0040d400
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.0040d400
lea ecx, [ebp - 0x28]
call fcn.004a5400
add ebx, eax
adc edi, edx
and dword [ebp - 0x9c], 0xfffffffe
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
jmp 0x4a572b
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.0040d6c0
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.0040d400
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.0040d400
lea ecx, [ebp - 0x58]
call fcn.004c9ef0
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.0040a320
lea eax, [ebp - 0x98]
mov ecx, esi
push eax
call fcn.004ba890
test al, al
jne 0x4a55b4
jmp 0x4a5754
mov edi, dword [ebp - 0xac]
mov ebx, dword [ebp - 0xb0]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4a576c
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x4a576c
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 0x4a586f
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.004ca5e0
test al, al
je 0x4a57c7
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 0x4a5863
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.0040a320
lea ecx, [ebp - 0x40]
call fcn.004c9b50
mov dword [ebp - 0xa4], eax
cmp eax, 0xffffffff
je 0x4a5875
xor edx, edx
lea ecx, [ebp - 0x40]
call fcn.004c9a80
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 0x4a586f
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.004ca5e0
test al, al
je 0x4a5847
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 0x4a5863
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.0040a320
mov edx, dword [ebp - 0xa4]
lea ecx, [ebp - 0x40]
call fcn.004c9a80
jmp 0x4a5875
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.0040a320
add ebx, 1
adc edi, 0
mov byte [ebp - 4], 1
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4a5891
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x4a5891
mov dword [esi], 0xffffffff
push 4
push esi
call fcn.004e64bc
add esp, 8
mov dword [ebp - 0xa0], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.0040a320
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040a320
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.004e647b
mov esp, ebp
pop ebp
ret