Function at 0x415240
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48578f
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x4b3014]
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 0x41529e
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 0x4152be
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.00419860
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x41538f
mov ecx, dword [ebp - 0xb0]
lea eax, [esi + 0x80]
push eax
push 6
mov edx, edi
call fcn.004197c0
add esp, 8
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x41538f
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 0x4153a2
lea ecx, [ebp - 0x68]
call fcn.0041d130
push dword [ebp - 0x28]
call fcn.0045ea90
mov eax, dword [ebp - 0x1c]
add esp, 4
jmp 0x415b4d
mov ax, word [ebp - 0x68]
test ax, ax
je 0x4153de
cmp ax, 0x15
je 0x4153ce
lea ecx, [ebp - 0x68]
call fcn.0041d130
push dword [ebp - 0x28]
call fcn.0045ea90
add esp, 4
mov eax, 0x80004005
jmp 0x415b4d
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.004197c0
add esp, 8
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x41538f
mov ecx, esi
call fcn.00415140
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x41538f
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x415444
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.0041c3e0
test al, al
je 0x41548b
cmp byte [ebp - 0x15], 0
je 0x41548b
cmp dword [ebp + 0x14], 0
jne 0x415a7d
cmp byte [esi + 0xb9], 0
jne 0x415a7d
cmp byte [esi + 0xb8], 0
je 0x41549d
push 8
call fcn.0045ea95
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.0045ea90
add esp, 4
xor eax, eax
jmp 0x415b4d
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 0x415387
mov ax, word [ebp - 0x68]
cmp ax, 0x13
jne 0x4154da
mov eax, dword [ebp - 0x60]
mov dword [esi + 0x78], eax
mov byte [esi + 0x7f], 1
jmp 0x4154e6
test ax, ax
jne 0x4153b1
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.00415080
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x41538f
lea eax, [esi + 0x7d]
mov ecx, esi
push eax
lea eax, [esi + 0x68]
push eax
push 0xb
push edi
call fcn.00415080
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x41538f
lea eax, [esi + 0x7e]
mov ecx, esi
push eax
lea eax, [esi + 0x70]
push eax
push 0xc
push edi
call fcn.00415080
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x41538f
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.004197c0
mov edi, eax
add esp, 8
test edi, edi
je 0x415579
push dword [ebp - 0x28]
call fcn.0045ea90
add esp, 4
mov eax, edi
jmp 0x415b4d
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.0041be10
mov edx, dword [ebp - 0x50]
test edx, edx
jne 0x4155b1
lea ecx, [ebp - 0x58]
call fcn.004030c0
jmp 0x4153b9
mov ecx, dword [esi + 0x30]
xor eax, eax
sub ecx, 1
je 0x415675
sub ecx, 1
jne 0x4155c7
lea eax, [edx - 1]
push eax
push 0
lea ecx, [ebp - 0x58]
call fcn.00402f60
lea ecx, [ebp - 0x58]
call fcn.00418ac0
xorps xmm0, xmm0
mov dword [ebp - 0x6c], 0
lea edx, [ebp - 0x58]
movq qword [ebp - 0x74], xmm0
lea ecx, [ebp - 0x74]
call fcn.00418c80
mov byte [ebp - 4], 6
cmp byte [ebp - 0x15], 0
jne 0x41574e
cmp byte [esi + 0x80], 0
jne 0x415623
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x41574e
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 0x41574e
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.00414f80
cmp byte [esi + 0x80], 0
je 0x41573f
cmp byte [esi + 0x5c], 0
je 0x4156b6
cmp byte [esi + 0x7e], 0
je 0x4156b6
lea edi, [esi + 0x70]
jmp 0x4156c6
mov eax, dword [esi + 0xac]
mov dword [ebp - 0x1c], eax
cmp edx, eax
jle 0x4155a4
xor edi, edi
cmp edi, eax
jge 0x4155c7
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.0041bae0
test eax, eax
jne 0x4155a4
mov eax, dword [ebp - 0x1c]
inc edi
jmp 0x415688
mov edi, dword [esi + 0x10]
cmp byte [edi + 0x2c], 0
je 0x4156c4
add edi, 0x24
jmp 0x4156c6
xor edi, edi
cmp byte [esi + 0x5b], 0
je 0x4156dd
cmp byte [esi + 0x7d], 0
je 0x4156dd
lea eax, [esi + 0x68]
mov dword [ebp - 0xb0], eax
jmp 0x4156e7
mov dword [ebp - 0xb0], 0
cmp byte [esi + 0x5a], 0
je 0x4156fb
cmp byte [esi + 0x7c], 0
je 0x4156fb
lea eax, [esi + 0x60]
mov dword [ebp - 0x1c], eax
jmp 0x415702
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 0x41573f
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.0045ea90
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.00415fb0
add esp, 4
mov byte [ebp - 4], 8
cmp byte [esi + 0x80], 0
je 0x4157c4
lea eax, [ebp - 0x38]
push eax
lea ecx, [esi + 0x38]
call fcn.00403200
cmp byte [ebp - 0x15], 0
je 0x415797
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push dword [ebp - 0x38]
call fcn.0045ea90
push dword [ebp - 0x74]
call fcn.0045ea90
add esp, 8
lea ecx, [ebp - 0x58]
call fcn.004030c0
push dword [ebp - 0x28]
call fcn.0045ea90
add esp, 4
xor eax, eax
jmp 0x415b4d
cmp byte [esi + 0x58], 0
jne 0x4158da
lea ecx, [ebp - 0xac]
call fcn.00401a70
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xac]
push dword [ebp - 0x38]
call fcn.0041ce40
test al, al
je 0x4158c8
mov eax, dword [esi + 0x34]
sub eax, 2
je 0x4158a5
mov ecx, dword [ebp - 0x38]
call fcn.0041cc20
test al, al
jne 0x4158c8
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
push 0x499850
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.00415fb0
add esp, 4
mov byte [ebp - 4], 0xc
push dword [ebp - 0x64]
call fcn.0045ea90
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.0045ea90
push dword [ebp - 0x84]
call fcn.0045ea90
push dword [ebp - 0x38]
call fcn.0045ea90
push dword [ebp - 0x74]
call fcn.0045ea90
add esp, 0x10
lea ecx, [ebp - 0x58]
call fcn.004030c0
push dword [ebp - 0x28]
call fcn.0045ea90
add esp, 4
test esi, esi
je 0x415496
mov eax, esi
jmp 0x415b4d
push dword [ebp - 0x84]
call fcn.0045ea90
push dword [ebp - 0x38]
call fcn.0045ea90
push dword [ebp - 0x74]
call fcn.0045ea90
add esp, 0xc
jmp 0x4157aa
mov byte [ebp - 4], 8
push dword [ebp - 0x84]
call fcn.0045ea90
add esp, 4
cmp byte [ebp - 0x15], 0
jne 0x415a50
push 0x18
call fcn.0045ea95
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.00414a00
test al, al
jne 0x4159cd
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.00416030
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.0045ea90
add esp, 4
test esi, esi
je 0x4159be
mov byte [ebp - 4], 0xf
mov eax, dword [edi]
push edi
call dword [eax + 8]
push dword [ebp - 0x38]
call fcn.0045ea90
push dword [ebp - 0x74]
call fcn.0045ea90
add esp, 8
lea ecx, [ebp - 0x58]
call fcn.004030c0
push dword [ebp - 0x28]
call fcn.0045ea90
add esp, 4
mov eax, esi
jmp 0x415b4d
mov byte [ebp - 4], 0x10
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x415797
cmp byte [esi + 0x58], 0
je 0x415a28
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 0x415a28
mov byte [ebp - 4], 0x11
mov eax, dword [edi]
push edi
call dword [eax + 8]
push dword [ebp - 0x38]
call fcn.0045ea90
push dword [ebp - 0x74]
call fcn.0045ea90
add esp, 8
lea ecx, [ebp - 0x58]
call fcn.004030c0
push dword [ebp - 0x28]
call fcn.0045ea90
mov eax, dword [ebp - 0x2c]
add esp, 4
jmp 0x415b4d
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [esi + 0x98]
test ecx, ecx
je 0x415a3e
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.0045ea90
push dword [ebp - 0x74]
call fcn.0045ea90
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.004030c0
jmp 0x415a89
mov eax, dword [ebp - 0xb4]
mov dword [eax], 0
cmp byte [esi + 0xba], 0
je 0x4157b2
push 0x20
call fcn.0045ea95
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 0x415ae3
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 0x415b12
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.0045ea90
add esp, 4
xor eax, eax
jmp 0x415b4d
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.0045ea7f
mov esp, ebp
pop ebp
ret 0x10