Function at 0x1006c89
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100c4b0
push 0x10087a6
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, 0x221c
call fcn.01008850
mov eax, dword [0x100d038]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov ebx, ecx
xor esi, esi
mov dword [ebp - 0x2220], esi
mov dword [ebp - 4], esi
push esi
lea eax, [ebp - 0x2228]
push eax
push dword [ebx + 4]
call fcn.01009a28
mov dword [ebp - 0x2220], eax
cmp eax, esi
jl 0x1006d04
mov ecx, dword [ebx + 8]
mov edi, dword [ecx + 0x24]
call fcn.01005c5b
test eax, eax
je 0x1006ce8
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov esi, dword [eax + 4]
lea eax, [edi - 1]
xor ecx, ecx
and eax, edx
and ecx, esi
or eax, ecx
jne 0x1006ce8
mov dword [ebp - 0x2230], edx
mov dword [ebp - 0x222c], esi
mov eax, dword [ebp - 0x2228]
movzx eax, word [eax + 0xa]
mov ecx, dword [ebx + 8]
cmp ax, 1
lea eax, [ebp - 0x221c]
jne 0x1006c24
push 0
push eax
call fcn.01006398
mov dword [ebp - 0x2220], eax
test eax, eax
jge 0x1006b6e
push eax
push 0xc0000033
call fcn.010079b3
push eax
call fcn.01007b3a
add esp, 0xc
jmp 0x1006cfa
push 1
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebx + 8]
call fcn.01006398
mov dword [ebp - 0x2220], eax
test eax, eax
jl 0x1006b55
push 0
push edi
push esi
push dword [ebp - 0x2230]
call fcn.01008880
mov dword [ebp - 0x21e4], eax
mov dword [ebp - 0x21e0], edx
mov dword [ebp - 0x1e4], eax
mov dword [ebp - 0x1e0], edx
mov ecx, 0x80
lea edi, [ebp - 0x21c]
lea esi, [ebp - 0x221c]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x1006bd4
push dword [ebp - 0x2220]
push 0xc000003d
jmp 0x1006b5b
push 0
lea eax, [ebp - 0x221c]
push eax
mov ecx, dword [ebx + 0xc]
call fcn.0100650e
mov dword [ebp - 0x2220], eax
test eax, eax
jge 0x1006bfa
push eax
push 0xc0000034
jmp 0x1006b5b
push 1
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebx + 0xc]
call fcn.0100650e
mov dword [ebp - 0x2220], eax
test eax, eax
jl 0x1006bef
push 0x40000021
call fcn.0100507e
jmp 0x1006d04
push eax
call fcn.01006469
mov dword [ebp - 0x2220], eax
test eax, eax
jl 0x1006b55
push 0x2000
lea eax, [ebp - 0x221c]
push eax
call fcn.0100942c
test eax, eax
jne 0x1006c62
lea eax, [ebp - 0x211c]
mov esi, 0x1001664
lea edi, [ebp - 0x211c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov byte [ebp - 0x2221], 0
xor ecx, ecx
mov dword [ebp - 0x2234], ecx
cmp ecx, 3
jae 0x1006cb9
mov esi, dword [ebp - 0x2228]
cmp byte [ebp - 0x2221], 0
jne 0x1006ca4
mov edx, dword [ebp - 0x2230]
cmp edx, dword [esi + ecx*8 + 0x20]
jne 0x1006ca4
mov edx, dword [ebp - 0x222c]
cmp edx, dword [esi + ecx*8 + 0x24]
jne 0x1006ca4
mov byte [ebp - 0x2221], 1
mov edx, esi
mov esi, dword [edx + ecx*8 + 0x20]
mov dword [eax + ecx*8 + 0x10], esi
mov edx, dword [edx + ecx*8 + 0x24]
mov dword [eax + ecx*8 + 0x14], edx
inc ecx
jmp 0x1006c6b
cmp byte [ebp - 0x2221], 0
jne 0x1006cd4
mov ecx, dword [ebp - 0x2230]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0x222c]
mov dword [eax + 0x14], ecx
lea eax, [ebp - 0x221c]
push eax
mov ecx, dword [ebx + 0xc]
call fcn.01006626
jmp 0x1006c0b
push 0xc000003b
call fcn.010079b3
push eax
call fcn.01007b3a
pop ecx
pop ecx
mov dword [ebp - 0x2220], 0xc0000010
mov dword [ebp - 4], 0xfffffffe
call fcn.01006d32
mov eax, dword [ebp - 0x2220]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.01008732
leave
ret 4