Function at 0x415280
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459f25
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x47800c]
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 0x4152de
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 0x4152fe
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.00403970
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.004198c0
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x4153cf
mov ecx, dword [ebp - 0xb0]
lea eax, [esi + 0x80]
push eax
push 6
mov edx, edi
call fcn.00419820
add esp, 8
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x4153cf
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0x44]
call fcn.004031b0
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 0x4153e2
lea ecx, [ebp - 0x68]
call fcn.0041d130
push dword [ebp - 0x28]
call fcn.00456908
mov eax, dword [ebp - 0x1c]
add esp, 4
jmp 0x415b8d
mov ax, word [ebp - 0x68]
test ax, ax
je 0x41541e
cmp ax, 0x15
je 0x41540e
lea ecx, [ebp - 0x68]
call fcn.0041d130
push dword [ebp - 0x28]
call fcn.00456908
add esp, 4
mov eax, 0x80004005
jmp 0x415b8d
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.0041d130
mov ecx, dword [ebp - 0xb0]
lea eax, [esi + 0x5d]
push eax
push 0xf
mov edx, edi
call fcn.00419820
add esp, 8
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x4153cf
mov ecx, esi
call fcn.00415180
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x4153cf
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x415484
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.0041c3d0
test al, al
je 0x4154cb
cmp byte [ebp - 0x15], 0
je 0x4154cb
cmp dword [ebp + 0x14], 0
jne 0x415abd
cmp byte [esi + 0xb9], 0
jne 0x415abd
cmp byte [esi + 0xb8], 0
je 0x4154dd
push 8
call fcn.0045690d
mov esi, eax
add esp, 4
mov dword [esi + 4], 0
push esi
mov dword [esi], vtable.CStdOutFileStream.0
call fcn.00401b70
mov eax, dword [ebp - 0xb4]
mov dword [eax], esi
push dword [ebp - 0x28]
call fcn.00456908
add esp, 4
xor eax, eax
jmp 0x415b8d
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 0x4153c7
mov ax, word [ebp - 0x68]
cmp ax, 0x13
jne 0x41551a
mov eax, dword [ebp - 0x60]
mov dword [esi + 0x78], eax
mov byte [esi + 0x7f], 1
jmp 0x415526
test ax, ax
jne 0x4153f1
mov byte [esi + 0x7f], al
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.0041d130
lea eax, [esi + 0x7c]
mov ecx, esi
push eax
lea eax, [esi + 0x60]
push eax
push 0xa
push edi
call fcn.004150c0
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x4153cf
lea eax, [esi + 0x7d]
mov ecx, esi
push eax
lea eax, [esi + 0x68]
push eax
push 0xb
push edi
call fcn.004150c0
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x4153cf
lea eax, [esi + 0x7e]
mov ecx, esi
push eax
lea eax, [esi + 0x70]
push eax
push 0xc
push edi
call fcn.004150c0
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x4153cf
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.00419820
mov edi, eax
add esp, 8
test edi, edi
je 0x4155b9
push dword [ebp - 0x28]
call fcn.00456908
add esp, 4
mov eax, edi
jmp 0x415b8d
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x58]
movups xmmword [ebp - 0x58], xmm0
call fcn.004030f0
mov edx, ecx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.0041be00
mov edx, dword [ebp - 0x50]
test edx, edx
jne 0x4155f1
lea ecx, [ebp - 0x58]
call fcn.00403070
jmp 0x4153f9
mov ecx, dword [esi + 0x30]
xor eax, eax
sub ecx, 1
je 0x4156b5
sub ecx, 1
jne 0x415607
lea eax, [edx - 1]
push eax
push 0
lea ecx, [ebp - 0x58]
call fcn.00402f10
lea ecx, [ebp - 0x58]
call fcn.00418b10
xorps xmm0, xmm0
mov dword [ebp - 0x6c], 0
lea edx, [ebp - 0x58]
movq qword [ebp - 0x74], xmm0
lea ecx, [ebp - 0x74]
call fcn.00418cd0
mov byte [ebp - 4], 6
cmp byte [ebp - 0x15], 0
jne 0x41578e
cmp byte [esi + 0x80], 0
jne 0x415663
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x41578e
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 0x41578e
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x44]
movq qword [ebp - 0x44], xmm0
call fcn.00403310
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x58]
mov ecx, esi
push eax
call fcn.00414fc0
cmp byte [esi + 0x80], 0
je 0x41577f
cmp byte [esi + 0x5c], 0
je 0x4156f6
cmp byte [esi + 0x7e], 0
je 0x4156f6
lea edi, [esi + 0x70]
jmp 0x415706
mov eax, dword [esi + 0xac]
mov dword [ebp - 0x1c], eax
cmp edx, eax
jle 0x4155e4
xor edi, edi
cmp edi, eax
jge 0x415607
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.0041ba60
test eax, eax
jne 0x4155e4
mov eax, dword [ebp - 0x1c]
inc edi
jmp 0x4156c8
mov edi, dword [esi + 0x10]
cmp byte [edi + 0x2c], 0
je 0x415704
add edi, 0x24
jmp 0x415706
xor edi, edi
cmp byte [esi + 0x5b], 0
je 0x41571d
cmp byte [esi + 0x7d], 0
je 0x41571d
lea eax, [esi + 0x68]
mov dword [ebp - 0xb0], eax
jmp 0x415727
mov dword [ebp - 0xb0], 0
cmp byte [esi + 0x5a], 0
je 0x41573b
cmp byte [esi + 0x7c], 0
je 0x41573b
lea eax, [esi + 0x60]
mov dword [ebp - 0x1c], eax
jmp 0x415742
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 0x41577f
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.00456908
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.00415ff0
add esp, 4
mov byte [ebp - 4], 8
cmp byte [esi + 0x80], 0
je 0x415804
lea eax, [ebp - 0x38]
push eax
lea ecx, [esi + 0x38]
call fcn.004031b0
cmp byte [ebp - 0x15], 0
je 0x4157d7
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push dword [ebp - 0x38]
call fcn.00456908
push dword [ebp - 0x74]
call fcn.00456908
add esp, 8
lea ecx, [ebp - 0x58]
call fcn.00403070
push dword [ebp - 0x28]
call fcn.00456908
add esp, 4
xor eax, eax
jmp 0x415b8d
cmp byte [esi + 0x58], 0
jne 0x41591a
lea ecx, [ebp - 0xac]
call fcn.00401a20
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xac]
push dword [ebp - 0x38]
call fcn.0041ce30
test al, al
je 0x415908
mov eax, dword [esi + 0x34]
sub eax, 2
je 0x4158e5
mov ecx, dword [ebp - 0x38]
call fcn.0041cc10
test al, al
jne 0x415908
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
push 0x460650
lea ecx, [ebp - 0x64]
movq qword [ebp - 0x44], xmm0
call fcn.004032b0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xa
push ecx
mov edx, eax
lea ecx, [ebp - 0x44]
call fcn.00415ff0
add esp, 4
mov byte [ebp - 4], 0xc
push dword [ebp - 0x64]
call fcn.00456908
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.00456908
push dword [ebp - 0x84]
call fcn.00456908
push dword [ebp - 0x38]
call fcn.00456908
push dword [ebp - 0x74]
call fcn.00456908
add esp, 0x10
lea ecx, [ebp - 0x58]
call fcn.00403070
push dword [ebp - 0x28]
call fcn.00456908
add esp, 4
test esi, esi
je 0x4154d6
mov eax, esi
jmp 0x415b8d
push dword [ebp - 0x84]
call fcn.00456908
push dword [ebp - 0x38]
call fcn.00456908
push dword [ebp - 0x74]
call fcn.00456908
add esp, 0xc
jmp 0x4157ea
mov byte [ebp - 4], 8
push dword [ebp - 0x84]
call fcn.00456908
add esp, 4
cmp byte [ebp - 0x15], 0
jne 0x415a90
push 0x18
call fcn.0045690d
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.00414a40
test al, al
jne 0x415a0d
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.00416070
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.00456908
add esp, 4
test esi, esi
je 0x4159fe
mov byte [ebp - 4], 0xf
mov eax, dword [edi]
push edi
call dword [eax + 8]
push dword [ebp - 0x38]
call fcn.00456908
push dword [ebp - 0x74]
call fcn.00456908
add esp, 8
lea ecx, [ebp - 0x58]
call fcn.00403070
push dword [ebp - 0x28]
call fcn.00456908
add esp, 4
mov eax, esi
jmp 0x415b8d
mov byte [ebp - 4], 0x10
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x4157d7
cmp byte [esi + 0x58], 0
je 0x415a68
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 0x415a68
mov byte [ebp - 4], 0x11
mov eax, dword [edi]
push edi
call dword [eax + 8]
push dword [ebp - 0x38]
call fcn.00456908
push dword [ebp - 0x74]
call fcn.00456908
add esp, 8
lea ecx, [ebp - 0x58]
call fcn.00403070
push dword [ebp - 0x28]
call fcn.00456908
mov eax, dword [ebp - 0x2c]
add esp, 4
jmp 0x415b8d
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [esi + 0x98]
test ecx, ecx
je 0x415a7e
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.004031b0
push dword [ebp - 0x38]
call fcn.00456908
push dword [ebp - 0x74]
call fcn.00456908
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00403070
jmp 0x415ac9
mov eax, dword [ebp - 0xb4]
mov dword [eax], 0
cmp byte [esi + 0xba], 0
je 0x4157f2
push 0x20
call fcn.0045690d
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.004078d0
mov edi, dword [esi + 0x9c]
mov dword [ebp - 0x2c], edi
test edi, edi
je 0x415b23
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.00407290
mov eax, dword [ebp - 0xb4]
mov ecx, dword [eax]
test ecx, ecx
je 0x415b52
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.00456908
add esp, 4
xor eax, eax
jmp 0x415b8d
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.004568f7
mov esp, ebp
pop ebp
ret 0x10