Function at 0x665830
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6df3ae
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push esi
mov eax, dword [0x75aa5c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb4], ecx
lea ecx, [ebp - 0x24]
call fcn.00668bc0
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], 0
jmp 0x665880
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0xb4]
add ecx, 0x25c
call fcn.00668cf0
cmp dword [ebp - 0x28], eax
jae 0x665a07
mov ecx, dword [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0xb4]
add ecx, 0x25c
call fcn.00668d30
push eax
lea edx, [ebp - 0x5c]
push edx
mov ecx, dword [ebp - 0xb4]
add ecx, 0x274
call fcn.00668cc0
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x64]
push eax
mov ecx, dword [ebp - 0xb4]
add ecx, 0x274
call fcn.00668c90
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x30]
push eax
call fcn.00669d90
add esp, 0x18
lea ecx, [ebp - 0x6c]
push ecx
mov ecx, dword [ebp - 0xb4]
add ecx, 0x274
call fcn.00668cc0
push eax
lea ecx, [ebp - 0x30]
call fcn.00668f30
movzx edx, al
test edx, edx
je 0x665a02
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0xb4]
add ecx, 0x25c
call fcn.00668d30
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp + 8]
jne 0x665a02
mov edx, dword [ebp - 0x28]
push edx
mov ecx, dword [ebp - 0xb4]
add ecx, 0x25c
call fcn.00668d30
cmp dword [eax + 0x68], 1
jne 0x66597c
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0xb4]
add ecx, 0x25c
call fcn.00668d30
push eax
mov ecx, dword [ebp - 0xb4]
call fcn.00668930
jmp 0x6659e4
mov ecx, dword [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0xb4]
add ecx, 0x25c
call fcn.00668d30
cmp dword [eax + 0x68], 0
jne 0x6659e4
push 1
push 0
mov edx, dword [ebp - 0x28]
push edx
mov ecx, dword [ebp - 0xb4]
add ecx, 0x25c
call fcn.00668d30
push eax
mov ecx, dword [ebp - 0xb4]
call fcn.00666030
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0xb4]
add ecx, 0x25c
call fcn.00668d30
add eax, 0xc4
mov ecx, eax
call fcn.00405490
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0xb4]
add ecx, 0x25c
call fcn.00668d30
push eax
lea ecx, [ebp - 0x24]
call fcn.00668da0
jmp 0x665877
mov dword [ebp - 0x34], 0
jmp 0x665a19
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0x34], edx
lea ecx, [ebp - 0x24]
call fcn.00668cf0
cmp dword [ebp - 0x34], eax
jae 0x665ae0
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x24]
call fcn.00668d30
push eax
lea ecx, [ebp - 0x74]
push ecx
mov ecx, dword [ebp - 0xb4]
add ecx, 0x25c
call fcn.00668cc0
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x7c]
push ecx
mov ecx, dword [ebp - 0xb4]
add ecx, 0x25c
call fcn.00668c90
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00669d90
add esp, 0x18
lea edx, [ebp - 0x84]
push edx
mov ecx, dword [ebp - 0xb4]
add ecx, 0x25c
call fcn.00668cc0
push eax
lea ecx, [ebp - 0x3c]
call fcn.00668f80
movzx eax, al
test eax, eax
je 0x665adb
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x8c], ecx
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x88], edx
mov eax, dword [ebp - 0x88]
push eax
mov ecx, dword [ebp - 0x8c]
push ecx
lea edx, [ebp - 0x94]
push edx
mov ecx, dword [ebp - 0xb4]
add ecx, 0x25c
call fcn.00668e20
jmp 0x665a10
mov dword [ebp - 0x40], 0
jmp 0x665af2
mov eax, dword [ebp - 0x40]
add eax, 1
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0xb4]
add ecx, 0x274
call fcn.00668cf0
cmp dword [ebp - 0x40], eax
jae 0x665e02
mov ecx, dword [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0xb4]
add ecx, 0x274
call fcn.00668d30
push eax
lea edx, [ebp - 0x9c]
push edx
mov ecx, dword [ebp - 0xb4]
add ecx, 0x25c
call fcn.00668cc0
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
lea eax, [ebp - 0xa4]
push eax
mov ecx, dword [ebp - 0xb4]
add ecx, 0x25c
call fcn.00668c90
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.00669d90
add esp, 0x18
lea ecx, [ebp - 0xac]
push ecx
mov ecx, dword [ebp - 0xb4]
add ecx, 0x25c
call fcn.00668cc0
push eax
lea ecx, [ebp - 0x48]
call fcn.00668f80
movzx edx, al
test edx, edx
je 0x665d99
lea ecx, [ebp - 0x48]
call fcn.00668f10
mov esi, eax
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0xb4]
add ecx, 0x274
call fcn.00668d30
mov ecx, dword [esi + 4]
cmp ecx, dword [eax + 4]
jne 0x665c31
mov edx, dword [ebp - 0x40]
push edx
mov ecx, dword [ebp - 0xb4]
add ecx, 0x274
call fcn.00668d30
add eax, 0xa0
push eax
lea ecx, [ebp - 0x48]
call fcn.00668f10
add eax, 0xa0
push eax
call fcn.00669df0
add esp, 8
movzx eax, al
test eax, eax
je 0x665c31
lea ecx, [ebp - 0x48]
call fcn.00668f10
cmp dword [eax + 0x68], 2
jne 0x665c2c
lea ecx, [ebp - 0x48]
call fcn.00668ef0
push eax
mov ecx, dword [ebp - 0xb4]
call fcn.00668540
test eax, eax
jne 0x665c2c
lea ecx, [ebp - 0x48]
call fcn.00668f10
mov dword [eax + 0x68], 1
jmp 0x665d97
lea ecx, [ebp - 0x48]
call fcn.00668f10
mov esi, eax
mov ecx, dword [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0xb4]
add ecx, 0x274
call fcn.00668d30
mov edx, dword [esi + 4]
cmp edx, dword [eax + 4]
jne 0x665d04
lea ecx, [ebp - 0x48]
call fcn.00668f10
mov eax, dword [eax + 0x68]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0xb4]
add ecx, 0x274
call fcn.00668d30
push eax
lea ecx, [ebp - 0x48]
call fcn.00668ef0
mov ecx, eax
call fcn.00668a70
lea ecx, [ebp - 0x48]
call fcn.00668f10
mov edx, dword [ebp - 0x4c]
mov dword [eax + 0x68], edx
cmp dword [ebp - 0x4c], 0
jne 0x665cca
push 0
push 0
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0xb4]
add ecx, 0x274
call fcn.00668d30
push eax
mov ecx, dword [ebp - 0xb4]
call fcn.00666030
jmp 0x665cff
lea ecx, [ebp - 0x48]
call fcn.00668f10
cmp dword [eax + 0x68], 2
jne 0x665cff
lea ecx, [ebp - 0x48]
call fcn.00668ef0
push eax
mov ecx, dword [ebp - 0xb4]
call fcn.00668540
test eax, eax
jne 0x665cff
lea ecx, [ebp - 0x48]
call fcn.00668f10
mov dword [eax + 0x68], 1
jmp 0x665d97
lea ecx, [ebp - 0x48]
call fcn.00668f10
mov ecx, dword [eax + 0x68]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x40]
push edx
mov ecx, dword [ebp - 0xb4]
add ecx, 0x274
call fcn.00668d30
push eax
lea ecx, [ebp - 0x48]
call fcn.00668ef0
mov ecx, eax
call fcn.00668a70
lea ecx, [ebp - 0x48]
call fcn.00668f10
mov ecx, dword [ebp - 0x50]
mov dword [eax + 0x68], ecx
cmp dword [ebp - 0x50], 1
jne 0x665d5f
lea ecx, [ebp - 0x48]
call fcn.00668ef0
push eax
mov ecx, dword [ebp - 0xb4]
call fcn.00668930
lea ecx, [ebp - 0x48]
call fcn.00668ef0
push eax
mov ecx, dword [ebp - 0xb4]
call fcn.00668540
test eax, eax
jne 0x665d88
lea ecx, [ebp - 0x48]
call fcn.00668f10
mov dword [eax + 0x68], 1
jmp 0x665d97
lea ecx, [ebp - 0x48]
call fcn.00668f10
mov dword [eax + 0x68], 2
jmp 0x665dfd
mov edx, dword [ebp - 0x40]
push edx
mov ecx, dword [ebp - 0xb4]
add ecx, 0x274
call fcn.00668d30
push eax
mov ecx, dword [ebp - 0xb4]
add ecx, 0x25c
call fcn.00668da0
mov ecx, dword [ebp - 0xb4]
add ecx, 0x25c
call fcn.00668d70
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0xb4]
call fcn.00668540
test eax, eax
jne 0x665df3
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 0x68], 1
jmp 0x665dfd
mov edx, dword [ebp - 0x54]
mov dword [edx + 0x68], 2
jmp 0x665ae9
mov dword [ebp - 0xb0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00668c30
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4