Function at 0x423480
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x457835
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x46a008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0xc]
mov byte [ebx], 1
call fcn.00422850
test eax, eax
jne 0x42393f
mov ecx, dword [edi + 0x1c]
mov edx, dword [edi + 0xd4]
mov byte [ebp - 0xd], al
lea eax, [ebp - 0xd]
push eax
mov ecx, dword [ecx]
push 0x15
call fcn.00429830
test eax, eax
jne 0x42393f
movzx eax, byte [edi + 0x8d]
lea esi, [edi + 0x80]
cmp dword [edi + 0x44], 3
mov dl, byte [edi + 0x35]
push eax
push esi
sete cl
call fcn.00428720
mov edx, esi
lea ecx, [ebp - 0x30]
call fcn.00428a80
mov dword [ebp - 4], 0
cmp byte [ebp - 0xd], 0
jne 0x42351a
mov ecx, edi
call fcn.00422a80
mov esi, dword [ebp - 0x2c]
xor ecx, ecx
mov edx, 2
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00448381
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x30]
push eax
call fcn.00449190
add esp, 0x10
mov byte [ebp - 4], 1
cmp dword [edi + 0x44], 3
jne 0x423582
mov ecx, dword [ebp - 0x30]
movzx eax, word [ecx]
cmp eax, 0x5c
je 0x4235ad
cmp eax, 0x2f
je 0x4235ad
or eax, 0x20
sub eax, 0x61
cmp eax, 0x19
ja 0x423582
cmp word [ecx + 2], 0x3a
je 0x4235ad
lea eax, [ebp - 0x24]
push eax
lea edx, [edi + 0x5c]
lea ecx, [ebp - 0x3c]
call fcn.004226d0
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.0040a5b0
mov byte [ebp - 4], 1
push dword [ebp - 0x3c]
call fcn.0044824b
add esp, 4
cmp byte [edi + 0x8c], 0
je 0x42361a
lea eax, [ebp - 0x24]
push eax
lea ecx, [edi + 0x94]
call fcn.0040a5b0
cmp byte [ebp - 0xd], 0
je 0x42360c
cmp byte [0x899ce9], 0
mov eax, dword [edi + 0x94]
jne 0x4235fe
mov edx, eax
lea ecx, [ebp - 0x3c]
call fcn.0040aa30
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0x3c]
call fcn.0044824b
add esp, 4
xor esi, esi
jmp 0x42392a
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor esi, esi
jmp 0x42392a
mov ecx, edi
call fcn.00424010
xor esi, esi
jmp 0x42392a
cmp byte [edi + 0x30], 0
jne 0x42363d
push ebx
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.00422d00
mov esi, eax
test esi, esi
jne 0x42392a
cmp byte [ebx], al
jne 0x423655
mov byte [ebx], 1
lea eax, [ebp - 0x24]
push eax
lea ecx, [edi + 0x94]
call fcn.0040a5b0
cmp byte [ebp - 0xd], 0
je 0x42365c
mov byte [ebx], 0
xor esi, esi
jmp 0x42392a
push 0x18
call fcn.004483fe
mov ebx, eax
add esp, 4
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebx + 4], 0
mov dword [ebx], vtable.COutFileStream.0
mov dword [ebx + 8], 0xffffffff
mov byte [ebx + 0xc], 0
mov dword [edi + 0xe8], ebx
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
mov byte [ebp - 4], 3
xor eax, eax
cmp byte [edi + 0x30], al
mov ecx, dword [edi + 0xe8]
setne al
push 0x80
mov dword [ecx + 0x10], 0
lea eax, [eax*2 + 2]
mov dword [ecx + 0x14], 0
push eax
push 1
push 0x40000000
push dword [ebp - 0x24]
add ecx, 8
call fcn.0040e4c0
test al, al
jne 0x4236ec
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
push str.Cannot_open_output_file
call fcn.004225b0
mov esi, eax
jmp 0x423920
mov cl, byte [edi + 0x3b]
mov byte [edi + 0x38], 1
test cl, cl
je 0x42382f
mov eax, dword [edi + 0xdc]
mov esi, dword [edi + 0xd8]
test eax, eax
jne 0x423715
test esi, esi
je 0x42382f
test eax, eax
ja 0x42382f
jb 0x423729
cmp esi, 0x1000
jae 0x42382f
cmp byte [edi + 0xd0], 0
je 0x42382f
mov eax, dword [edi + 0xcc]
and eax, 0xf0000000
cmp eax, 0xa0000000
jne 0x42374c
mov al, 1
jmp 0x42375e
test dword [edi + 0xcc], 0x400
je 0x42382f
xor al, al
mov byte [edi + 0x37], al
cmp esi, dword [edi + 0xf4]
je 0x4237a9
mov eax, dword [edi + 0xf0]
test eax, eax
je 0x423786
push eax
call fcn.0044824b
add esp, 4
mov dword [edi + 0xf0], 0
mov dword [edi + 0xf4], 0
test esi, esi
je 0x4237a9
push esi
call fcn.00448381
add esp, 4
mov dword [edi + 0xf0], eax
mov dword [edi + 0xf4], esi
push 0x14
call fcn.004483fe
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [esi + 4], 0
mov dword [esi], vtable.CBufPtrSeqOutStream.0
mov dword [edi + 0xf8], esi
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [edi + 0xfc]
test ecx, ecx
je 0x4237e1
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0xfc], esi
mov ecx, dword [edi + 0xf8]
mov edx, dword [edi + 0xf4]
mov eax, dword [edi + 0xf0]
mov dword [ecx + 8], eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0xc], edx
mov esi, dword [edi + 0xfc]
test esi, esi
je 0x423816
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
test ecx, ecx
je 0x423828
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp + 8]
mov dword [eax], esi
jmp 0x4238fc
cmp byte [edi + 0x2d], 0
je 0x4238c3
cmp byte [edi + 0x30], 0
jne 0x4238c9
test cl, cl
je 0x4238c3
mov ecx, dword [edi + 0xdc]
mov eax, dword [edi + 0xd8]
test ecx, ecx
jne 0x42385e
cmp eax, 0x1000
jbe 0x4238c3
push ecx
mov dword [edi + 0xe4], ecx
mov ecx, dword [edi + 0xe8]
push eax
add ecx, 8
mov dword [edi + 0xe0], eax
call fcn.0040e650
mov byte [edi + 0x3c], al
test al, al
jne 0x42389b
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
push str.Cannot_set_length_for_output_file
call fcn.004225b0
mov esi, eax
test esi, esi
jne 0x423920
mov ecx, dword [edi + 0xe8]
lea ecx, [ecx + 8]
call fcn.0040e610
test al, al
jne 0x4238c3
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
push str.Cannot_seek_to_begin_of_file
call fcn.004225b0
mov esi, eax
test esi, esi
jne 0x423920
cmp byte [edi + 0x30], 0
je 0x4238e5
mov eax, dword [ebx]
push 0
push 0
push dword [edi + 0xa4]
push dword [edi + 0xa0]
push ebx
call dword [eax + 0x10]
mov esi, eax
test esi, esi
jne 0x423920
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
test ecx, ecx
je 0x4238fa
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi], ebx
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
mov ecx, dword [edi + 0xec]
test ecx, ecx
je 0x423912
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [edi + 0xec], ebx
mov byte [eax], 0
mov byte [ebp - 4], 9
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
push dword [ebp - 0x24]
call fcn.0044824b
push dword [ebp - 0x30]
call fcn.0044824b
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8