Function at 0x10016700
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b7723
mov eax, dword fs:[0]
push eax
sub esp, 0x1d8
mov eax, dword [0x100f6458]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x11c], ebx
cmp dword [ebx + 0x10], edi
je 0x1001761c
xor eax, eax
mov dword [ebp - 0xf8], edi
push eax
mov dword [ebp - 0xf4], edi
lea ecx, [ebp - 0x108]
push 0x100c5ec0
mov dword [ebp - 0xf8], edi
mov dword [ebp - 0xf4], 7
mov word [ebp - 0x108], ax
call fcn.1000c5b0
mov dword [ebp - 4], edi
mov ecx, 0x100c5cec
xor eax, eax
mov dword [ebp - 0xdc], edi
mov dword [ebp - 0xd8], edi
mov dword [ebp - 0xdc], edi
mov dword [ebp - 0xd8], 7
lea edx, [ecx + 2]
mov word [ebp - 0xec], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100167b0
sub ecx, edx
sar ecx, 1
push ecx
push 0x100c5cec
lea ecx, [ebp - 0xec]
call fcn.1000c5b0
mov byte [ebp - 4], 1
mov ecx, str.last_script_url
xor eax, eax
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 7
lea edx, [ecx + 2]
mov word [ebp - 0x8c], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016801
sub ecx, edx
sar ecx, 1
push ecx
push str.last_script_url
lea ecx, [ebp - 0x8c]
call fcn.1000c5b0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.10031200
add esp, 0x10
mov edx, eax
mov byte [ebp - 4], 3
cmp dword [edx + 0x14], 8
jb 0x10016857
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0xc4], 0
xor eax, eax
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 7
mov word [ebp - 0xd4], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016890
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xd4]
call fcn.1000c5b0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xa4]
call fcn.10005200
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x8c]
call fcn.10005200
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xec]
call fcn.10005200
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x108]
call fcn.10005200
lea eax, [ebp - 0x14c]
push eax
call fcn.1002f9c0
add esp, 4
mov byte [ebp - 4], 9
mov ecx, eax
push 1
push 0x100c5ec4
call fcn.100182f0
mov edx, str.avoid.xua
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x10016911
sub edx, esi
mov ecx, eax
sar edx, 1
push edx
push str.avoid.xua
call fcn.100182f0
push eax
lea ecx, [ebp - 0xbc]
call fcn.10003de0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x14c]
call fcn.10005200
call fcn.100429f0
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x10016c55
push 0x51
mov dword [ebp - 0xf8], eax
lea ecx, [ebp - 0x108]
mov dword [ebp - 0xf4], eax
push 0x100c5ec8
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xf4], 0xf
mov byte [ebp - 0x108], al
call fcn.1000c4b0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xec]
push 3
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 0
push 0x100c5f1c
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 0xf
mov byte [ebp - 0xec], 0
call fcn.1000c4b0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x1e4]
push 1
push 2
call fcn.10003b50
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x108]
push 0xffffffffffffffff
push 0x100c545c
call fcn.1000dbb0
push 0xffffffffffffffff
push 0x100c5460
lea ecx, [ebp - 0x108]
mov edi, eax
call fcn.1000dbb0
push 0x64
mov esi, eax
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.10089510
add esp, 0xc
cmp esi, 0xffffffff
je 0x10016afb
lea eax, [esi - 1]
cmp edi, eax
jae 0x10016afb
lea edx, [edi + 1]
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
cmp eax, edx
jb 0x1001763a
sub esi, edi
sub eax, edx
lea ecx, [esi - 1]
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0xf4], 0x10
lea eax, [ebp - 0x108]
cmovae eax, dword [ebp - 0x108]
push ecx
add eax, edx
lea ecx, [ebp - 0x8c]
push eax
call fcn.1000c4b0
cmp dword [ebp - 0x78], 0x10
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x10c], 1
cmovae eax, dword [ebp - 0x8c]
push eax
push 0x38
lea eax, [ebp - 0x74]
push str.__4d___s_
push eax
call fcn.10003530
mov edi, 1
add esp, 0x10
mov dword [ebp - 0x10c], edi
and edi, 0xfffffffe
mov dword [ebp - 0x10c], edi
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x8c]
call fcn.10005180
jmp 0x10016b14
push 0x38
lea eax, [ebp - 0x74]
push str.__4d_
push eax
call fcn.10003530
mov edi, dword [ebp - 0x10c]
add esp, 0xc
cmp dword [ebp - 0xd8], 0x10
lea eax, [ebp - 0xec]
cmovae eax, dword [ebp - 0xec]
push eax
lea eax, [ebp - 0x1e4]
push eax
call fcn.10005ff0
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x1e4]
push eax
call fcn.10005ff0
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x1e4]
push str.script_url
push eax
call fcn.10005ff0
add esp, 0x18
mov ecx, ebx
cmp dword [ebx + 0x14], 8
jb 0x10016b67
mov ecx, dword [ebx]
test ecx, ecx
mov eax, str._null_
cmovne eax, ecx
push eax
lea eax, [ebp - 0x1e4]
push eax
call fcn.10002cd0
add esp, 8
call fcn.100429f0
lea ecx, [ebp - 0x1e4]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x1e4]
call fcn.100062e0
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0xd8]
cmp edx, 0x10
jb 0x10016be1
mov ecx, dword [ebp - 0xec]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10016bd7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001763f
push edx
push ecx
call fcn.10065f62
add esp, 8
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 0xf
mov byte [ebp - 0xec], 0
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0xf4]
cmp edx, 0x10
jb 0x10016c3a
mov ecx, dword [ebp - 0x108]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10016c30
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017644
push edx
push ecx
call fcn.10065f62
add esp, 8
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 0xf
mov byte [ebp - 0x108], 0
cmp dword [ebp - 0xa8], 8
lea eax, [ebp - 0xbc]
cmovae eax, dword [ebp - 0xbc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10016e65
lea eax, [ebp - 0xd4]
push ebx
push eax
call fcn.1000e430
add esp, 8
test al, al
jne 0x10016e65
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x134]
push eax
call fcn.1002f9c0
add esp, 4
mov byte [ebp - 4], 0x13
mov ecx, eax
push 1
push 0x100c66fc
call fcn.100182f0
mov edx, str.avoid.xua
lea esi, [edx + 2]
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x10016cc0
sub edx, esi
mov ecx, eax
sar edx, 1
push edx
push str.avoid.xua
call fcn.100182f0
push eax
lea ecx, [ebp - 0xa4]
call fcn.10003de0
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x134]
call fcn.10005200
xor eax, eax
mov dword [ebp - 0xdc], 0
push eax
mov dword [ebp - 0xd8], 0
lea ecx, [ebp - 0xec]
push 0x100c6700
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 7
mov word [ebp - 0xec], ax
call fcn.1000c5b0
mov byte [ebp - 4], 0x16
mov ecx, str.3A3E0B7B_EE29_4C97_B705_9C5A8DFDC845
xor eax, eax
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 7
lea edx, [ecx + 2]
mov word [ebp - 0x8c], ax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016d70
sub ecx, edx
sar ecx, 1
push ecx
push str.3A3E0B7B_EE29_4C97_B705_9C5A8DFDC845
lea ecx, [ebp - 0x8c]
call fcn.1000c5b0
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.10030ee0
or edi, 2
add esp, 0x10
mov esi, eax
mov dword [ebp - 0x10c], edi
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x8c]
call fcn.10005200
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0xec]
call fcn.10005200
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0xa4]
call fcn.10005200
mov esi, dword [esi + 0x10]
and edi, 0xfffffffd
mov dword [ebp - 0x10c], edi
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0xf4]
cmp edx, 8
jb 0x10016e40
mov ecx, dword [ebp - 0x108]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10016e36
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017649
push edx
push ecx
call fcn.10065f62
add esp, 8
xor eax, eax
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 7
mov word [ebp - 0x108], ax
test esi, esi
jne 0x100175fb
mov dword [ebp - 0x110], 0
call fcn.100071f0
mov ecx, eax
test ecx, ecx
je 0x1001764e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x110], eax
mov byte [ebp - 4], 0x19
call fcn.1002f790
cmp dword [ebx + 0x14], 8
mov esi, ebx
mov edi, dword [eax]
jb 0x10016ea1
mov esi, dword [ebx]
call fcn.100071f0
mov ecx, eax
test ecx, ecx
je 0x10017658
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xf0], eax
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0xf0]
push esi
call fcn.10006e80
test al, al
jne 0x10016efc
test esi, esi
jne 0x10016eda
xor ecx, ecx
jmp 0x10016eef
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016ee0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0xf0]
call fcn.10009800
mov byte [ebp - 4], 0x1b
lea eax, [ebp - 0x110]
push edi
push 0xea60
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.10016230
add esp, 0x10
mov esi, eax
mov byte [ebp - 4], 0x19
or edi, 0xffffffff
mov edx, dword [ebp - 0xf0]
mov ecx, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x10016f42
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x10016f69
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x110]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x100174e7
mov ecx, dword [edx]
push edx
jmp 0x100174e2
mov esi, dword [ebp - 0x110]
lea eax, [ebp - 0x8c]
push 0xfde9
push esi
push eax
call fcn.10031970
add esp, 0xc
mov byte [ebp - 4], 0x1e
call fcn.100071f0
mov ecx, eax
test ecx, ecx
je 0x10017662
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x114], eax
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x114]
push 0x100c5be8
call fcn.10006e80
test al, al
jne 0x10016fe5
mov ecx, 0x100c5be8
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016fc5
sub ecx, edx
sar ecx, 1
push ecx
push 0x100c5be8
lea ecx, [ebp - 0x114]
call fcn.10009800
mov byte [ebp - 4], 0x20
lea ebx, [ebp - 0x8c]
cmp dword [ebp - 0x78], 8
cmovae ebx, dword [ebp - 0x8c]
call fcn.100071f0
mov ecx, eax
test ecx, ecx
je 0x1001766c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xf0], eax
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0xf0]
push ebx
call fcn.10006e80
test al, al
jne 0x1001705c
test ebx, ebx
jne 0x10017033
xor ecx, ecx
jmp 0x1001704f
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10017040
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0xf0]
call fcn.10009800
mov byte [ebp - 4], 0x22
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.100675f0
add esp, 0xc
mov byte [ebp - 4], 0x23
mov edx, dword [eax]
mov ecx, edx
lea ebx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10017090
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x8c]
call fcn.1000c5b0
mov byte [ebp - 4], 0x22
mov eax, edi
mov edx, dword [ebp - 0x118]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100170cd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x20
mov eax, edi
mov edx, dword [ebp - 0xf0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100170ee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x1e
mov eax, edi
mov edx, dword [ebp - 0x114]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001710f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, 0x100c5cec
mov dword [ebp - 0xf8], 0
xor eax, eax
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 7
mov word [ebp - 0x108], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10017150
sub ecx, edx
sar ecx, 1
push ecx
push 0x100c5cec
lea ecx, [ebp - 0x108]
call fcn.1000c5b0
mov byte [ebp - 4], 0x27
mov ecx, str.last_script_url
xor eax, eax
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 7
lea edx, [ecx + 2]
mov word [ebp - 0xec], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100171b0
sub ecx, edx
sar ecx, 1
push ecx
push str.last_script_url
lea ecx, [ebp - 0xec]
call fcn.1000c5b0
mov byte [ebp - 4], 0x28
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0xec]
push eax
call fcn.10032960
add esp, 0xc
mov byte [ebp - 4], 0x27
mov edx, dword [ebp - 0xd8]
cmp edx, 8
jb 0x10017234
mov ecx, dword [ebp - 0xec]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001722a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017676
push edx
push ecx
call fcn.10065f62
add esp, 8
xor eax, eax
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 7
mov word [ebp - 0xec], ax
mov byte [ebp - 4], 0x1e
mov edx, dword [ebp - 0xf4]
cmp edx, 8
jb 0x10017295
mov ecx, dword [ebp - 0x108]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001728b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001767b
push edx
push ecx
call fcn.10065f62
add esp, 8
xor eax, eax
mov dword [ebp - 0xf8], 0
mov word [ebp - 0x108], ax
lea eax, [ebp - 0x134]
push eax
mov dword [ebp - 0xf4], 7
call fcn.1002f9c0
add esp, 4
mov byte [ebp - 4], 0x29
mov ecx, eax
push 1
push 0x100c5f9c
call fcn.100182f0
mov edx, str.avoid.xua
lea ebx, [edx + 2]
nop dword [eax + eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x100172e0
sub edx, ebx
mov ecx, eax
sar edx, 1
push edx
push str.avoid.xua
call fcn.100182f0
push eax
lea ecx, [ebp - 0xa4]
call fcn.10003de0
mov byte [ebp - 4], 0x2b
lea ecx, [ebp - 0x134]
call fcn.10005200
mov ecx, str.3A3E0B7B_EE29_4C97_B705_9C5A8DFDC845
mov dword [ebp - 0xdc], 0
xor eax, eax
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 7
mov word [ebp - 0xec], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10017350
sub ecx, edx
sar ecx, 1
push ecx
push str.3A3E0B7B_EE29_4C97_B705_9C5A8DFDC845
lea ecx, [ebp - 0xec]
call fcn.1000c5b0
mov byte [ebp - 4], 0x2c
lea eax, [ebp - 0xec]
push 1
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.100325a0
add esp, 0x10
mov bl, al
mov byte [ebp - 4], 0x2b
lea ecx, [ebp - 0xec]
call fcn.10005200
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0xa4]
call fcn.10005200
test bl, bl
jne 0x1001758a
call fcn.100429f0
push 2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x100174bf
push 0x51
mov dword [ebp - 0xf8], eax
lea ecx, [ebp - 0x108]
mov dword [ebp - 0xf4], eax
push 0x100c5f30
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xf4], 0xf
mov byte [ebp - 0x108], al
call fcn.1000c4b0
mov byte [ebp - 4], 0x2d
lea ecx, [ebp - 0xec]
push 3
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 0
push 0x100c5f2c
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 0xf
mov byte [ebp - 0xec], bl
call fcn.1000c4b0
mov byte [ebp - 4], 0x2e
lea eax, [ebp - 0x108]
push 0x4e
push eax
lea eax, [ebp - 0xec]
push eax
lea ecx, [ebp - 0x1e4]
call fcn.100041a0
mov edi, eax
mov byte [ebp - 4], 0x2f
push str.save_script_fail.
push edi
call fcn.10005ff0
add esp, 8
call fcn.100429f0
push edi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov byte [ebp - 4], 0x2e
lea ecx, [ebp - 0x1e4]
call fcn.100062e0
mov byte [ebp - 4], 0x2d
lea ecx, [ebp - 0xec]
call fcn.10005180
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x108]
call fcn.10005180
or edi, 0xffffffff
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x8c]
call fcn.10005200
mov byte [ebp - 4], 0xb
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x100174e7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 0x100c5cec
lea ecx, [ebp - 0xec]
call fcn.1000f990
mov byte [ebp - 4], 0x33
lea ecx, [ebp - 0x8c]
push 0x100c5f98
call fcn.1000f990
mov byte [ebp - 4], 0x34
lea ecx, [ebp - 0xa4]
push str.last_script_url
call fcn.1000f990
mov byte [ebp - 4], 0x35
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.10032960
add esp, 0xc
mov byte [ebp - 4], 0x34
lea ecx, [ebp - 0xa4]
call fcn.10005200
mov byte [ebp - 4], 0x33
lea ecx, [ebp - 0x8c]
call fcn.10005200
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xec]
call fcn.10005200
cmp dword [ebp - 0xa8], 8
lea eax, [ebp - 0xbc]
cmovae eax, dword [ebp - 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x100175fb
mov byte [ebp - 4], 0x19
mov edx, dword [ebp - 0x78]
cmp edx, 8
jb 0x100175cb
mov ecx, dword [ebp - 0x8c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100175c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017680
push edx
push ecx
call fcn.10065f62
add esp, 8
xor eax, eax
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
mov byte [ebp - 4], 0xb
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x100175fb
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xbc]
call fcn.10005200
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd4]
call fcn.10005200
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100662e1
mov esp, ebp
pop ebp
ret 4
call fcn.1000bf20
call fcn.1008c70a
call fcn.1008c70a
call fcn.1008c70a
push 0x80004005
call fcn.10006e60
push 0x80004005
call fcn.10006e60
push 0x80004005
call fcn.10006e60
push 0x80004005
call fcn.10006e60
call fcn.1008c70a
call fcn.1008c70a
call fcn.1008c70a
int3