Function at 0x415250
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483fcf
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x4b0014]
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 edi, dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0xb4], edi
mov ecx, dword [esi + 0xa0]
test ecx, ecx
je 0x4152ae
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0xa0], 0
mov dword [edi], 0
mov ecx, dword [esi + 0x98]
test ecx, ecx
je 0x4152ce
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x98], 0
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movq qword [ebp - 0x28], xmm0
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 - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call fcn.004039c0
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0x28]
push eax
push edi
call fcn.00419870
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x41539f
mov ecx, dword [ebp - 0xb0]
lea eax, [esi + 0x80]
push eax
push 6
mov edx, edi
call fcn.004197d0
add esp, 8
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x41539f
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0x44]
call fcn.00403200
xor eax, eax
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0xb0]
lea edx, [ebp - 0x68]
push edx
push 0x1d
mov byte [ebp - 4], 2
mov eax, dword [ecx]
push edi
push ecx
call dword [eax + 0x18]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4153b2
lea ecx, [ebp - 0x68]
call fcn.0041d140
push dword [ebp - 0x28]
call fcn.0045d290
mov eax, dword [ebp - 0x1c]
add esp, 4
jmp 0x415b5d
mov ax, word [ebp - 0x68]
test ax, ax
je 0x4153ee
cmp ax, 0x15
je 0x4153de
lea ecx, [ebp - 0x68]
call fcn.0041d140
push dword [ebp - 0x28]
call fcn.0045d290
add esp, 4
mov eax, 0x80004005
jmp 0x415b5d
mov eax, dword [ebp - 0x60]
mov dword [esi + 0x50], eax
mov eax, dword [ebp - 0x5c]
mov dword [esi + 0x54], eax
mov byte [esi + 0x58], 1
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.0041d140
mov ecx, dword [ebp - 0xb0]
lea eax, [esi + 0x5d]
push eax
push 0xf
mov edx, edi
call fcn.004197d0
add esp, 8
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x41539f
mov ecx, esi
call fcn.00415150
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x41539f
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x415454
cmp byte [esi + 0x80], al
lea eax, [ebp - 0x15]
push eax
sete byte [ebp - 0x1c]
lea eax, [ebp - 0x28]
push dword [ebp - 0x1c]
push eax
call fcn.0041c3f0
test al, al
je 0x41549b
cmp byte [ebp - 0x15], 0
je 0x41549b
cmp dword [ebp + 0x14], 0
jne 0x415a8d
cmp byte [esi + 0xb9], 0
jne 0x415a8d
cmp byte [esi + 0xb8], 0
je 0x4154ad
push 8
call fcn.0045d295
mov esi, eax
add esp, 4
mov dword [esi + 4], 0
push esi
mov dword [esi], vtable.CStdOutFileStream.0
call fcn.00401bc0
mov eax, dword [ebp - 0xb4]
mov dword [eax], esi
push dword [ebp - 0x28]
call fcn.0045d290
add esp, 4
xor eax, eax
jmp 0x415b5d
xor eax, eax
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0xb0]
lea edx, [ebp - 0x68]
push edx
push 9
mov byte [ebp - 4], 4
mov eax, dword [ecx]
push edi
push ecx
call dword [eax + 0x18]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x415397
mov ax, word [ebp - 0x68]
cmp ax, 0x13
jne 0x4154ea
mov eax, dword [ebp - 0x60]
mov dword [esi + 0x78], eax
mov byte [esi + 0x7f], 1
jmp 0x4154f6
test ax, ax
jne 0x4153c1
mov byte [esi + 0x7f], al
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.0041d140
lea eax, [esi + 0x7c]
mov ecx, esi
push eax
lea eax, [esi + 0x60]
push eax
push 0xa
push edi
call fcn.00415090
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x41539f
lea eax, [esi + 0x7d]
mov ecx, esi
push eax
lea eax, [esi + 0x68]
push eax
push 0xb
push edi
call fcn.00415090
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x41539f
lea eax, [esi + 0x7e]
mov ecx, esi
push eax
lea eax, [esi + 0x70]
push eax
push 0xc
push edi
call fcn.00415090
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x41539f
mov byte [ebp - 0x15], al
lea ecx, [ebp - 0x15]
mov eax, dword [esi + 0x10]
mov edx, edi
push ecx
push 0x15
mov ecx, dword [eax]
call fcn.004197d0
mov edi, eax
add esp, 8
test edi, edi
je 0x415589
push dword [ebp - 0x28]
call fcn.0045d290
add esp, 4
mov eax, edi
jmp 0x415b5d
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x58]
movups xmmword [ebp - 0x58], xmm0
call fcn.00403140
mov edx, ecx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.0041be20
mov edx, dword [ebp - 0x50]
test edx, edx
jne 0x4155c1
lea ecx, [ebp - 0x58]
call fcn.004030c0
jmp 0x4153c9
mov ecx, dword [esi + 0x30]
xor eax, eax
sub ecx, 1
je 0x415685
sub ecx, 1
jne 0x4155d7
lea eax, [edx - 1]
push eax
push 0
lea ecx, [ebp - 0x58]
call fcn.00402f60
lea ecx, [ebp - 0x58]
call fcn.00418ad0
xorps xmm0, xmm0
mov dword [ebp - 0x6c], 0
lea edx, [ebp - 0x58]
movq qword [ebp - 0x74], xmm0
lea ecx, [ebp - 0x74]
call fcn.00418c90
mov byte [ebp - 4], 6
cmp byte [ebp - 0x15], 0
jne 0x41575e
cmp byte [esi + 0x80], 0
jne 0x415633
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x41575e
dec eax
lea ecx, [ebp - 0x58]
push 1
push eax
mov eax, dword [ebp - 0x58]
call dword [eax + 4]
cmp dword [ebp - 0x50], 0
je 0x41575e
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x44]
movq qword [ebp - 0x44], xmm0
call fcn.00403360
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x58]
mov ecx, esi
push eax
call fcn.00414f90
cmp byte [esi + 0x80], 0
je 0x41574f
cmp byte [esi + 0x5c], 0
je 0x4156c6
cmp byte [esi + 0x7e], 0
je 0x4156c6
lea edi, [esi + 0x70]
jmp 0x4156d6
mov eax, dword [esi + 0xac]
mov dword [ebp - 0x1c], eax
cmp edx, eax
jle 0x4155b4
xor edi, edi
cmp edi, eax
jge 0x4155d7
mov eax, dword [ebp - 0x4c]
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.0041baf0
test eax, eax
jne 0x4155b4
mov eax, dword [ebp - 0x1c]
inc edi
jmp 0x415698
mov edi, dword [esi + 0x10]
cmp byte [edi + 0x2c], 0
je 0x4156d4
add edi, 0x24
jmp 0x4156d6
xor edi, edi
cmp byte [esi + 0x5b], 0
je 0x4156ed
cmp byte [esi + 0x7d], 0
je 0x4156ed
lea eax, [esi + 0x68]
mov dword [ebp - 0xb0], eax
jmp 0x4156f7
mov dword [ebp - 0xb0], 0
cmp byte [esi + 0x5a], 0
je 0x41570b
cmp byte [esi + 0x7c], 0
je 0x41570b
lea eax, [esi + 0x60]
mov dword [ebp - 0x1c], eax
jmp 0x415712
mov dword [ebp - 0x1c], 0
push 0
push 0x2000000
push 3
push 0
push 3
push 0x40000000
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2c], eax
cmp eax, 0xffffffff
je 0x41574f
push edi
push dword [ebp - 0xb0]
push dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 6
push dword [ebp - 0x44]
call fcn.0045d290
add esp, 4
lea eax, [ebp - 0x74]
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
lea edx, [esi + 0x24]
push eax
lea ecx, [ebp - 0x38]
movq qword [ebp - 0x38], xmm0
call fcn.00415fc0
add esp, 4
mov byte [ebp - 4], 8
cmp byte [esi + 0x80], 0
je 0x4157d4
lea eax, [ebp - 0x38]
push eax
lea ecx, [esi + 0x38]
call fcn.00403200
cmp byte [ebp - 0x15], 0
je 0x4157a7
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push dword [ebp - 0x38]
call fcn.0045d290
push dword [ebp - 0x74]
call fcn.0045d290
add esp, 8
lea ecx, [ebp - 0x58]
call fcn.004030c0
push dword [ebp - 0x28]
call fcn.0045d290
add esp, 4
xor eax, eax
jmp 0x415b5d
cmp byte [esi + 0x58], 0
jne 0x4158ea
lea ecx, [ebp - 0xac]
call fcn.00401a70
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xac]
push dword [ebp - 0x38]
call fcn.0041ce50
test al, al
je 0x4158d8
mov eax, dword [esi + 0x34]
sub eax, 2
je 0x4158b5
mov ecx, dword [ebp - 0x38]
call fcn.0041cc30
test al, al
jne 0x4158d8
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
push 0x497838
lea ecx, [ebp - 0x64]
movq qword [ebp - 0x44], xmm0
call fcn.00403300
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xa
push ecx
mov edx, eax
lea ecx, [ebp - 0x44]
call fcn.00415fc0
add esp, 4
mov byte [ebp - 4], 0xc
push dword [ebp - 0x64]
call fcn.0045d290
mov eax, dword [esi + 0x18]
add esp, 4
push dword [ebp - 0x44]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
push dword [ebp - 0x44]
mov esi, eax
call fcn.0045d290
push dword [ebp - 0x84]
call fcn.0045d290
push dword [ebp - 0x38]
call fcn.0045d290
push dword [ebp - 0x74]
call fcn.0045d290
add esp, 0x10
lea ecx, [ebp - 0x58]
call fcn.004030c0
push dword [ebp - 0x28]
call fcn.0045d290
add esp, 4
test esi, esi
je 0x4154a6
mov eax, esi
jmp 0x415b5d
push dword [ebp - 0x84]
call fcn.0045d290
push dword [ebp - 0x38]
call fcn.0045d290
push dword [ebp - 0x74]
call fcn.0045d290
add esp, 0xc
jmp 0x4157ba
mov byte [ebp - 4], 8
push dword [ebp - 0x84]
call fcn.0045d290
add esp, 4
cmp byte [ebp - 0x15], 0
jne 0x415a60
push 0x18
call fcn.0045d295
mov edi, eax
xorps xmm0, xmm0
add esp, 4
mov dword [ebp - 0x1c], edi
movups xmmword [edi], xmm0
push edi
movq qword [edi + 0x10], xmm0
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]
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 - 0x38]
call fcn.00414a10
test al, al
jne 0x4159dd
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x44]
push eax
movq qword [ebp - 0x44], xmm0
call fcn.00416040
add esp, 4
mov byte [ebp - 4], 0xe
mov eax, dword [esi + 0x18]
push dword [ebp - 0x44]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
push dword [ebp - 0x44]
mov esi, eax
call fcn.0045d290
add esp, 4
test esi, esi
je 0x4159ce
mov byte [ebp - 4], 0xf
mov eax, dword [edi]
push edi
call dword [eax + 8]
push dword [ebp - 0x38]
call fcn.0045d290
push dword [ebp - 0x74]
call fcn.0045d290
add esp, 8
lea ecx, [ebp - 0x58]
call fcn.004030c0
push dword [ebp - 0x28]
call fcn.0045d290
add esp, 4
mov eax, esi
jmp 0x415b5d
mov byte [ebp - 4], 0x10
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x4157a7
cmp byte [esi + 0x58], 0
je 0x415a38
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 dword [ebp - 0x2c], eax
test eax, eax
je 0x415a38
mov byte [ebp - 4], 0x11
mov eax, dword [edi]
push edi
call dword [eax + 8]
push dword [ebp - 0x38]
call fcn.0045d290
push dword [ebp - 0x74]
call fcn.0045d290
add esp, 8
lea ecx, [ebp - 0x58]
call fcn.004030c0
push dword [ebp - 0x28]
call fcn.0045d290
mov eax, dword [ebp - 0x2c]
add esp, 4
jmp 0x415b5d
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [esi + 0x98]
test ecx, ecx
je 0x415a4e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0xb4]
mov dword [esi + 0x98], edi
mov dword [eax], edi
mov byte [ebp - 4], 8
lea eax, [ebp - 0x38]
push eax
lea ecx, [esi + 0x38]
call fcn.00403200
push dword [ebp - 0x38]
call fcn.0045d290
push dword [ebp - 0x74]
call fcn.0045d290
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.004030c0
jmp 0x415a99
mov eax, dword [ebp - 0xb4]
mov dword [eax], 0
cmp byte [esi + 0xba], 0
je 0x4157c2
push 0x20
call fcn.0045d295
xorps xmm0, xmm0
lea ecx, [esi + 0xa0]
add esp, 4
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
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.00407920
mov edi, dword [esi + 0x9c]
mov dword [ebp - 0x2c], edi
test edi, edi
je 0x415af3
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov eax, dword [ebp - 0xb4]
mov byte [ebp - 4], 0x13
mov ecx, dword [esi + 0x9c]
push dword [eax]
call fcn.004072e0
mov eax, dword [ebp - 0xb4]
mov ecx, dword [eax]
test ecx, ecx
je 0x415b22
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0xb4]
mov dword [eax], 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 - 0x28]
call fcn.0045d290
add esp, 4
xor eax, eax
jmp 0x415b5d
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.0045d27f
mov esp, ebp
pop ebp
ret 0x10