Function at 0x1001e280
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017ca6d
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x101e6040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov al, byte [0x101e6b51]
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
test al, al
je 0x1001e2d0
xor al, al
mov byte [0x101e6b51], al
cmp byte [0x101fa7ea], 0
jne 0x1001e305
test al, al
je 0x1001e2e4
mov byte [0x101e6b51], 0
push 0x1020
push str.Ark_Library
push str._ARK_Library
push 0
mov byte [0x101fa7ea], 1
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [ebp - 0x38]
mov eax, dword [esi + 0x41c]
sub eax, dword [esi + 0x418]
test eax, 0xfffffffc
je 0x1001e326
push 0
push 0
push 0xa0000402
jmp 0x1001e7c6
test edx, edx
je 0x1001e7bd
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x40], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001e336
sub ecx, dword [ebp - 0x40]
sar ecx, 1
je 0x1001e7bd
mov ecx, edx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001e351
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 0x64]
mov ecx, 2
mov dword [ebp - 0x44], eax
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.101554b7
add esp, 4
mov dword [ebp - 0x34], eax
mov dword [esi + 0x434], eax
test eax, eax
je 0x1001e7ce
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 0x1001e3a0
sub ecx, dword [ebp - 0x40]
sar ecx, 1
cmp ecx, 4
jb 0x1001e7bd
push edx
push dword [ebp - 0x44]
push dword [ebp - 0x34]
call fcn.101610a6
mov ecx, dword [ebp - 0x38]
add esp, 0xc
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001e3d0
mov eax, dword [esi + 0x434]
sub ecx, edx
sar ecx, 1
push 0x101c7f34
lea eax, [eax + ecx*2]
add eax, 0xfffffffa
push eax
mov dword [esi + 0x438], eax
call fcn.1015fdf3
mov ecx, dword [esi + 0x438]
add esp, 8
test eax, eax
lea edx, [ecx + 4]
cmovne edx, ecx
mov ecx, dword [ebp - 0x38]
mov ax, word [edx]
lea edx, [ecx + 2]
mov word [esi + 0x43c], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001e420
mov eax, dword [esi + 0x434]
sub ecx, edx
sar ecx, 1
lea eax, [eax + ecx*2]
mov dword [esi + 0x440], eax
mov eax, dword [esi + 0x430]
test eax, eax
je 0x1001e451
push eax
call fcn.10154f5a
add esp, 4
push dword [ebp - 0x38]
call fcn.101565d5
mov dword [esi + 0x430], eax
add esp, 4
mov eax, dword [esi + 0x60]
or eax, dword [esi + 0x64]
je 0x1001e471
mov eax, 1
jmp 0x1001e473
xor eax, eax
mov dword [esi + 0x444], eax
cmp dword [esi + 0x68], 0
je 0x1001e489
mov dword [esi + 0xf4], 1
mov ecx, esi
mov dword [esi + 0x450], 0
call fcn.1001e800
test eax, eax
je 0x1001e7ce
test edi, edi
je 0x1001e5e7
cmp word [edi], 0
je 0x1001e5e7
cmp dword [esi + 0x7c], 0
jne 0x1001e51a
cmp dword [esi + 0x70], 0
jne 0x1001e51a
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.1015c282
mov edi, eax
add esp, 8
test edi, edi
je 0x1001e50d
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 0x1001e50f
push edi
call fcn.10154f5a
add esp, 4
xor edi, edi
mov dword [esi + 0x410], edi
jmp 0x1001e5bc
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1001e5bc
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.1015c282
mov edi, eax
add esp, 8
test edi, edi
je 0x1001e5bc
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 0x1001e5b3
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001e570
sub ecx, edx
je 0x1001e5b3
add ecx, 4
mov eax, 0xffffffff
cmovb ecx, eax
push ecx
call fcn.101554b7
add esp, 4
mov dword [esi + 0x410], eax
test eax, eax
je 0x1001e5b3
mov word [eax], 0xbbef
mov byte [eax + 2], 0xbf
mov eax, dword [esi + 0x410]
push edi
add eax, 3
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call fcn.10154f5a
add esp, 4
mov edx, dword [esi + 0x410]
test edx, edx
je 0x1001e5e7
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001e5d0
sub ecx, edi
cmp ecx, 0x8000
jbe 0x1001e5e7
mov byte [edx + 0x8000], al
mov ecx, esi
call fcn.1001edc0
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.1015144f
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 + 0x41c]
mov ecx, dword [esi + 0x418]
sub eax, ecx
test eax, 0xfffffffc
jle 0x1001e732
nop dword [eax + eax]
mov eax, dword [ecx + edi*4]
mov edx, dword [eax + 0x14]
test edx, edx
je 0x1001e718
mov eax, edx
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
lea ecx, [eax + 2]
mov dword [ebp - 0x34], ecx
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001e670
sub eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x30]
sar eax, 1
push eax
push edx
call fcn.100030f0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 0x7ffffff
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
je 0x1001e7ed
lea eax, [ebp - 0x18]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 2
push 0x20
mov dword [ebp - 0x44], 0
call fcn.1015144f
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.100031a0
mov eax, dword [esi + 0x41c]
inc edi
mov ecx, dword [esi + 0x418]
sub eax, ecx
sar eax, 2
cmp edi, eax
jl 0x1001e640
mov ecx, esi
call fcn.1001ced0
cmp dword [ebp - 0x3c], 0
jne 0x1001e77c
cmp dword [esi + 0x44], 0
je 0x1001e77c
mov edi, dword [ebp - 0x18]
mov esi, dword [edi]
cmp esi, edi
je 0x1001e77f
nop
lea eax, [esi + 8]
push eax
lea ecx, [ebp - 0x30]
call fcn.10002a50
cmp dword [ebp - 0x1c], 7
lea eax, [ebp - 0x30]
cmova eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x30]
call fcn.100031a0
mov esi, dword [esi]
cmp esi, edi
jne 0x1001e750
mov edi, dword [ebp - 0x18]
mov eax, dword [edi + 4]
mov dword [eax], 0
mov edi, dword [edi]
test edi, edi
je 0x1001e7ab
nop
mov esi, dword [edi]
lea ecx, [edi + 8]
call fcn.100031a0
push 0x20
push edi
call fcn.10151441
add esp, 8
mov edi, esi
test esi, esi
jne 0x1001e790
push 0x20
push dword [ebp - 0x18]
call fcn.10151441
mov eax, dword [ebp - 0x3c]
add esp, 8
jmp 0x1001e7d0
push 0
push 0
push 0xa0000403
lea ecx, [esi + 8]
call fcn.1001f180
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.10151433
mov esp, ebp
pop ebp
ret 0xc
push str.list_too_long
call fcn.10176a20
int3