Function at 0x421870
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ed5c0
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x53a00c]
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
push ecx
lea ecx, [ebp - 0x40]
movlpd qword [ebp - 0x90], xmm0
call fcn.00403090
mov dword [ebp - 4], 0
mov edx, 0x10
lea ecx, [ebp - 0x40]
call fcn.00422e50
lea ecx, [ebp - 0x80]
call fcn.00432f20
mov byte [ebp - 4], 1
push 4
mov dword [ebp - 0x94], 0
call fcn.004c4288
add esp, 4
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 2
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov byte [ebp - 4], 1
mov dword [ebp - 0x94], eax
mov byte [ebp - 4], 3
lea edx, [ebp - 0x40]
push 0x51601c
lea ecx, [ebp - 0x28]
call fcn.0040eb77
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x80]
push ecx
push eax
lea ecx, [ebp - 0x94]
call fcn.004336b0
mov bl, al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00402de0
mov esi, dword [ebp - 0x94]
test bl, bl
je 0x421b3e
lea ecx, [ebp - 0x80]
call fcn.00433030
test al, al
jne 0x4219e3
mov eax, dword [ebp - 0x60]
and eax, 0x10
or eax, 0
je 0x42196c
mov al, 1
jmp 0x42196e
xor al, al
test al, al
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x28]
push eax
je 0x4219ad
call fcn.0040ebe4
add esp, 4
mov byte [ebp - 4], 5
mov ecx, eax
call fcn.00421870
mov ebx, eax
mov edi, edx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x84], edi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00402de0
jmp 0x4219fb
call fcn.0040ebe4
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.004398c0
movzx eax, al
cdq
mov ebx, eax
mov dword [ebp - 0x8c], eax
mov edi, edx
mov dword [ebp - 0x84], edx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00402de0
jmp 0x4219fb
mov edi, dword [ebp - 0x8c]
mov ebx, dword [ebp - 0x90]
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x8c], ebx
lea eax, [ebp - 0x80]
mov ecx, esi
push eax
call fcn.00433460
test al, al
je 0x421b4a
nop
mov edi, dword [ebp - 0x60]
and edi, 0x10
mov eax, edi
or eax, 0
je 0x421a21
mov al, 1
jmp 0x421a23
xor al, al
test al, al
je 0x421a7c
lea ecx, [ebp - 0x58]
call fcn.00402f40
test al, al
jne 0x421a7c
lea ecx, [ebp - 0x58]
call fcn.00403210
mov ebx, eax
cmp dword [ebx + 0x14], 8
jb 0x421a45
mov eax, dword [ebx]
cmp word [eax], 0x2e
jne 0x421a7c
lea ecx, [ebp - 0x58]
call fcn.00403330
cmp eax, 1
je 0x421b1d
cmp dword [ebx + 0x14], 8
jb 0x421a64
mov ebx, dword [ebx]
cmp word [ebx + 2], 0x2e
jne 0x421a7c
lea ecx, [ebp - 0x58]
call fcn.00403330
cmp eax, 2
je 0x421b1d
or edi, 0
je 0x421a85
mov al, 1
jmp 0x421a87
xor al, al
test al, al
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x58]
push eax
je 0x421ad8
lea ecx, [ebp - 0xac]
call fcn.0040ebe4
add esp, 4
mov byte [ebp - 4], 7
mov ecx, eax
call fcn.00421870
mov ebx, dword [ebp - 0x8c]
mov edi, dword [ebp - 0x84]
add ebx, eax
mov dword [ebp - 0x8c], ebx
adc edi, edx
mov dword [ebp - 0x84], edi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xac]
call fcn.00402de0
jmp 0x421b29
lea ecx, [ebp - 0x28]
call fcn.0040ebe4
add esp, 4
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x28]
call fcn.004398c0
mov ebx, dword [ebp - 0x8c]
mov edi, dword [ebp - 0x84]
movzx eax, al
cdq
add ebx, eax
mov dword [ebp - 0x8c], ebx
adc edi, edx
mov dword [ebp - 0x84], edi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00402de0
jmp 0x421b29
mov edi, dword [ebp - 0x84]
mov ebx, dword [ebp - 0x8c]
lea eax, [ebp - 0x80]
mov ecx, esi
push eax
call fcn.00433460
test al, al
jne 0x421a10
jmp 0x421b4a
mov edi, dword [ebp - 0x8c]
mov ebx, dword [ebp - 0x90]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x421b62
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x421b62
mov dword [esi], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00402f50
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x421c3d
lea ecx, [ebp - 0x28]
call fcn.00403070
mov byte [ebp - 4], 9
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.00439d30
test al, al
je 0x421bab
lea ecx, [ebp - 0x28]
call fcn.00402f50
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x421c31
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00402de0
lea ecx, [ebp - 0x40]
call fcn.00439710
mov dword [ebp - 0x84], eax
cmp eax, 0xffffffff
je 0x421c43
xor edx, edx
lea ecx, [ebp - 0x40]
call fcn.00439650
lea ecx, [ebp - 0x40]
call fcn.00402f50
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x421c3d
lea ecx, [ebp - 0x28]
call fcn.00403070
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.00439d30
test al, al
je 0x421c15
lea ecx, [ebp - 0x28]
call fcn.00402f50
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x421c31
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00402de0
mov edx, dword [ebp - 0x84]
lea ecx, [ebp - 0x40]
call fcn.00439650
jmp 0x421c43
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00402de0
add ebx, 1
adc edi, 0
mov byte [ebp - 4], 1
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x421c5f
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x421c5f
mov dword [esi], 0xffffffff
push 4
push esi
call fcn.004c4650
add esp, 8
mov dword [ebp - 0x94], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.00402de0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00402de0
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.004c4269
mov esp, ebp
pop ebp
ret