Function at 0x414a50
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51e781
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x595cb8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x74], ebx
mov ecx, dword [esi + 0xa0]
test ecx, ecx
je 0x414aab
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0xa0], 0
mov dword [ebx], 0
mov ecx, dword [esi + 0x98]
test ecx, ecx
je 0x414acb
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x98], 0
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x5c]
push 3
mov byte [esi + 0x5d], 0
mov byte [esi + 0x58], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov byte [esi + 0x90], 0
mov dword [esi + 0x84], edi
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
call fcn.00403e70
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x5c]
push eax
push edi
call fcn.00418eb0
mov ebx, eax
test ebx, ebx
jne 0x414b88
mov ecx, dword [ebp - 0x64]
lea eax, [esi + 0x80]
push eax
mov edx, edi
call fcn.00418df0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x414b88
lea eax, [ebp - 0x5c]
push eax
lea ecx, [esi + 0x44]
call fcn.004036b0
xor eax, eax
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x64]
lea edx, [ebp - 0x84]
push edx
push 0x1d
mov byte [ebp - 4], 2
mov eax, dword [ecx]
push edi
push ecx
call dword [eax + 0x18]
mov ebx, eax
test ebx, ebx
je 0x414b9a
lea ecx, [ebp - 0x84]
call fcn.0041c500
push dword [ebp - 0x5c]
call fcn.004f4577
add esp, 4
mov eax, ebx
jmp 0x415306
mov ax, word [ebp - 0x84]
test ax, ax
je 0x414bdc
cmp ax, 0x15
je 0x414bcc
lea ecx, [ebp - 0x84]
call fcn.0041c500
push dword [ebp - 0x5c]
call fcn.004f4577
add esp, 4
mov eax, 0x80004005
jmp 0x415306
mov eax, dword [ebp - 0x7c]
mov dword [esi + 0x50], eax
mov eax, dword [ebp - 0x78]
mov dword [esi + 0x54], eax
mov byte [esi + 0x58], 1
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 1
call fcn.0041c500
mov ecx, dword [ebp - 0x64]
lea eax, [esi + 0x5d]
push eax
push 0xf
mov edx, edi
call fcn.00418d60
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x414b88
mov ecx, esi
call fcn.00414950
mov ebx, eax
test ebx, ebx
jne 0x414b88
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x414c3f
cmp byte [esi + 0x80], al
lea eax, [ebp - 0x4d]
push eax
sete byte [ebp - 0x60]
lea eax, [ebp - 0x5c]
push dword [ebp - 0x60]
push eax
call fcn.0041b940
test al, al
je 0x414c83
cmp byte [ebp - 0x4d], bl
je 0x414c83
cmp dword [ebp + 0x14], 0
jne 0x415255
cmp byte [esi + 0xb9], 0
jne 0x415255
cmp byte [esi + 0xb8], 0
je 0x414c95
push 8
call fcn.004f457c
mov esi, eax
add esp, 4
mov dword [esi + 4], 0
push esi
mov dword [esi], vtable.CStdOutFileStream.0
call fcn.00402070
mov eax, dword [ebp - 0x74]
mov dword [eax], esi
push dword [ebp - 0x5c]
call fcn.004f4577
add esp, 4
xor eax, eax
jmp 0x415306
xor eax, eax
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x64]
lea edx, [ebp - 0x84]
push edx
push 9
mov byte [ebp - 4], 4
mov eax, dword [ecx]
push edi
push ecx
call dword [eax + 0x18]
mov ebx, eax
test ebx, ebx
jne 0x414b7d
mov ax, word [ebp - 0x84]
cmp ax, 0x13
jne 0x414cd7
mov eax, dword [ebp - 0x7c]
mov dword [esi + 0x78], eax
mov byte [esi + 0x7f], 1
jmp 0x414ce3
test ax, ax
jne 0x414bac
mov byte [esi + 0x7f], al
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 1
call fcn.0041c500
lea eax, [esi + 0x7c]
mov ecx, esi
push eax
lea eax, [esi + 0x60]
push eax
push 0xa
push edi
call fcn.004148a0
mov ebx, eax
test ebx, ebx
jne 0x414b88
lea eax, [esi + 0x7d]
mov ecx, esi
push eax
lea eax, [esi + 0x68]
push eax
push 0xb
push edi
call fcn.004148a0
mov ebx, eax
test ebx, ebx
jne 0x414b88
lea eax, [esi + 0x7e]
mov ecx, esi
push eax
lea eax, [esi + 0x70]
push eax
push 0xc
push edi
call fcn.004148a0
mov ebx, eax
test ebx, ebx
jne 0x414b88
mov ecx, dword [esi + 0x10]
mov byte [ebp - 0x4d], al
lea eax, [ebp - 0x4d]
push eax
push edi
call fcn.004142b0
mov edi, eax
test edi, edi
je 0x414d6e
push dword [ebp - 0x5c]
call fcn.004f4577
add esp, 4
mov eax, edi
jmp 0x415306
lea ecx, [ebp - 0x98]
call fcn.004035f0
mov edx, ecx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x5c]
call fcn.0041b340
mov ecx, dword [ebp - 0x90]
test ecx, ecx
jne 0x414da1
lea ecx, [ebp - 0x98]
call fcn.00403570
jmp 0x414bb7
mov eax, dword [esi + 0x30]
xor ebx, ebx
sub eax, 1
je 0x414e68
sub eax, 1
jne 0x414db7
lea ebx, [ecx - 1]
push ebx
push 0
lea ecx, [ebp - 0x98]
call fcn.00403410
lea ecx, [ebp - 0x98]
call fcn.004180e0
lea edx, [ebp - 0x98]
lea ecx, [ebp - 0xb0]
call fcn.004182a0
mov byte [ebp - 4], 6
mov bl, byte [ebp - 0x4d]
test bl, bl
jne 0x414f3b
cmp byte [esi + 0x80], bl
jne 0x414e19
mov eax, dword [ebp - 0x90]
test eax, eax
je 0x414f3b
dec eax
lea ecx, [ebp - 0x98]
push 1
push eax
mov eax, dword [ebp - 0x98]
call dword [eax + 4]
cmp dword [ebp - 0x90], 0
je 0x414f3b
lea ecx, [ebp - 0xa4]
call fcn.00403810
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x98]
mov ecx, esi
push eax
call fcn.004147a0
cmp byte [esi + 0x80], 0
je 0x414f29
cmp byte [esi + 0x5c], 0
je 0x414ea6
cmp byte [esi + 0x7e], 0
je 0x414ea6
lea edi, [esi + 0x70]
jmp 0x414eb6
mov ebx, dword [esi + 0xac]
cmp ecx, ebx
jle 0x414d91
xor edi, edi
cmp edi, ebx
jge 0x414db7
mov eax, dword [ebp - 0x8c]
mov edx, dword [eax + edi*4]
mov eax, dword [esi + 0xb0]
mov edx, dword [edx]
mov ecx, dword [eax + edi*4]
mov ecx, dword [ecx]
call fcn.0041b010
test eax, eax
jne 0x414d91
inc edi
jmp 0x414e78
mov edi, dword [esi + 0x10]
cmp byte [edi + 0x2c], 0
je 0x414eb4
add edi, 0x24
jmp 0x414eb6
xor edi, edi
cmp byte [esi + 0x5b], 0
je 0x414eca
cmp byte [esi + 0x7d], 0
je 0x414eca
lea eax, [esi + 0x68]
mov dword [ebp - 0x64], eax
jmp 0x414ed1
mov dword [ebp - 0x64], 0
cmp byte [esi + 0x5a], 0
je 0x414ee5
cmp byte [esi + 0x7c], 0
je 0x414ee5
lea eax, [esi + 0x60]
mov dword [ebp - 0x60], eax
jmp 0x414eec
mov dword [ebp - 0x60], 0
push 0
push 0x2000000
push 3
push 0
push 3
push 0x40000000
push dword [ebp - 0xa4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x414f26
push edi
push dword [ebp - 0x64]
push dword [ebp - 0x60]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, byte [ebp - 0x4d]
mov byte [ebp - 4], 6
push dword [ebp - 0xa4]
call fcn.004f4577
add esp, 4
lea eax, [ebp - 0xb0]
push eax
lea edx, [esi + 0x24]
lea ecx, [ebp - 0x70]
call fcn.00415760
add esp, 4
mov byte [ebp - 4], 8
cmp byte [esi + 0x80], 0
je 0x414fa9
lea eax, [ebp - 0x70]
push eax
lea ecx, [esi + 0x38]
call fcn.004036b0
test bl, bl
je 0x414f76
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push dword [ebp - 0x70]
call fcn.004f4577
push dword [ebp - 0xb0]
call fcn.004f4577
add esp, 8
lea ecx, [ebp - 0x98]
call fcn.00403570
push dword [ebp - 0x5c]
call fcn.004f4577
add esp, 4
xor eax, eax
jmp 0x415306
cmp byte [esi + 0x58], 0
jne 0x4150b3
lea ecx, [ebp - 0x4c]
call fcn.00401f20
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x4c]
push dword [ebp - 0x70]
call fcn.0041c330
test al, al
je 0x4150a4
mov eax, dword [esi + 0x34]
sub eax, 2
je 0x415081
mov ecx, dword [ebp - 0x70]
call fcn.0041c130
test al, al
jne 0x4150a4
push str.ERROR:_Can_not_delete_output_file
lea ecx, [ebp - 0x80]
call fcn.004037b0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0xa
push ecx
mov edx, eax
lea ecx, [ebp - 0xa4]
call fcn.00415760
add esp, 4
mov byte [ebp - 4], 0xc
push dword [ebp - 0x80]
call fcn.004f4577
mov eax, dword [esi + 0x18]
add esp, 4
push dword [ebp - 0xa4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
push dword [ebp - 0xa4]
mov esi, eax
call fcn.004f4577
push dword [ebp - 0x24]
call fcn.004f4577
push dword [ebp - 0x70]
call fcn.004f4577
push dword [ebp - 0xb0]
call fcn.004f4577
add esp, 0x10
lea ecx, [ebp - 0x98]
call fcn.00403570
push dword [ebp - 0x5c]
call fcn.004f4577
add esp, 4
test esi, esi
je 0x414c8e
mov eax, esi
jmp 0x415306
push dword [ebp - 0x24]
call fcn.004f4577
push dword [ebp - 0x70]
call fcn.004f4577
push dword [ebp - 0xb0]
call fcn.004f4577
add esp, 0xc
jmp 0x414f8c
mov byte [ebp - 4], 8
push dword [ebp - 0x24]
call fcn.004f4577
add esp, 4
test bl, bl
jne 0x41521f
push 0x18
call fcn.004f457c
mov edi, eax
add esp, 4
mov dword [ebp - 0x60], edi
mov dword [edi + 4], 0
mov dword [edi], vtable.COutFileStream.0
mov dword [edi + 8], 0xffffffff
mov dword [esi + 0x94], edi
mov eax, dword [edi]
push edi
call dword [eax + 4]
xor eax, eax
mov byte [ebp - 4], 0xd
cmp byte [esi + 0x58], al
mov ecx, dword [esi + 0x94]
setne al
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x70]
call fcn.00414130
test al, al
jne 0x415199
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0xa4]
call fcn.004157d0
add esp, 4
mov byte [ebp - 4], 0xe
mov eax, dword [esi + 0x18]
push dword [ebp - 0xa4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
push dword [ebp - 0xa4]
mov esi, eax
call fcn.004f4577
add esp, 4
test esi, esi
je 0x41518a
mov byte [ebp - 4], 0xf
mov eax, dword [edi]
push edi
call dword [eax + 8]
push dword [ebp - 0x70]
call fcn.004f4577
push dword [ebp - 0xb0]
call fcn.004f4577
add esp, 8
lea ecx, [ebp - 0x98]
call fcn.00403570
push dword [ebp - 0x5c]
call fcn.004f4577
add esp, 4
mov eax, esi
jmp 0x415306
mov byte [ebp - 4], 0x10
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x414f76
cmp byte [esi + 0x58], 0
je 0x4151f8
mov eax, dword [esi + 0x94]
push 0
push 0
push dword [esi + 0x54]
mov ecx, dword [eax]
push dword [esi + 0x50]
push eax
call dword [ecx + 0x10]
mov ebx, eax
test ebx, ebx
je 0x4151f8
mov byte [ebp - 4], 0x11
mov eax, dword [edi]
push edi
call dword [eax + 8]
push dword [ebp - 0x70]
call fcn.004f4577
push dword [ebp - 0xb0]
call fcn.004f4577
add esp, 8
lea ecx, [ebp - 0x98]
call fcn.00403570
push dword [ebp - 0x5c]
call fcn.004f4577
add esp, 4
mov eax, ebx
jmp 0x415306
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [esi + 0x98]
test ecx, ecx
je 0x41520e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ebx, dword [ebp - 0x74]
mov dword [esi + 0x98], edi
mov dword [ebx], edi
mov byte [ebp - 4], 8
jmp 0x415222
mov ebx, dword [ebp - 0x74]
lea eax, [ebp - 0x70]
push eax
lea ecx, [esi + 0x38]
call fcn.004036b0
push dword [ebp - 0x70]
call fcn.004f4577
push dword [ebp - 0xb0]
call fcn.004f4577
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x98]
call fcn.00403570
jmp 0x41525e
mov ebx, dword [ebp - 0x74]
mov dword [ebx], 0
cmp byte [esi + 0xba], 0
je 0x414f97
push 0x20
call fcn.004f457c
add esp, 4
lea ecx, [esi + 0xa0]
mov dword [eax + 4], 0
mov dword [eax], vtable.COutStreamWithCRC.0
mov dword [eax + 8], 0
push eax
mov dword [esi + 0x9c], eax
call fcn.004079a0
mov edi, dword [esi + 0x9c]
mov dword [ebp - 0x60], edi
test edi, edi
je 0x4152ae
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov byte [ebp - 4], 0x13
push dword [ebx]
mov ecx, dword [esi + 0x9c]
call fcn.00407450
mov ecx, dword [ebx]
test ecx, ecx
je 0x4152cb
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebx], edi
mov eax, dword [esi + 0x9c]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], 0xffffffff
push dword [ebp - 0x5c]
call fcn.004f4577
add esp, 4
xor eax, eax
jmp 0x415306
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004f4566
mov esp, ebp
pop ebp
ret 0x10