Function at 0x415170
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48235f
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x4ad014]
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 0x4151ce
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 0x4151ee
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.004039a0
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.00419790
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x4152bf
mov ecx, dword [ebp - 0xb0]
lea eax, [esi + 0x80]
push eax
push 6
mov edx, edi
call fcn.004196f0
add esp, 8
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x4152bf
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0x44]
call fcn.004031e0
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 0x4152d2
lea ecx, [ebp - 0x68]
call fcn.0041d060
push dword [ebp - 0x28]
call fcn.0045b660
mov eax, dword [ebp - 0x1c]
add esp, 4
jmp 0x415a7d
mov ax, word [ebp - 0x68]
test ax, ax
je 0x41530e
cmp ax, 0x15
je 0x4152fe
lea ecx, [ebp - 0x68]
call fcn.0041d060
push dword [ebp - 0x28]
call fcn.0045b660
add esp, 4
mov eax, 0x80004005
jmp 0x415a7d
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.0041d060
mov ecx, dword [ebp - 0xb0]
lea eax, [esi + 0x5d]
push eax
push 0xf
mov edx, edi
call fcn.004196f0
add esp, 8
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x4152bf
mov ecx, esi
call fcn.00415070
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x4152bf
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x415374
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.0041c310
test al, al
je 0x4153bb
cmp byte [ebp - 0x15], 0
je 0x4153bb
cmp dword [ebp + 0x14], 0
jne 0x4159ad
cmp byte [esi + 0xb9], 0
jne 0x4159ad
cmp byte [esi + 0xb8], 0
je 0x4153cd
push 8
call fcn.0045b665
mov esi, eax
add esp, 4
mov dword [esi + 4], 0
push esi
mov dword [esi], vtable.CStdOutFileStream.0
call fcn.00401ba0
mov eax, dword [ebp - 0xb4]
mov dword [eax], esi
push dword [ebp - 0x28]
call fcn.0045b660
add esp, 4
xor eax, eax
jmp 0x415a7d
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 0x4152b7
mov ax, word [ebp - 0x68]
cmp ax, 0x13
jne 0x41540a
mov eax, dword [ebp - 0x60]
mov dword [esi + 0x78], eax
mov byte [esi + 0x7f], 1
jmp 0x415416
test ax, ax
jne 0x4152e1
mov byte [esi + 0x7f], al
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.0041d060
lea eax, [esi + 0x7c]
mov ecx, esi
push eax
lea eax, [esi + 0x60]
push eax
push 0xa
push edi
call fcn.00414fb0
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x4152bf
lea eax, [esi + 0x7d]
mov ecx, esi
push eax
lea eax, [esi + 0x68]
push eax
push 0xb
push edi
call fcn.00414fb0
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x4152bf
lea eax, [esi + 0x7e]
mov ecx, esi
push eax
lea eax, [esi + 0x70]
push eax
push 0xc
push edi
call fcn.00414fb0
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x4152bf
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.004196f0
mov edi, eax
add esp, 8
test edi, edi
je 0x4154a9
push dword [ebp - 0x28]
call fcn.0045b660
add esp, 4
mov eax, edi
jmp 0x415a7d
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x58]
movups xmmword [ebp - 0x58], xmm0
call fcn.00403120
mov edx, ecx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.0041bd40
mov edx, dword [ebp - 0x50]
test edx, edx
jne 0x4154e1
lea ecx, [ebp - 0x58]
call fcn.004030a0
jmp 0x4152e9
mov ecx, dword [esi + 0x30]
xor eax, eax
sub ecx, 1
je 0x4155a5
sub ecx, 1
jne 0x4154f7
lea eax, [edx - 1]
push eax
push 0
lea ecx, [ebp - 0x58]
call fcn.00402f40
lea ecx, [ebp - 0x58]
call fcn.004189f0
xorps xmm0, xmm0
mov dword [ebp - 0x6c], 0
lea edx, [ebp - 0x58]
movq qword [ebp - 0x74], xmm0
lea ecx, [ebp - 0x74]
call fcn.00418bb0
mov byte [ebp - 4], 6
cmp byte [ebp - 0x15], 0
jne 0x41567e
cmp byte [esi + 0x80], 0
jne 0x415553
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x41567e
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 0x41567e
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x44]
movq qword [ebp - 0x44], xmm0
call fcn.00403340
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x58]
mov ecx, esi
push eax
call fcn.00414eb0
cmp byte [esi + 0x80], 0
je 0x41566f
cmp byte [esi + 0x5c], 0
je 0x4155e6
cmp byte [esi + 0x7e], 0
je 0x4155e6
lea edi, [esi + 0x70]
jmp 0x4155f6
mov eax, dword [esi + 0xac]
mov dword [ebp - 0x1c], eax
cmp edx, eax
jle 0x4154d4
xor edi, edi
cmp edi, eax
jge 0x4154f7
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.0041ba10
test eax, eax
jne 0x4154d4
mov eax, dword [ebp - 0x1c]
inc edi
jmp 0x4155b8
mov edi, dword [esi + 0x10]
cmp byte [edi + 0x2c], 0
je 0x4155f4
add edi, 0x24
jmp 0x4155f6
xor edi, edi
cmp byte [esi + 0x5b], 0
je 0x41560d
cmp byte [esi + 0x7d], 0
je 0x41560d
lea eax, [esi + 0x68]
mov dword [ebp - 0xb0], eax
jmp 0x415617
mov dword [ebp - 0xb0], 0
cmp byte [esi + 0x5a], 0
je 0x41562b
cmp byte [esi + 0x7c], 0
je 0x41562b
lea eax, [esi + 0x60]
mov dword [ebp - 0x1c], eax
jmp 0x415632
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 0x41566f
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.0045b660
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.00415ee0
add esp, 4
mov byte [ebp - 4], 8
cmp byte [esi + 0x80], 0
je 0x4156f4
lea eax, [ebp - 0x38]
push eax
lea ecx, [esi + 0x38]
call fcn.004031e0
cmp byte [ebp - 0x15], 0
je 0x4156c7
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push dword [ebp - 0x38]
call fcn.0045b660
push dword [ebp - 0x74]
call fcn.0045b660
add esp, 8
lea ecx, [ebp - 0x58]
call fcn.004030a0
push dword [ebp - 0x28]
call fcn.0045b660
add esp, 4
xor eax, eax
jmp 0x415a7d
cmp byte [esi + 0x58], 0
jne 0x41580a
lea ecx, [ebp - 0xac]
call fcn.00401a50
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xac]
push dword [ebp - 0x38]
call fcn.0041cd70
test al, al
je 0x4157f8
mov eax, dword [esi + 0x34]
sub eax, 2
je 0x4157d5
mov ecx, dword [ebp - 0x38]
call fcn.0041cb50
test al, al
jne 0x4157f8
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
push 0x495830
lea ecx, [ebp - 0x64]
movq qword [ebp - 0x44], xmm0
call fcn.004032e0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xa
push ecx
mov edx, eax
lea ecx, [ebp - 0x44]
call fcn.00415ee0
add esp, 4
mov byte [ebp - 4], 0xc
push dword [ebp - 0x64]
call fcn.0045b660
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.0045b660
push dword [ebp - 0x84]
call fcn.0045b660
push dword [ebp - 0x38]
call fcn.0045b660
push dword [ebp - 0x74]
call fcn.0045b660
add esp, 0x10
lea ecx, [ebp - 0x58]
call fcn.004030a0
push dword [ebp - 0x28]
call fcn.0045b660
add esp, 4
test esi, esi
je 0x4153c6
mov eax, esi
jmp 0x415a7d
push dword [ebp - 0x84]
call fcn.0045b660
push dword [ebp - 0x38]
call fcn.0045b660
push dword [ebp - 0x74]
call fcn.0045b660
add esp, 0xc
jmp 0x4156da
mov byte [ebp - 4], 8
push dword [ebp - 0x84]
call fcn.0045b660
add esp, 4
cmp byte [ebp - 0x15], 0
jne 0x415980
push 0x18
call fcn.0045b665
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.00414930
test al, al
jne 0x4158fd
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.00415f60
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.0045b660
add esp, 4
test esi, esi
je 0x4158ee
mov byte [ebp - 4], 0xf
mov eax, dword [edi]
push edi
call dword [eax + 8]
push dword [ebp - 0x38]
call fcn.0045b660
push dword [ebp - 0x74]
call fcn.0045b660
add esp, 8
lea ecx, [ebp - 0x58]
call fcn.004030a0
push dword [ebp - 0x28]
call fcn.0045b660
add esp, 4
mov eax, esi
jmp 0x415a7d
mov byte [ebp - 4], 0x10
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x4156c7
cmp byte [esi + 0x58], 0
je 0x415958
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 0x415958
mov byte [ebp - 4], 0x11
mov eax, dword [edi]
push edi
call dword [eax + 8]
push dword [ebp - 0x38]
call fcn.0045b660
push dword [ebp - 0x74]
call fcn.0045b660
add esp, 8
lea ecx, [ebp - 0x58]
call fcn.004030a0
push dword [ebp - 0x28]
call fcn.0045b660
mov eax, dword [ebp - 0x2c]
add esp, 4
jmp 0x415a7d
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [esi + 0x98]
test ecx, ecx
je 0x41596e
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.004031e0
push dword [ebp - 0x38]
call fcn.0045b660
push dword [ebp - 0x74]
call fcn.0045b660
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.004030a0
jmp 0x4159b9
mov eax, dword [ebp - 0xb4]
mov dword [eax], 0
cmp byte [esi + 0xba], 0
je 0x4156e2
push 0x20
call fcn.0045b665
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.00407900
mov edi, dword [esi + 0x9c]
mov dword [ebp - 0x2c], edi
test edi, edi
je 0x415a13
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.004072c0
mov eax, dword [ebp - 0xb4]
mov ecx, dword [eax]
test ecx, ecx
je 0x415a42
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.0045b660
add esp, 4
xor eax, eax
jmp 0x415a7d
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.0045b64f
mov esp, ebp
pop ebp
ret 0x10