Function at 0x4233a0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459d95
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x46c008]
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.00422770
test eax, eax
jne 0x42385f
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.00429750
test eax, eax
jne 0x42385f
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.00428640
mov edx, esi
lea ecx, [ebp - 0x30]
call fcn.004289a0
mov dword [ebp - 4], 0
cmp byte [ebp - 0xd], 0
jne 0x42343a
mov ecx, edi
call fcn.004229a0
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.0044a831
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.0044b640
add esp, 0x10
mov byte [ebp - 4], 1
cmp dword [edi + 0x44], 3
jne 0x4234a2
mov ecx, dword [ebp - 0x30]
movzx eax, word [ecx]
cmp eax, 0x5c
je 0x4234cd
cmp eax, 0x2f
je 0x4234cd
or eax, 0x20
sub eax, 0x61
cmp eax, 0x19
ja 0x4234a2
cmp word [ecx + 2], 0x3a
je 0x4234cd
lea eax, [ebp - 0x24]
push eax
lea edx, [edi + 0x5c]
lea ecx, [ebp - 0x3c]
call fcn.004225f0
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.0040a4c0
mov byte [ebp - 4], 1
push dword [ebp - 0x3c]
call fcn.0044a6fb
add esp, 4
cmp byte [edi + 0x8c], 0
je 0x42353a
lea eax, [ebp - 0x24]
push eax
lea ecx, [edi + 0x94]
call fcn.0040a4c0
cmp byte [ebp - 0xd], 0
je 0x42352c
cmp byte [0x46e2d1], 0
mov eax, dword [edi + 0x94]
jne 0x42351e
mov edx, eax
lea ecx, [ebp - 0x3c]
call fcn.0040a940
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0x3c]
call fcn.0044a6fb
add esp, 4
xor esi, esi
jmp 0x42384a
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor esi, esi
jmp 0x42384a
mov ecx, edi
call fcn.00423f30
xor esi, esi
jmp 0x42384a
cmp byte [edi + 0x30], 0
jne 0x42355d
push ebx
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.00422c20
mov esi, eax
test esi, esi
jne 0x42384a
cmp byte [ebx], al
jne 0x423575
mov byte [ebx], 1
lea eax, [ebp - 0x24]
push eax
lea ecx, [edi + 0x94]
call fcn.0040a4c0
cmp byte [ebp - 0xd], 0
je 0x42357c
mov byte [ebx], 0
xor esi, esi
jmp 0x42384a
push 0x18
call fcn.0044a8ae
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.0040e3e0
test al, al
jne 0x42360c
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
push str.Cannot_open_output_file
call fcn.004224d0
mov esi, eax
jmp 0x423840
mov cl, byte [edi + 0x3b]
mov byte [edi + 0x38], 1
test cl, cl
je 0x42374f
mov eax, dword [edi + 0xdc]
mov esi, dword [edi + 0xd8]
test eax, eax
jne 0x423635
test esi, esi
je 0x42374f
test eax, eax
ja 0x42374f
jb 0x423649
cmp esi, 0x1000
jae 0x42374f
cmp byte [edi + 0xd0], 0
je 0x42374f
mov eax, dword [edi + 0xcc]
and eax, 0xf0000000
cmp eax, 0xa0000000
jne 0x42366c
mov al, 1
jmp 0x42367e
test dword [edi + 0xcc], 0x400
je 0x42374f
xor al, al
mov byte [edi + 0x37], al
cmp esi, dword [edi + 0xf4]
je 0x4236c9
mov eax, dword [edi + 0xf0]
test eax, eax
je 0x4236a6
push eax
call fcn.0044a6fb
add esp, 4
mov dword [edi + 0xf0], 0
mov dword [edi + 0xf4], 0
test esi, esi
je 0x4236c9
push esi
call fcn.0044a831
add esp, 4
mov dword [edi + 0xf0], eax
mov dword [edi + 0xf4], esi
push 0x14
call fcn.0044a8ae
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 0x423701
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 0x423736
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
test ecx, ecx
je 0x423748
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp + 8]
mov dword [eax], esi
jmp 0x42381c
cmp byte [edi + 0x2d], 0
je 0x4237e3
cmp byte [edi + 0x30], 0
jne 0x4237e9
test cl, cl
je 0x4237e3
mov ecx, dword [edi + 0xdc]
mov eax, dword [edi + 0xd8]
test ecx, ecx
jne 0x42377e
cmp eax, 0x1000
jbe 0x4237e3
push ecx
mov dword [edi + 0xe4], ecx
mov ecx, dword [edi + 0xe8]
push eax
add ecx, 8
mov dword [edi + 0xe0], eax
call fcn.0040e570
mov byte [edi + 0x3c], al
test al, al
jne 0x4237bb
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
push str.Cannot_set_length_for_output_file
call fcn.004224d0
mov esi, eax
test esi, esi
jne 0x423840
mov ecx, dword [edi + 0xe8]
lea ecx, [ecx + 8]
call fcn.0040e530
test al, al
jne 0x4237e3
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
push str.Cannot_seek_to_begin_of_file
call fcn.004224d0
mov esi, eax
test esi, esi
jne 0x423840
cmp byte [edi + 0x30], 0
je 0x423805
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 0x423840
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
test ecx, ecx
je 0x42381a
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 0x423832
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.0044a6fb
push dword [ebp - 0x30]
call fcn.0044a6fb
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