Function at 0x1000ac90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015f06d
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x101ed004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x101f1fc8], 0
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], edi
mov dword [esi + 0xc], 0
jne 0x1000acfd
push 0x1020
push str.Ark_Library
push str._ARK_Library
push 0
mov dword [0x101f1fc8], 1
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [ebp - 0x38]
mov eax, dword [esi + 0x3ec]
sub eax, dword [esi + 0x3e8]
cmp eax, 4
jb 0x1000ad1c
push 0
push 0
push 0xa0000402
jmp 0x1000b1c6
test edx, edx
je 0x1000b1bd
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x40], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000ad30
sub ecx, dword [ebp - 0x40]
sar ecx, 1
je 0x1000b1bd
mov ecx, edx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000ad50
sub ecx, edx
mov edx, 2
sar ecx, 1
lea eax, [ecx + 0x64]
xor ecx, ecx
mov dword [ebp - 0x44], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10146843
add esp, 4
mov dword [ebp - 0x34], eax
mov dword [esi + 0x404], eax
test eax, eax
je 0x1000b1ce
mov edx, dword [ebp - 0x38]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x40], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000ada0
sub ecx, dword [ebp - 0x40]
sar ecx, 1
cmp ecx, 4
jb 0x1000b1bd
push edx
push dword [ebp - 0x44]
push dword [ebp - 0x34]
call fcn.1014d61b
mov ecx, dword [ebp - 0x38]
add esp, 0xc
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000add0
mov eax, dword [esi + 0x404]
sub ecx, edx
sar ecx, 1
push 0x101d1f14
lea eax, [eax + ecx*2]
add eax, 0xfffffffa
push eax
mov dword [esi + 0x408], eax
call fcn.1014d6fb
mov ecx, dword [esi + 0x408]
add esp, 8
test eax, eax
jne 0x1000ae0c
add ecx, 4
mov ax, word [ecx]
mov ecx, dword [ebp - 0x38]
mov word [esi + 0x40c], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000ae20
mov eax, dword [esi + 0x404]
sub ecx, edx
sar ecx, 1
lea eax, [eax + ecx*2]
mov dword [esi + 0x410], eax
mov eax, dword [esi + 0x400]
test eax, eax
je 0x1000ae51
push eax
call fcn.10146720
add esp, 4
push dword [ebp - 0x38]
call fcn.10147912
mov dword [esi + 0x400], eax
add esp, 4
mov eax, dword [esi + 0x60]
or eax, dword [esi + 0x64]
je 0x1000ae71
mov eax, 1
jmp 0x1000ae73
xor eax, eax
mov dword [esi + 0x414], eax
cmp dword [esi + 0x68], 0
je 0x1000ae89
mov dword [esi + 0xf4], 1
mov ecx, esi
mov dword [esi + 0x420], 0
call fcn.1000b200
test eax, eax
je 0x1000b1ce
test edi, edi
je 0x1000afe7
cmp word [edi], 0
je 0x1000afe7
cmp dword [esi + 0x7c], 0
jne 0x1000af1a
cmp dword [esi + 0x70], 0
jne 0x1000af1a
mov eax, dword [esi + 0x38]
push edi
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*4 + 1]
push eax
push 1
mov dword [ebp - 0x34], eax
call fcn.1014bd06
mov edi, eax
add esp, 8
test edi, edi
je 0x1000af0d
push 0
push 0
push dword [ebp - 0x34]
push edi
push 0xffffffffffffffff
push dword [ebp - 0x3c]
push 0
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1000af0f
push edi
call fcn.10146720
add esp, 4
xor edi, edi
mov dword [esi + 0x3e0], edi
jmp 0x1000afbd
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1000afbd
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*4 + 1]
push eax
push 1
mov dword [ebp - 0x34], eax
call fcn.1014bd06
mov edi, eax
add esp, 8
test edi, edi
je 0x1000afbd
push 0
push 0
push dword [ebp - 0x34]
push edi
push 0xffffffffffffffff
push dword [ebp - 0x3c]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x1000afb4
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000af70
sub ecx, edx
je 0x1000afb4
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.10146843
add esp, 4
mov dword [esi + 0x3e0], eax
test eax, eax
je 0x1000afb4
mov word [eax], 0xbbef
mov byte [eax + 2], 0xbf
mov eax, dword [esi + 0x3e0]
push edi
add eax, 3
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call fcn.10146720
add esp, 4
mov edx, dword [esi + 0x3e0]
test edx, edx
je 0x1000afe7
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000afd0
sub ecx, edi
cmp ecx, 0x8000
jbe 0x1000afe7
mov byte [edx + 0x8000], al
mov ecx, esi
call fcn.1000b6f0
xorps xmm0, xmm0
mov dword [ebp - 0x3c], eax
movlpd qword [ebp - 0x18], xmm0
push 0x20
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.101427a2
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
xor edi, edi
mov eax, dword [esi + 0x3ec]
mov ecx, dword [esi + 0x3e8]
sub eax, ecx
sar eax, 2
test eax, eax
jle 0x1000b132
nop dword [eax + eax]
mov ecx, dword [ecx + edi*4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
call eax
mov edx, eax
test edx, edx
je 0x1000b118
mov ecx, edx
mov dword [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
lea eax, [ecx + 2]
mov dword [ebp - 0x34], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000b070
sub ecx, dword [ebp - 0x34]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.10002860
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 0x7ffffff
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
je 0x1000b1ed
lea eax, [ebp - 0x18]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 2
push 0x20
mov dword [ebp - 0x44], 0
call fcn.101427a2
movups xmm0, xmmword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x44], 0
mov word [ebp - 0x30], ax
add esp, 4
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
movups xmmword [ecx + 8], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [ecx + 0x18], xmm0
inc dword [ebp - 0x14]
mov eax, dword [edx + 4]
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov dword [edx + 4], ecx
mov dword [eax], ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov byte [ebp - 4], 0
call fcn.10002b10
mov eax, dword [esi + 0x3ec]
inc edi
mov ecx, dword [esi + 0x3e8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jl 0x1000b040
mov ecx, esi
call fcn.10009920
cmp dword [ebp - 0x3c], 0
jne 0x1000b17c
cmp dword [esi + 0x44], 0
je 0x1000b17c
mov edi, dword [ebp - 0x18]
mov esi, dword [edi]
cmp esi, edi
je 0x1000b17f
nop
lea eax, [esi + 8]
push eax
lea ecx, [ebp - 0x30]
call fcn.10002680
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x30]
call fcn.10002b10
mov esi, dword [esi]
cmp esi, edi
jne 0x1000b150
mov edi, dword [ebp - 0x18]
mov eax, dword [edi + 4]
mov dword [eax], 0
mov edi, dword [edi]
test edi, edi
je 0x1000b1ab
nop
mov esi, dword [edi]
lea ecx, [edi + 8]
call fcn.10002b10
push 0x20
push edi
call fcn.10142794
add esp, 8
mov edi, esi
test esi, esi
jne 0x1000b190
push 0x20
push dword [ebp - 0x18]
call fcn.10142794
mov eax, dword [ebp - 0x3c]
add esp, 8
jmp 0x1000b1d0
push 0
push 0
push 0xa0000403
lea ecx, [esi + 8]
call fcn.1000baa0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10142783
mov esp, ebp
pop ebp
ret 0xc
push str.list_too_long
call fcn.1015d412
int3